Operating System - HP-UX
1820260 Members
2870 Online
109622 Solutions
New Discussion юеВ

default gateway unreachable

 
SOLVED
Go to solution
msaygak
Frequent Advisor

default gateway unreachable

Hello!
I have bl870c server with hp-ux 11iv3 installed. I have troubles configuring network settings.
I'm using network interface lan1:
bash-4.0# netstat -in
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lo0 32808 127.0.0.0 127.0.0.1 325538 0 325538 0 0
lan1 1500 172.20.122.0 172.20.122.15 108 0 99 0 0

default routing table entries:
bash-4.0# netstat -rn
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 32808
172.20.122.15 172.20.122.15 UH 0 lan1 32808
172.20.122.0 172.20.122.15 U 2 lan1 1500
127.0.0.0 127.0.0.1 U 0 lo0 32808

lan1 settings:
bash-4.0# ifconfig lan1
lan1: flags=1843
inet 172.20.122.15 netmask ffffff00 broadcast 172.20.122.255

With these settingss all hosts in subnet 172.20.122.0/24 are available:
bash-4.0# ping 172.20.122.13
PING 172.20.122.13: 64 byte packets
64 bytes from 172.20.122.13: icmp_seq=0. time=0. ms
64 bytes from 172.20.122.13: icmp_seq=1. time=0. ms
64 bytes from 172.20.122.13: icmp_seq=2. time=0. ms

But when I'm trying to add default gateway, I got error:
bash-4.0# route add net default 172.20.122.1
add net default: gateway 172.20.122.1: Network is unreachable

I can not understand where is the mistake.
4 REPLIES 4
kobylka
Valued Contributor
Solution

Re: default gateway unreachable

Hello msaygak!


Add the default route with a count parameter of 1:

bash-4.0# route add net default 172.20.122.1 1


Since gateway and localhost are different the count is not equal to 0, which is the default.

Kind regards,

Kobylka
Michael Steele_2
Honored Contributor

Re: default gateway unreachable

Hi

And review man pages for set_parms, a much easier way to configure your network.
Support Fatherhood - Stop Family Law
msaygak
Frequent Advisor

Re: default gateway unreachable

the problem is HP-UX tries to ping default gateway before using it. Our NOC prohibits pings of network gateways.
I made changes in /etc/rc.config.d/nddconf:
TRANSPORT_NAME[1]=ip
NDD_NAME[1]=ip_ire_gw_probe
NDD_VALUE[1]=0
and noe problem resolved.
Michael Steele_2
Honored Contributor

Re: default gateway unreachable

HI

You're going to have to open up another thread and also research dead gateway and keep alive both common arguements in the ndd command.

Additionally, place state exactly what your problem is both ndd arguements are solution to separate problems.
Support Fatherhood - Stop Family Law