Operating System - HP-UX
1754322 Members
2522 Online
108813 Solutions
New Discussion юеВ

add net default: gateway default: Network is unreachable

 
SOLVED
Go to solution
SM_3
Super Advisor

add net default: gateway default: Network is unreachable

I have a problem.

Configure LAN interfaces
Output from "/sbin/rc2.d/S340net start":
----------------------------
ERROR: Failed to add route entry because its interface is not
yet initialized. May need to add this route entry with
a route commad after the interface is up :
add net default: gateway default: Network is unreachable
"/sbin/rc2.d/S340net start" FAILED


I moved this machine from one network to another.
I'm trying to get rid of this default gateway.
I don't have a gateway on this network.
I have searched on this issue and found that configuration with ndd may be necessary.

"This maybe a problem with the subnet mask being all 1's or 0's, which according to RFC1878/1122, is not allowed. There is an ndd tunable that you can apply to disable this subnet checking:

#ndd -set /dev/ip ip_check_subnet_addr 0

This must be added to /etc/rc.config.d/nddconf in order to survive a reboot.

My IP is 168.141.170.97
Broadcast 168.141.255.255
My subnet mask is 255.255.0.0

Do I need to add this entry to nddconf?
So that subnet checking is disabled.
BTW networking man is away!
3 REPLIES 3
Darrell Allen
Honored Contributor
Solution

Re: add net default: gateway default: Network is unreachable

Check your route entries in /etc/rc.config.d/netconf. It appears the default route is still specified in netconf.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Ron Kinner
Honored Contributor

Re: add net default: gateway default: Network is unreachable

There is no need for an ndd change. It appears, as Darrell says, that your /etc/rc.config.d/netconf file needs some work. If you want to post it here we can tell you what is wrong.

Ron
SM_3
Super Advisor

Re: add net default: gateway default: Network is unreachable

hey
thanks for the offer

someone uncommented lines
which had the value of default

problem fixed!
Bravo