Networking
cancel
Showing results for 
Search instead for 
Did you mean: 

Default gateway goes after a reboot in HP UX 11.31

SOLVED
Go to solution
satheeshnp
Advisor

Default gateway goes after a reboot in HP UX 11.31

Hi,

 

My Default gateway goes after a reboot of server.

 

Each time after i reboot i need to forcibly add the gateway.

 

 

Please suggest how to overcome this.

6 REPLIES
satheeshnp
Advisor

Re: Default gateway goes after a reboot in HP UX 11.31

My netconf file entry

 

INTERFACE_NAME[1]="lan2"
IP_ADDRESS[1]="Y.Y.Y.Y"
SUBNET_MASK[1]="255.255.255.0"
DHCP_ENABLE[1]="0"
ROUTE_GATEWAY[1]="X.X.X.X"
ROUTE_DESTINATION[1]="default"
ROUTE_COUNT[1]="1"

 

 

Gated and rdpd daemon is also not running

 

# GATED:        Set to 1 to start gated daemon.
# GATED_ARGS:   Arguments to the gated daemon.

#GATED=0
#GATED_ARGS=""

#
# Router Discover Protocol daemon configuration.  See rdpd(1m)
#
# RDPD:         Set to 1 to start rdpd daemon
#

#RDPD=0

 

 

Dead gateway Detection is also turned off

 

cdcdrncpapp01:root-/]ndd -get /dev/ip ip_ire_gw_probe
0

 

this value is also returming 0.

 

What i have to check next...

 

Please help folks.

 


 

Duncan Edmonstone
Honored Contributor

Re: Default gateway goes after a reboot in HP UX 11.31

My first instinct is to wonder why the indexes in your netconf file are starting at [1] rather than [0], but then you are only showing us an extract rather than the whole contents... it would be interesting to see the whole file minus the comments - can you post the output of:

 

sed -e 's/#.*//g' -e '/^$/d' /etc/rc.config.d/netconf

 


HTH

Duncan
satheeshnp
Advisor

Re: Default gateway goes after a reboot in HP UX 11.31

Dear Duncun,

 

 

Please find the requsted output

 

 

HOSTNAME="cdcdrncpapp01"
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1
ROUTE_SOURCE[0]=""
ROUTE_SKIP[0]=""
RARPD=0
INTERFACE_NAME[1]="lan2"
IP_ADDRESS[1]="X.X.X.X"
SUBNET_MASK[1]="255.255.255.0"
DHCP_ENABLE[1]="0"
ROUTE_GATEWAY[1]="Y.Y.Y.Y"
ROUTE_DESTINATION[1]="default"
ROUTE_COUNT[1]="1"

 

Since gated and rdpd daemon creates problem, i have commented that.

 


 

 

Re: Default gateway goes after a reboot in HP UX 11.31

I just wonder if route command during the boot sequence is failing ?

Then, there must be some error from route command logged in /etc/rc.log file after the lines:

 

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

 

Just a thought.

Duncan Edmonstone
Honored Contributor

Re: Default gateway goes after a reboot in HP UX 11.31

OK, so that doesn't look right - first off, as I said, really the index on those arrays should really start at 0, not 1, also there are some stray ROUTE_ entries in there that do start at zero... change the file so when you run the sed command you see the following:

 

HOSTNAME="cdcdrncpapp01"
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1
RARPD=0
INTERFACE_NAME[0]="lan2"
IP_ADDRESS[0]="X.X.X.X"
SUBNET_MASK[0]="255.255.255.0"
DHCP_ENABLE[0]="0"
ROUTE_GATEWAY[0]="Y.Y.Y.Y"
ROUTE_DESTINATION[0]="default"
ROUTE_COUNT[0]="1"

ROUTE_SOURCE[0]=""
ROUTE_SKIP[0]=""


HTH

Duncan
satheeshnp
Advisor
Solution

Re: Default gateway goes after a reboot in HP UX 11.31

Dear All Thanks for your suggestions. I found the solution. Actually the error was /sbin/init.d/net file was not relevant to 11.31 OS. It was 11.23 Os file. When we have replaced wirh original 11.31 /sbin/init.d/net file, the issue got resolved