Operating System - HP-UX
1834827 Members
2461 Online
110070 Solutions
New Discussion

Cannot set fefault gateway

 
M. Tariq Ayub
Regular Advisor

Cannot set fefault gateway

Hi,

I am uing HP-UX11i. I am not finding the option to add default gateway through sam.
6 REPLIES 6
Michael Tully
Honored Contributor

Re: Cannot set fefault gateway

As far as I can tell, you can't add a default route through SAM, as it should already have one.

From the command line

# route add default xx.xx.xx.xx 1 (number of hops, usually 1)

You will then need to add this to the start-up file (/etc/rc.config.d/netconf)

Here is a snippet from mine:

ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="10.10.10.1"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
Anyone for a Mutiny ?
Rajeev  Shukla
Honored Contributor

Re: Cannot set fefault gateway

You can not add default gateway through sam, use either the command line method
#route add aa.aa.aa.aa default 1

or update the /etc/rc.config.d/netconf file
and restart the network services or reboot the server.
M. Tariq Ayub
Regular Advisor

Re: Cannot set fefault gateway

Hi,

It should be. sam->network & communication->hosts->action->add default gateway

I have another five server. They give me the menu. but with this particular server i donot get the menu. pls find the attachment.
Elmar P. Kolkman
Honored Contributor

Re: Cannot set fefault gateway

Your path to the menu is different from what I see... I have it as follows:
sam -> Networking and communcications -> hosts -> Local Hosts File
Then I have in the action menu a Modify Default Gateway.

I have tested and this option is available on HP-UX 10.20 too, for instance. Perhaps your problem is that you don't have a default gateway yet.

Have you tried setparms to change the default gateway yet ?
Every problem has at least one solution. Only some solutions are harder to find.
Tim Sanko
Trusted Contributor

Re: Cannot set fefault gateway

also
ipconfig lanx 192.5.5.7 255.255.255.0
route add default 192.5.5.3 255.255.255.0 1

The subnet mask can also be important.

I have found that the file named /etc/rc.config.d/netconf is important for the next reboot. Use lanscan to get current info for your lan card, or "netstat -in".

Hopefully that helps. (I don't need to know what I also want to know why.)

Tim

Dave Hutton
Honored Contributor

Re: Cannot set fefault gateway

Like Elmar suggested you can also use:

#set_parms addl_netwrk

Dave