netdev
[Top] [All Lists]

Re: [Bug 4554] New: /proc/net/route missing info for 127.0.0.1/8

To: Patrick McHardy <kaber@xxxxxxxxx>
Subject: Re: [Bug 4554] New: /proc/net/route missing info for 127.0.0.1/8
From: Stephen Hemminger <shemminger@xxxxxxxx>
Date: Tue, 3 May 2005 15:47:09 -0700
Cc: "David S. Miller" <davem@xxxxxxxxxxxxx>, netdev@xxxxxxxxxxx
In-reply-to: <4277FDFD.3040501@xxxxxxxxx>
Organization: Open Source Development Lab
References: <20050503143603.4d77d3dd@xxxxxxxxxxxxxxxxx> <4277FDFD.3040501@xxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
On Wed, 04 May 2005 00:41:01 +0200
Patrick McHardy <kaber@xxxxxxxxx> wrote:

> > Distribution: CentOS 4 (RHEL4)
> > Hardware Environment: i686
> > Problem Description:
> > cat /proc/net/route is missing information for 127.0.0.1/8 network (lo
> > interface).  On 2.4 kernels, this info was present (just checked on an old 
> > RH7.3
> > machine).  It seems to be missing on 2.6 kernels.  Bug?  Feature?  Omission?
> 
> 2.4.30 doesn't show it:
> 
> # route -n
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 172.16.0.0      0.0.0.0         255.255.0.0     U     0      0        0 eth0
> 
> And I'd be surprised if it did, it doesn't include other routes
> from the local table.
> 
> Regards
> Patrick


It shows up on our 2.4.18 system, probably it got lost in the fib/seq_printf
conversion.

$ /sbin/route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.159.0   172.20.4.11     255.255.255.0   UG    0      0        0 eth2
172.20.0.0      0.0.0.0         255.255.0.0     U     0      0        0 eth2
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         172.20.0.1      0.0.0.0         UG    0      0        0 eth2

<Prev in Thread] Current Thread [Next in Thread>