default gateway problem

  • Thread starter Thread starter Gaurav
  • Start date Start date
G

Gaurav

I have one server in my office.

i am using windows 2000 server on that.

we have 1 router in network ( 1700 series ) which is configured as a
200.0.0.13 ip address.
To connect with the remote server which is in our head office in
another city,I use the router.

we have DSL connection line in our office that is we use for
internet.On which server it is connected that has the ip address of
200.0.0.37.I use this ip address to get connected with internet.

At one time i can work with only one connection.either i can able to
connect with router giving the router's ip address as default gateway
or can able to connect with intenet with giving ip address of our proxy
server as in default gateway.

if i give the both ip address in TCP/IP setting only the default
gateway which has a lower metric will work.

if give the both metric same only the default gateway that is on the
top in the list will work.

how can i connect both simultaneously.

IF any one solution plz give me reply.

gaurav ( (e-mail address removed) )
 
Don't use two default gateways. Instead use the DSL connection as your
default gateway and configure a static route for the remote office. On a
windows computer:

route -p add <PublicIPaddressofRemoteServer> mask 255.255.255.255 200.0.0.13

Instead of configuring this on the client machine, you could do it on the
DSL router - but whether can and how is product specific. Consult the
manual.

Doug Sherman
MCSE, MCSA, MCP+I, MVP
 
In case of mine, I'm developing a desktop applicaiton, defining static routes will have impact on the other applicaiotions running.


My requiremnt is : I have to control the outgoing route (on which subnnet ) based on socket binding address. If I bind on Ethernet, data sent using this socket should go on Ethernet, If I bind to WLAN, data sent on this socket should go on WiFi subnet.



If I set the same metric to two NICS, then also problem not solved.



In case of Datacard, the default gateway is set to GW on DataCard subnet, though it has less preference compared to Ethernet in adaptor bindings.

Case I:
Destination Mask Gateway Interface Metric
0.0.0.0 0.0.0.0 1xx.0.0.1 1xx.0.0.yy 20 - Ethernet
0.0.0.0 0.0.0.0 20x.aa.bb.yy 202.33.xx.yy 20 - WiFi

Default gateway : Either 1xx.0.0.1 or 202.33.xx.yy

Outgoing packets are sent on Ethernet or WiFi based on socket binding address.

Case II:
Destination Mask Gateway Interface Metric
0.0.0.0 0.0.0.0 1xx.0.0.1 1xx.0.0.yy 20 - data card 0.0.0.0 0.0.0.0 20x.aa.bb.yy 202.33.xx.yy 20 - WiFi

Default gateway : 202.33.xx.yy
Its also fine.
But IF Default gateway is : 1xx.0.0.1

In this case all data supposed to be sent on data card, is going on WiFi.

Can we put static route based on port or application.

Any help greatly appreciated.




-bytes
 
Back
Top