Operating System - HP-UX
1834647 Members
2196 Online
110069 Solutions
New Discussion

After a reboot I have to manually do "route add default xxxx 1", how can I fix this problem

 
SOLVED
Go to solution
mike worrell
Regular Advisor

After a reboot I have to manually do "route add default xxxx 1", how can I fix this problem

We have one unix box that when it is rebooted it will no longer have network connectivity.
All I have to do to correct is
route add default ipaddress 1
and all is fine.

What do I need to do so this problem can be resolved and all will be ok after a reboot?
12 REPLIES 12
Sunil Sharma_1
Honored Contributor
Solution

Re: After a reboot I have to manually do "route add default xxxx 1", how can I fix this problem

you have to make entry for default gateway in /etc/rc.config.d/netconf file

example:

ROUTE_GATEWAY[0]="10.12.20.1"
ROUTE_COUNT[0]="1"
ROUTE_DESTINATION[0]="default"



this is for defauklt gateway 10.12.20.1


Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Johan Brusche
Honored Contributor

Re: After a reboot I have to manually do "route add default xxxx 1", how can I fix this problem


In /etc/rc.config.d/netconf do you have:

ROUTE_GATEWAY[0]=xx.yy.zz.ww
ROUTE_DESTINATION[0]=default
ROUTE_COUNT[0]=1

? If not set these params or use SAM to change them.

__ Johan.

_JB_
Slawomir Gora
Honored Contributor

Re: After a reboot I have to manually do "route add default xxxx 1", how can I fix this problem

Hi,

after adding ROUTE... section to netconf file
run command:
/sbin/init.d/net start
to add this entry to routing table
Dave Hutton
Honored Contributor

Re: After a reboot I have to manually do "route add default xxxx 1", how can I fix this problem

Just an alternative way of doing it rather then sam or editing that file is:
#set_parms addtl_netwrk

It basically looks like the networking section when you first create a server.

I would recommend editing the netconf file like suggested above.

mike worrell
Regular Advisor

Re: After a reboot I have to manually do "route add default xxxx 1", how can I fix this problem

Thanks to everyone for your responses.
I have those entries in the netconf file.
This problem happenned after we had to replace the hard drive about a year ago and restore all the data back. After that we have had to do the command by hand after a reboot.
Any other ideas I can try?

Thanks,
mike
Slawomir Gora
Honored Contributor

Re: After a reboot I have to manually do "route add default xxxx 1", how can I fix this problem

Hi,

can you attach /etc/rc.log file ?
Maby there are some error during setting routes.
Geoff Wild
Honored Contributor

Re: After a reboot I have to manually do "route add default xxxx 1", how can I fix this problem

I think you should try Dave's solution:

set_parms addl_netwrk

How did you restore? Was it by installing HP-UX, then extracting files from say a tar archive?

Maybe your netconf file is corrupt...


You can generate a new one by copying /usr/newconfig/etc/rc.config.d/netconf to /etc/rc.config.d/netconf then run the above command.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
mike worrell
Regular Advisor

Re: After a reboot I have to manually do "route add default xxxx 1", how can I fix this problem

Hi Geoff,

All data for this box is on vg00. We loaded from the make_recovery tape. When it first came up the name wasn't there and HP had me generate a new netconf file as you suggested. Then all worked ok except for the piece of having to do the route add by hand.
Any other things to try. Going to look at the rc.log now.
Slawomir Gora
Honored Contributor

Re: After a reboot I have to manually do "route add default xxxx 1", how can I fix this problem

Hi,

one more question when you run command:
/sbin/init.d/net start
is your routing added ?
Geoff Wild
Honored Contributor

Re: After a reboot I have to manually do "route add default xxxx 1", how can I fix this problem

Can you post your netconf?

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
mike worrell
Regular Advisor

Re: After a reboot I have to manually do "route add default xxxx 1", how can I fix this problem

think i found the problem
the route_count=1 was not there.
I added that.
Think that may have been the issue?

Thanks to everyone
mike
Geoff Wild
Honored Contributor

Re: After a reboot I have to manually do "route add default xxxx 1", how can I fix this problem

Yes - that may have been it:

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

You need the ROUTE_COUNT

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.