Operating System - HP-UX
1833876 Members
1763 Online
110063 Solutions
New Discussion

default gateway does not establish

 
Terrence
Regular Advisor

default gateway does not establish

When I reboot my servers, (11i) the default gateway does not establish. If I do a /sbin/init.d/net start, it will then create the route. Also a route add default etc, fails. Only the net start command restores the default gateway. Here is the pertinent part of the netconf file.

ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]="255.255.0.0"
ROUTE_GATEWAY[0]="10.1.1.1"
ROUTE_COUNT[0]="1"

Has anyone seen this before?
12 REPLIES 12
G. Vrijhoeven
Honored Contributor

Re: default gateway does not establish

Terrence,

Must have took a while to boot the server...
Are you trying to enable the gateway/ipadress on the right interface. Check lanscan for ppa numbers and do a lanadmin ppa number and check if the interface is up.

HTH,

Gideon
Terrence
Regular Advisor

Re: default gateway does not establish

Only one lan interface lan0. It's up and configured correctly. Even before default gateway is established, there is connectivity via the same subnet so I know the card is working.
G. Vrijhoeven
Honored Contributor

Re: default gateway does not establish

Hi,

Are you able to ping the gateway?

Gideon
Terrence
Regular Advisor

Re: default gateway does not establish

Yes, but it's on the same subnet so it doesn't need a default gateway to ping it.
Jim Mallett
Honored Contributor

Re: default gateway does not establish

You mention "route add default" fails, what if any, error message are you getting?

This doesn't sound like a dead gateway detection issue, but you can try pinging your gateway from the server in question to see if it accepts ICMP requests. If not, you need to be sure dead gateway detection is turned off.
If this is the issue, add the following to /etc/rc.config.d/nddconf
NDD_NAME[0]=ip_ire_gw_probe
NDD_VALUE[0]=0

You can also run this from the command line:
ndd -set /dev/ip ip_ire_gw_probe 0

Jim
Hindsight is 20/20
G. Vrijhoeven
Honored Contributor

Re: default gateway does not establish

Hi,

Let me get this straight. When the server boots, the gateway is not set, when you type route add default the gateway is not set, Only with a net start the gateway can be set...
When the server starts net start is called. Could you post the network part of /etc/rc.log?

Gideon
Terrence
Regular Advisor

Re: default gateway does not establish

I'm attaching my rc.log. Unfortunately I cannot reboot my server right now so I can recreate the message. It might be this:

#route add default 255.255.0.0 10.1.1.1 1
usage: add destination [netmask mask] gateway [metric]
Terrence
Regular Advisor

Re: default gateway does not establish

I've already got dead gateway detection turned off in nddconf. In any case, yes I can ping the gateway before I have it set as the default route. The server and the gateway are on the same subnet.
G. Vrijhoeven
Honored Contributor

Re: default gateway does not establish

Hi again Terrence,

That you can ping the gateway is not to check if the gateway works, but to check if it responds.

The net start command seemed to work in the boot process.

Configure LAN interfaces
Output from "/sbin/rc2.d/S340net start":

The route command should be:

/usr/sbin/route [-f] [-n] [-p pmtu] add [net|host] destination [netmask mask] gateway [count]

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90692/B2355-90692_top.html&con=/hpux/onlinedocs/B2355-90692/00/01/112-con.html&toc=/hpux/onlinedocs/B2355-90692/00/01/112-toc.html&searchterms=1M%7croute&queryid=20040402-124326

So i would try:

# route add default 10.1.1.1 1

HTH,

Gideon
G. Vrijhoeven
Honored Contributor

Re: default gateway does not establish

Hi,

I assume you know you can check the settings with netstat -r[n]

HTH,

Gideon
Naveej.K.A
Honored Contributor

Re: default gateway does not establish

Hi,

Try commenting the line ROUTE_MASK[0]="255.255.0.0".
or make it look like ROUTE_MASK[0]=""

This field is always an optional field. I think this is creating you the trouble while assigning the default gateway.

With best wishes
Naveej
practice makes a man perfect!!!

Re: default gateway does not establish

Terrence,

make sure you haven't got another routing entry in your netconf file with the same array index, i.e. more lines that look like this:

ROUTE_DESTINATION[0]=
ROUTE_MASK[0]=
ROUTE_GATEWAY[0]=
ROUTE_COUNT[0]=

any other routing entries should have an incremented index for the array (1,2,3 etc,) otherwise /sbin/init.d/net only pays attaention to the last entry with a given index. Take a look at the bottom of the file where SAM has a tendency to add entries.

HTH

Duncan

I am an HPE Employee
Accept or Kudo