PC Review


Reply
Thread Tools Rate Thread

default gateway problem

 
 
Gaurav
Guest
Posts: n/a
 
      1st Nov 2006
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 Removed) )

 
Reply With Quote
 
 
 
 
Doug Sherman [MVP]
Guest
Posts: n/a
 
      1st Nov 2006
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

"Gaurav" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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 Removed) )
>



 
Reply With Quote
 
Gaurav
Guest
Posts: n/a
 
      21st Nov 2006
Thank you sir,

u have solved my problem .

Thanks

gaurav mathur


Doug Sherman [MVP] wrote:
> 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
>
> "Gaurav" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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 Removed) )
> >


 
Reply With Quote
 
New Member
Join Date: Feb 2009
Posts: 1
 
      28th Feb 2009
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
0.0.0.0 default gateway problem Shamrock17 Windows Vista General Discussion 2 22nd Aug 2008 09:43 PM
Default gateway problem Tedium Windows Vista Networking 1 6th Jun 2008 03:44 AM
Default Gateway problem =?Utf-8?B?YmxhZGU=?= Windows XP Messenger 0 6th Oct 2005 05:34 AM
Default Gateway Problem Tech Net Windows XP Help 0 1st Jul 2004 10:40 AM
Default Gateway problem Mitchell Microsoft Windows 2000 Networking 2 30th Mar 2004 05:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:52 AM.