Operating System - HP-UX
1819838 Members
2594 Online
109607 Solutions
New Discussion юеВ

Re: Cannot add default route

 
Remco van der Noord
New Member

Cannot add default route

Hi All,

I'm experiencing a rather odd problem, in my pov.
On my ux 11 box, i just can't add the default route!
Lan1 = 134.51.0.129/24
and then route add default 134.51.0.7 (my def. gw) just fails!!
Have a look: (netstat output is rather messed up, sorry..)

[root@haven /root] #ifconfig lan1
lan1: flags=1843
inet 134.51.0.129 netmask ffff0000 broadcast 134.51.255.255
[root@haven /root] #netstat -nrv
Routing tables
Dest/Netmask Gateway Flags Refs Use Interface Pmtu
127.0.0.1/255.255.255.255
127.0.0.1 UH 0 2221486 lo0 4136
134.51.0.129/255.255.255.255
134.51.0.129 UH 0 74985512 lan1 4136
134.51.0.0/255.255.0.0 134.51.0.129 U 2 0 lan1 1500
127.0.0.0/255.0.0.0 127.0.0.1 U 0 0 lo0 4136
[root@haven /root] #route add default 134.51.0.7
add net default: gateway 134.51.0.7: Network is unreachable
[root@haven /root] #


Anyone?

Thanx, Paul
9 REPLIES 9
Rajeev  Shukla
Honored Contributor

Re: Cannot add default route

Hi Paul,
You'll be able to add default gateway only if its reachable, means you can ping it. If you cant ping the gateway IP, then you cant add it as gateway.
First resolve to see you can ping that IP 134.51.0.7 and to do that see you'r subnet mask if that is valid one given by network administrator.

Second is give a metric count of 1 in the command then it will work.

Use
#route add default 134.51.0.7 1

Note "1" in the end.

Alex Lavrov
Regular Advisor

Re: Cannot add default route

Check you network. We had smililar problems and found that our network was not properly defined by the network admins.
T G Manikandan
Honored Contributor

Re: Cannot add default route

Are you able to ping the gateway.
If you are unable to ping,echeck whether using have plugged the network cable in the right port

Revert
twang
Honored Contributor

Re: Cannot add default route

Remember to edit /etc/rc.config.d/netconf for permanent change.
Remco van der Noord
New Member

Re: Cannot add default route

Hi Rajeev,

the point being: It works..
That is: I'm now able to add the route.

I still can't ping the gw however, but that's mainly because the Net Admin (== me) disabled that on the gw (== firewall).

However, I'm not able to contact any host at the other side of the fw....

The route also became unavailible, but I disabled the dead_fgateway thinggy:

ndd -set /dev/ip ip_ire_gw_probe 0

and then deleted + re-added the def. route.

I'll tingle a bit on the fw. to see if I'll manage.

Thanx, Paul
Remco van der Noord
New Member

Re: Cannot add default route

Hi Twang,

Thanx for reminding me;-)

I also added this to nddconf:
#
TRANSPORT_NAME[0]=ip
NDD_NAME[0]=ip_ire_gw_probe
NDD_VALUE[0]=0
~
to make the ndd -set /dev/ip ipblablabla thing permanent.

Is this the corect way?

Paul
Ron Kinner
Honored Contributor

Re: Cannot add default route

Paul,

Your nddconf entry is correct assuming you have no other entries. You might also want to edit /etc/rc.config.d/netconf to add your default route so it will be available after the next reboot. Don't forget the metric of 1.

Ron
Michael Steele_2
Honored Contributor

Re: Cannot add default route

Save yourself the headache. Gather up your hostname, server ip, netmask, gateway, ntp, nis, and dns and run this command:

# set_parms initial
Support Fatherhood - Stop Family Law
Michael Steele_2
Honored Contributor

Re: Cannot add default route

Sorry, didn't read far enough. Your gateway has no ICMP traffic, i.e., pings. This is more and more common. In lieu of ping try 'linkloop' to the switch, or, whatever your next hop up the network is.

# linkloop MAC

Use arp -a to help see what the MAC's are, or, contact the network administrator.
Support Fatherhood - Stop Family Law