1847052 Members
5175 Online
110261 Solutions
New Discussion

setup default gateway

 
SOLVED
Go to solution
Wamaitha
Frequent Advisor

setup default gateway

just setup a hp-ux server, need to find out how to setup default gateway, could not find it anywhere. IP address and subnet mask are setup.
thank you
7 REPLIES 7
Zigor Buruaga
Esteemed Contributor

Re: setup default gateway

Hi,

You can use "set_parms addl_netwrk"
One of the steps will be the default gateway, confirm the ones you already have and skip those you don't want.

Regards,
Zigor

Orhan Biyiklioglu
Respected Contributor
Solution

Re: setup default gateway

Default gateway setup is kept in the /etc/rc.config.d/netconf file along with other network settings.

Look for the lines:

ROUTE_DESTINATION[0]=default
ROUTE_GATEWAY[0]=X.X.X.X
ROUTE_COUNT[0]=1

X.X.X.X will be your default gateway.

hth
Bharat Katkar
Honored Contributor

Re: setup default gateway

Hi Leah,
You can use "set_parms addl_netwrk" and follow the instructions or at command line you can fire:

# route add default
but in this case you will also have to modify /etc/rc.config.d/netconf to make the changes permanent.

Hope that helps.
Regards,




You need to know a lot to actually know how little you know
Orhan Biyiklioglu
Respected Contributor

Re: setup default gateway

Do not forget to run

/sbin/init.d/net start

after changing the netconf file.
Devender Khatana
Honored Contributor

Re: setup default gateway

Hi,

Prior to adding the new address for gateway to file I would suggest check the routing by adding the same network as default gateway temporarily.

#route add default xx.xx.xx.xx

Man route for details.

When the destination can be reached through the same ass the same to the file to be permanent.

HTH,
Devender
Impossible itself mentions "I m possible"
Ranjith_5
Honored Contributor

Re: setup default gateway

Hi ,

There is the command for adding default route.For example I am using 192.168.0.1 as a gate way IP. You can replace this with your gate way IP.

#route add default 192.168.0.1 1

The above default route will be invalid after rebootig the server. To make it permanent do the following steps.

#vi /etc/rc.config.d/netconf

add the following lines

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


now restart network service.

#/sbin/init.d/net stop

#/sbin/init.d/net start


refer the following doc from HP.

http://docs.hp.com/en/B2355-90685/ch02s03.html#bcfdebbg


Hope this helps.

Regards,
Syam
Wamaitha
Frequent Advisor

Re: setup default gateway

thank you all, the answers provided the solution to my question. editing the netconf file and stopping and starting the network services.

thank you