1831686 Members
2299 Online
110029 Solutions
New Discussion

Default Route

 
Amit Dixit_2
Regular Advisor

Default Route

Hi,
I have just installed HP-UX 11 on my server
I want to set the default gateway for this
machine how can I do that.

Thanks,
Amit
5 REPLIES 5
Cheryl Griffin
Honored Contributor

Re: Default Route

Configure /etc/rc.config.d/netconf
"Downtime is a Crime."
Francisco J. Soler
Honored Contributor

Re: Default Route

Hi,

you can try:

/etc/set_parms

In HP-UX 10.20 works, i don't know if works in HP-UX 11.

Frank.
Linux?. Yes, of course.
Ravi_8
Honored Contributor

Re: Default Route

Hi

#route add default gateway

to make this permanent open /etc/rc.config.d/netconf file and make these entries

ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=""
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
never give up
Geoff Wild
Honored Contributor

Re: Default Route

Yes - in /etc/rc.config.d/netconf:

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


Where XXX.XXX.XXX.XXX is ip of gateway.

set_parms will do it as well - do a man set_parms for mor info.

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.
David Child_1
Honored Contributor

Re: Default Route

Amit,

1. To add the route to the running system:
route add default 1

2. To make it permanent:
# vi /etc/rc.config.d/netconf
(modify the following with your information)

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

Note: If these are already populated with some route that you need to keep, just add a new set. (e.g. ROUTE_DESTINATION[1]=, etc.)

David