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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Do I need to change the "Default Route"?

Status
Not open for further replies.

Bobnorton

MIS
Oct 3, 2001
1
US
I have a HP-UX server: 200.20.25.1
The default route is currently: 200.20.25.254

We are slowly moving all of our workstations and servers over to a different gateway - 200.20.25.241.

I added a route to the HP-UX box to route traffic to our 200.20.26.0 network through the 200.20.25.241 gw. I can ping the 200.20.25.241 gw, but not anything on the 200.20.26.0 network.

Do I need to change the default gw from 200.20.25.254 to 200.20.25.241? And if so, what are the steps I need to take to do this?
 
Hi

When you setup the new gateway, did you remember to specify it as a gateway (i.e a G entry in the flags fild when you run a #netstat -rn)

The idea of the default is to catch all the traffic for routes not defined in the routing table.

Whilst slowly moving the PCs onto the new network, you need to have both Gateways defined. When all the transition is done you can change your default using the route command

Hope others will confirm my thoughts, networking is not one of my strengths

Best of Luck
Queenie
 
Queenie is right.
You can have multiple gatway route but you can only setup one default route.

#route add default ip_address 1 (this will be your default route with one hop i.e in same subnet, 200.20.25.254)

In your case
200.20.25.254 should reach to 200.20.26.0 network. Then in your hp box you add another route.
#route add net 200.20.26 ip_address 1(ip=200.20.25.254)
So now 200.20.26 network can reach through 200.20.25.254 gatway.

Patel


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top