Operating System - HP-UX
1833983 Members
1704 Online
110063 Solutions
New Discussion

Missing 127.0.0.0 in netstat -rnv

 
William Wan_1
Frequent Advisor

Missing 127.0.0.0 in netstat -rnv

I've been doing some modification in /etc/rc.config.d/netconf and executed command's like "route -f" net stop|start etc

I just found out a route is missing in netstat -rnv display
# netstat -rnv
Routing tables
Dest/Netmask Gateway Flags Refs Interface Pmtu
127.0.0.1/255.255.255.255 127.0.0.1 UH 0 lo0 4136
10.0.100.16/255.255.255.255 10.0.100.16 UH 0 lan2 4136
10.0.143.15/255.255.255.255 10.0.143.15 UH 0 lan0 4136
10.0.143.0/255.255.255.0 10.0.143.15 U 2 lan0 1500
10.0.100.0/255.255.255.0 10.0.100.16 U 2 lan2 1500
default/0.0.0.0 10.0.143.220 UG 0 lan0 0

The line "127.0.0.0/255.0.0.0 127.0.0.1 U 0 lo0 0" is missing.

I checked the netconf and ran other commonds to check the loopback, everything seems to be normal and no problem occur accept the missing line.

On my other system witht he same patch level / exact same configuration, this line is not missing.

Can someone please tell me what "127.0.0.0/255.0.0.0 127.0.0.1 U 0 lo0 0" in netstat -rnv means, and if missing, how can I fix it?

Kind regards,

William
1 REPLY 1
spex
Honored Contributor

Re: Missing 127.0.0.0 in netstat -rnv

Hi William,

The line says to route any packet destined for 127.x.x.x to 127.0.0.1 (a.k.a. the loopback interface). I'm surprised you were able to delete it as, according to route(1M), "Routes for any 127.*.*.* loopback destination cannot be added or deleted."

Are you sure this route even existed before you made the changes?

PCS