[twsocket] TWSocket 2 default gateways - [request]

Davie smatters@smatters.com
Mon, 12 Jun 2000 15:23:37 -0500


Actually, if I ever post IP addresses that are NOT PRIVATE, then I always mangle
the address so as to not let the true IP out. I would assume(hope) that others
do the same.

Davie

"Dhaliwal, Seraj" wrote:

> do not take this email wrong, i would like to advise others also to, please
> do not put "IPAddress" on the emails to an email list, (you know the reason
> - prone to hackers)
>
> "education eliminates all barriers with society, religion and workplace"
> -sdhaliwal
>
> -----Original Message-----
> From: Wilfried Mestdagh [mailto:wilfried_sonal@compuserve.com]
> Sent: Monday, June 12, 2000 10:14 AM
> To: TWSocket Mailing List
> Subject: [twsocket] TWSocket 2 default gateways
>
> Hello,
>
> I have following problem:
>
> On a machine with 2 network interface there is 1 default gateway, as this:
>
> Destination        Netmask          Gateway       Interface  Metric
>   0.0.0.0          0.0.0.0     213.224.54.1  213.224.54.240       2
>
> When I use a dial up connection to specific other external network (not
> reacheable in default gateway) then RAS installs a second default gateway,
> as this:
>
> Destination        Netmask          Gateway       Interface  Metric
>   0.0.0.0          0.0.0.0      172.16.2.59     172.16.2.59       1
>   0.0.0.0          0.0.0.0     213.224.54.1  213.224.54.240       2
>
> The problem is 2 default gateways, it means the gateway on interface
> 213.224.54.240 in this example is not reacheable anymore. How can I avoid
> RAS to install a default gateway ?
>
> I do not need it sinds the interface ip of the dial up connection is
> specific network that I know, I can get it tru LocalIpList function, set
> WSocket.LocalAddr to this interface and voila I can connect tru it without
> the default gateway.
>
> I think it is possible to get rid of it by executing a batch file who delete
> the top route after the connection is there but I dont find this very
> reliable. Someone has more elegant idea ?  It has to be work on Windows NT
> (I dont care about other operating systems).
>
> thanks in advance, Wilfried
>
> _______________________________________________
> TWSocket mailing list [http://elists.org/mailman/listinfo/twsocket]
> Visit our website at http://www.rtfm.be/fpiette/indexuk.htm
>
> _______________________________________________
> TWSocket mailing list [http://elists.org/mailman/listinfo/twsocket]
> Visit our website at http://www.rtfm.be/fpiette/indexuk.htm