Operating System - HP-UX
1825049 Members
3234 Online
109678 Solutions
New Discussion юеВ

Keep losing routing table information

 
SOLVED
Go to solution
Daniel Gowans
Advisor

Keep losing routing table information


I have several HP-UX 11i stations that need access to the internet. The only thing I really need to do is add the gateway to their routing tables, and then they can see everything they need to. I type in the following command as root:

route add default 89.80.89.100 1

This IP is also in /etc/hosts as router, so I can also type:

route add default router 1

I can then ping URLs, web sites, etc.

However, this entry keeps getting lost! A few days later, when I try to call up a web address or something, this table entry is gone, and I can't get out again. This is a 24 hour environment, and sometimes these machines get reset. Is this entry not permanent? Does it get lost on reboot? What else might be happening? Thanks!
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor

Re: Keep losing routing table information

Hi Daniel:

Add your entries to your '/etc/rc.config.d/netconf'.

Regards!

...JRF...
Pete Randall
Outstanding Contributor

Re: Keep losing routing table information

It would disappear on reboot unless you add it to /etc/rc.config.d/netconf. Look for the section on routes:

ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=130.1.0.248
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""

You probably already have a default route defined, so add another entry, changing the [0] subscripts to [1].


Pete



Pete
A. Clay Stephenson
Acclaimed Contributor

Re: Keep losing routing table information

In order to make this "permanent" go to /etc/rc.config.d/netconf

Edit the file:
You will see a section ROUTE_DESTINATION[0]=

set it
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=89.80.89.100
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""

You can add as many routes as needed by using higher subscripts.
If it ain't broke, I can fix that.
Jim Mallett
Honored Contributor
Solution

Re: Keep losing routing table information

If it is getting lost on reboot then follow one of the posts above regarding your netconf file that way the settings will be caught on reboot.

One other thing it may be is dead gateway detection. ie: Your server is sending ICMP requests to the gateway to see if it is still active. If the gateway doesn't accept ICPM requests your server will drop the route.

If that is the case, add the following to /etc/rc.config.d/nddconf:
TRANSPORT_NAME[0]=ip
NDD_NAME[0]=ip_ire_gw_probe
NDD_VALUE[0]=0

Jim
Hindsight is 20/20
Caesar_3
Esteemed Contributor

Re: Keep losing routing table information

Hello!

Yes this data lost on reboot so add to
/etc/rc.config.d/netconf

ROUTE_DESTINATION[0]=default
ROUTE_GATEWAY[0]=89.80.89.100
ROUTE_COUNT[0]=1

Then it will work every boot.

Caesar
Suresh Patoria
Super Advisor

Re: Keep losing routing table information

Hi,

If you add the default gateway permenent then you have to put the entry in /etc/rc.config.d/netconf file

ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=89.80.89.100
ROUTE_COUNT[0]=1


Save the file then restart the system it will work