Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2 gateway addresses... 1

Status
Not open for further replies.

adsfx

Programmer
Jun 4, 2003
237
0
0
GB
have tried adding two gateway TCP addresses but does not seem to switch between the two.
one gateway is for a router the other is for a server
is this possible?
 
To my knowledge, you can not specify 2 default gateways for one machine, except maybe if it has 2 different interfaces on 2 different subnets. Why would you need a gateway address to point to a server?

There are only 10 kinds of people; those who understand binary and those who don't...
 
You need a gateway address to point to a server if the server is unreachable through the router interface. You can add a static route to the machine using the "route add" command from the command prompt...just do a route /? , and that will get you going.

good luck

Jeff

MCSE,CCNA,ASE
 
You can add multiple Gateway IPs in TCP/IP Properties, Advanced.

You can adjust their metric, or set them as automatic metric.

It requires a failure on a Gateway before an alternative Gatreway is tried.
 
thanx all specially jeff - found out bout route add jus after posting heres a *
cheers MG
 
Will this failover still work if something beyond the first gateway does not respond, or is it dependant purely on the gateway itself having the problem before the failover?

Thanks,


LHLTech

IBM Certified ATE
 
have heard using 'route add' from the command prompt is a better way of adding gateway' rather than the metric adjustment in the adv. props... ne one know why?
[route add /help]
 
adsfx,

The issues are different. Using the GUI interface to TCP/IP properties, Advanced, allows you to add a second Gateway and adjust the metrics if required.

For command line access the best tool you have is netsh.exe under Windows 2k and XP:
For scripting purposes this is (my opinion) a better approach than using the Route print service.

See, for example:
Using netsh.exe gives you access to nearly every aspect of the the Windows interface, including route additions, metric changes, etc.
 
LHLTech,

The highest metric Gatway has to fail before secondary Gateways are used.
 
What happens if you add multiple default gateways, via the advanced properties, all with same metric? Will this load share? If not how can I load share across three or four gateways (multiple ADSL connections).



The more you know, the more you realise there is to know....
CCNA MCP
 
The use of multiple gateways can be configured to use Dead Gateway Detection, but the only way that it will check a gateway again that has been "declared" dead is if the gateway now in use also goes dead or the box is rebooted.

Multiple Default Gateways Can Cause Connectivity Problems - 159168

Default Gateway Configuration for Multihomed Computers - 157025

Adding a static route is the way to go since you are telling the computer how to handle the traffic versus relying on an automatic mechanism to fail over (and may not work as advertised).

Hope this helps!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top