Operating System - HP-UX
1827612 Members
3067 Online
109966 Solutions
New Discussion

Re: Gateway keeps disapering

 
Daniel Fourie
Frequent Advisor

Gateway keeps disapering

My gateway keeps on disapering, when I do a netstat -r I do not see the gateway, only after a while it comes up.

Any Ideas !!
Knowlage is Power
3 REPLIES 3
Rita C Workman
Honored Contributor

Re: Gateway keeps disapering

Well go over the routine of setting up a default gateway:

First

route add default 1

....Now remember to put in that one '1' after the IP address !

Second

Go and edit your /etc/rc.config.d/netconf and include this gateway IP into the file and save it

This should hold it. The first command sets the def/gtwy via the command line and putting the info into your ~/netconf file saves it so you have when you reboot.

Hope this helps,
Rita
S.K. Chan
Honored Contributor

Re: Gateway keeps disapering

If you are running 10.20, netstat -r searches /etc/networks before querying hosts or dns.
If you are running 11.x, it uses dns.

There seems to be a delay when you run netstat -r. Maybe you're having problem with your dns name resolution.