Operating System - HP-UX
1833187 Members
3097 Online
110051 Solutions
New Discussion

Route Gateway Information gets lost every after reboot.

 
SOLVED
Go to solution
Emily_10
Advisor

Route Gateway Information gets lost every after reboot.

Model: HPUX 9000/785/c3700
Operating Syste: HPUX 11.11
We are having a problem our HPUX servers. When they are rebooted, they lose the default gateway information, so they are not on the network. Using the "route add" command works but only until the next reboot. How can we make it permanent so the gateway information survives after the next reboot? We only use one nic card. Lan0.

When I look at our /etc/rc.config.d/netconf

Information such as IP Address, Subnetmask, Route_gateway, route_count=1 area ll there. What do I do to permanently keep this information?

Please help!
7 REPLIES 7
John Poff
Honored Contributor
Solution

Re: Route Gateway Information gets lost every after reboot.

Hi,

Can you post the portion of your netconf file that has sets your default route?

JP
Jeff_Traigle
Honored Contributor

Re: Route Gateway Information gets lost every after reboot.

Would be better if we could see the entire netconf file. If the route isn't being configured at boot, but can be added manually, there must be something wrong with the way this file is configured.

You mention ROUTE_GATEWAY and ROUTE_COUNT... Is REOUTE_DESTINATION set to "default" also? If not, that could cause problems since all parameters would be available at boot time.

Have you checked rc.log to see if any errors in there indicate what the problem with setting the route at boot might be?
--
Jeff Traigle
Robert-Jan Goossens
Honored Contributor

Re: Route Gateway Information gets lost every after reboot.

Hi,

Check this doc,

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063200509

Document description: NETUX: How to add a permanent arp and route entry
Document id: KBRC00002496

Hope this helps,
Robert-Jan
Emily_10
Advisor

Re: Route Gateway Information gets lost every after reboot.

Does it mean that as long as I can ping from the HPUX server to another computer on our network and vice versa mean that I'm good now?

It seems that knowledge base that was provided above fixed the problem. "Netux:How to add a permanent arp and route entry".

I rebooted the HPUX server twice and I was able to ping couple of computers from the HPUX server and they replied successfully. I also tried to ping the HPUX server from a windows computer and it replied successfully.

Can somebody please confirm to me that it looks good now? I'm not the HPUX person at work and this task got assigned to me today. Pls. let me know.
Thanks!
Sridhar Bhaskarla
Honored Contributor

Re: Route Gateway Information gets lost every after reboot.

Hi Emily,

You will need to make sure that you ping the HP server from systems in another subnet. Then your default gateway is working. Default gateway is not used while talking to the systems in the same subnet.

Post your 'netstat -rn'. It should have an entry called "default" in the first column.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Emily_10
Advisor

Re: Route Gateway Information gets lost every after reboot.

Yeah, I ping from another subnet and the HPUX server replied. I ping the gateway address, hostname and ip address. All looks good. Thanks for for your very quick and correct response!

By the way, does it matter if the "default" is last entry when I type in netstat -rn? The route table looks similar like this:

127.0.0.1 127.0.0.1
192.x.x.225 192.x.x.225
192.x.x.0 192.x.225
127.0.0.0 127.0.0.1
Default 192.x.10.1

Thanks!
Sundar_7
Honored Contributor

Re: Route Gateway Information gets lost every after reboot.

Emily,

Nope it doesnâ t matter if the "default" route is the last entry in the routing table.

Anyways, default route is only used as the last resort for forwarding the packet.

As long as you can ping your UX box from a system that is on a different subnet, you are good to go :-).

-- Sundar
Learn What to do ,How to do and more importantly When to do ?