Operating System - HP-UX
1834936 Members
2317 Online
110071 Solutions
New Discussion

Re: Setting Gateway correct

 
Luis Varon
Occasional Advisor

Setting Gateway correct

Dear Ladies and Gentleman,

i have a problem regarding an hpux Server which i had installed some time ago for a customer.

The problem is that even all the parameters are set correctlye in the file /etc/rc.config.d/netconf and are identically to an second machine, where the gateway works, the machine does not have set the default gateway correctly.

If i start sam and differ beetween both machine than the only diferrence i can see is that the one with the working interface show the correct default gateway, the other one shows "not defined".

If i set the gateway manually "route add default ..." it works perfect. Although i can handle it via an startscript so that the machine sets the default gateway automatically.

Has someone an idea why it does not work automatically?

Regards

Luis
lvaron
10 REPLIES 10
Helen French
Honored Contributor

Re: Setting Gateway correct

Did you try setting the gateway from SAM? Are you getting any errors on /etc/rc.log while configuring networks during system startup?
Life is a promise, fulfill it!
Uday_S_Ankolekar
Honored Contributor

Re: Setting Gateway correct


I guess, you can try by set_parms addl_netwrk and see if it makes any difference.

-USA..
Good Luck..
Pete Randall
Outstanding Contributor

Re: Setting Gateway correct

Luis,

What do your gateway entries in /etc/rc.config.d/netconf look like? Have you compared them to the working machine?


Pete

Pete
John Dvorchak
Honored Contributor

Re: Setting Gateway correct

You have to edit /etc/rc.config.d/netconf and add the default router in so the router information survives a reboot. Here is an excerpt from my netconf file:

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

Of course you would put your actual default router address where my 123.123.123.1 is and don't forget the ROUTE_COUNT[0]=1 as this tells the system that the router is on the LAN and not the host itself.
If it has wheels or a skirt, you can't afford it.
Jim Butler
Valued Contributor

Re: Setting Gateway correct

ps -ef | grep gated

Make sure gated is not running.

Then, note the interface number of your card in lanscan.

That number cooresponds to the [0] in the post immediately preceeding this one. Set your gateway according to that post.

(If gated was running, make sure you turn it off in netconf)

Man The Bilge Pumps!
Jim Butler
Valued Contributor

Re: Setting Gateway correct

ps -ef | grep gated

Make sure gated is not running.

Then, note the interface number of your card in lanscan.

That number cooresponds to the [0] in the post immediately preceeding this one. Set your gateway according to that post.

(If gated was running, make sure you turn it off in netconf)

Man The Bilge Pumps!
Luis Varon
Occasional Advisor

Re: Setting Gateway correct

Thanks for all the answers.

where can i edit the settings im SAM? I haven't found a place to change it yet.


For the others, the settings in the /etc/rc.config.d/netconf file are:

LOOPBACK_ADDRESS=127.0.0.1
DHCP_ENABLE[0]=0
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="10.85.1.2"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
GATED=0
GATED_ARGS=""
RDPD=0
RARP=0
IP_ADDRESS[1]=10.85.102.2
SUBNET_MASK[1]=255.255.0.0
INTERFACE_NAME[1]=lan1
BROADCAST_ADDRESS[1]=10.85.255.255
INTERFACE_STATE[1]=up
DHCP_ENABLE[1]=1


Is there anything wrong?

Thanks

Luis
lvaron
Chris Fadrowski
Super Advisor

Re: Setting Gateway correct

what network interface card are you using? lan1, lan0 etc..... You can find this by ioscan -fnC lan or lanscan. You could try resetting the card in lanadmin.
Chris Fadrowski
Super Advisor

Re: Setting Gateway correct

i almost looks to me like you are assigning info to two different network cards one and zero..
V. Nyga
Honored Contributor

Re: Setting Gateway correct

Hi Luis,

in /etc/rc.config.d/netconf it should look like this:
ROUTE_DESTINATION[0]=ip-address of destination
ROUTE_MASK[0]="255.255.0.0"
ROUTE_GATEWAY[0]=10.85.1.2 (ip-address of your gateway to the destination?)(test it without "")
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""

That works for me!

As Shiju mentioned, if anything wrong there should be an error in /etc/rc.log.

Regards
Volkmar
*** Say 'Thanks' with Kudos ***