Operating System - HP-UX
1753519 Members
5441 Online
108795 Solutions
New Discussion юеВ

Unable to contact gateway

 
Ling Min Chye
New Member

Unable to contact gateway

hi all,

I have a L Class 2000 running HP-UX 11.
when I do a #set_parms addl_netwrk, it will prompt me the following message after I've retype the gateway IP address:
Unable to contact system at 147.15.17.1. This system may be down or there may be a network
disruption. Verify that the address "147.15.17.1" is correct.

I can ping my local segment but I am unable to reach nodes that are outside the gateway.

My network administrator have prevent ping to the gateway.

Can anyone help?

Thanks
4 REPLIES 4
John Palmer
Honored Contributor

Re: Unable to contact gateway

Hi,

You can check what's in your routing table with the command:-

netstat -rnv

If you only have one router then all you need is a default route pointing to it. It doesn't matter if you can't 'ping' the router. You need an entry in the routing table that looks like this:-

default/0.0.0.0 147.15.17.1 UG .....

If it isn't there then you can add it with the command:-

route add default 145.15.17.1 1

set_parms stores this permanently in the file /etc/rc/config.d/netconf. For the above default route you would need routing entries as follows:-

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

Note that all the above assumes that your router address is 145.15.17.1.

If you are still having problems, please post the output from netstat -rnv

Regards,
John
Ling Min Chye
New Member

Re: Unable to contact gateway

hi John,

I have also attached my netconf file.
Routing tables
Dest/Netmask Gateway Flags Use Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 2984 lo0 4136
147.15.24.12 147.15.24.12 UH 0 45498 lan0 4136
147.15.0.0 147.15.24.12 U 2 0 lan0 1500
127.0.0.0 127.0.0.1 U 0 0 lo0 4136
default 147.15.17.1 UG 0 0 lan0 1500


In the first 2 min, after I reboot.
I am able to ping my remote site, after that I can't access anymore. very strange.

as written earlier, I recive a non-contactable gateway error during initial settings of default gateway.

Is there a patch ?

Thanks.
Min Chye

Ling Min Chye
New Member

Re: Unable to contact gateway

hi,

attached is my netstat -rn

regards,
Min Chye
John Palmer
Honored Contributor

Re: Unable to contact gateway

Hi again,

Your problem is due to the entries at the end of your 'netconf' file.

You appear to be duplicating the same IP address on lan0 and lan1. I've attached an annotated copy of your netconf and a suggested replacement - I assume that you want to use lan0 and not lan1. Replace netconf with the copy that I've supplied and reboot.

It is not a problem if you can't ping the gateway. Only set_parms tries to do it.

Remember also that set_parms will only configure your lan0. If you want to configure lan1 then do it by editing netconf. I suggest that you do that anyway.

Good Luck,
John