* Fw: [Bug 4554] New: /proc/net/route missing info for 127.0.0.1/8
@ 2005-05-03 21:36 Stephen Hemminger
2005-05-03 22:41 ` Patrick McHardy
0 siblings, 1 reply; 6+ messages in thread
From: Stephen Hemminger @ 2005-05-03 21:36 UTC (permalink / raw)
To: David S. Miller; +Cc: netdev
Begin forwarded message:
Date: Wed, 27 Apr 2005 09:05:29 -0700
From: bugme-daemon@osdl.org
To: shemminger@osdl.org
Subject: [Bug 4554] New: /proc/net/route missing info for 127.0.0.1/8
http://bugme.osdl.org/show_bug.cgi?id=4554
Summary: /proc/net/route missing info for 127.0.0.1/8
Kernel Version: kernel-2.6.9-5.0.3.EL
Status: NEW
Severity: normal
Owner: shemminger@osdl.org
Submitter: alex@milivojevic.org
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?
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Fw: [Bug 4554] New: /proc/net/route missing info for 127.0.0.1/8
2005-05-03 21:36 Fw: [Bug 4554] New: /proc/net/route missing info for 127.0.0.1/8 Stephen Hemminger
@ 2005-05-03 22:41 ` Patrick McHardy
2005-05-03 22:47 ` Stephen Hemminger
0 siblings, 1 reply; 6+ messages in thread
From: Patrick McHardy @ 2005-05-03 22:41 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: David S. Miller, netdev
> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bug 4554] New: /proc/net/route missing info for 127.0.0.1/8
2005-05-03 22:41 ` Patrick McHardy
@ 2005-05-03 22:47 ` Stephen Hemminger
2005-05-03 22:55 ` Arnaldo Carvalho de Melo
2005-05-03 22:58 ` Patrick McHardy
0 siblings, 2 replies; 6+ messages in thread
From: Stephen Hemminger @ 2005-05-03 22:47 UTC (permalink / raw)
To: Patrick McHardy; +Cc: David S. Miller, netdev
On Wed, 04 May 2005 00:41:01 +0200
Patrick McHardy <kaber@trash.net> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bug 4554] New: /proc/net/route missing info for 127.0.0.1/8
2005-05-03 22:47 ` Stephen Hemminger
@ 2005-05-03 22:55 ` Arnaldo Carvalho de Melo
2005-05-03 23:08 ` Thomas Graf
2005-05-03 22:58 ` Patrick McHardy
1 sibling, 1 reply; 6+ messages in thread
From: Arnaldo Carvalho de Melo @ 2005-05-03 22:55 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: Patrick McHardy, David S. Miller, netdev
On 5/3/05, Stephen Hemminger <shemminger@osdl.org> wrote:
> On Wed, 04 May 2005 00:41:01 +0200
> Patrick McHardy <kaber@trash.net> 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
[root@toy acme]# route -n
Tabela de Roteamento IP do Kernel
Destino Roteador MáscaraGen. Opções Métrica Ref Uso Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
172.20.0.0 0.0.0.0 255.255.0.0 U 0 0 0 tun0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.2 0.0.0.0 UG 0 0 0 eth0
[root@toy acme]# uname -r
2.6.11-77124cl
[root@toy acme]#
[root@toy acme]# ip r s
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.192
172.20.0.0/16 dev tun0 proto kernel scope link src 172.20.0.1
127.0.0.0/8 dev lo scope link
default via 192.168.1.2 dev eth0
[root@toy acme]#
[root@toy acme]# cat /proc/net/route
Iface Destination Gateway Flags RefCnt Use Metric
Mask MTU Window IRTT
eth0 0001A8C0 00000000 0001 0 0 0
00FFFFFF 0 0 0
tun0 000014AC 00000000 0001 0 0 0
0000FFFF 0 0 0
lo 0000007F 00000000 0001 0 0 0
000000FF 0 0 0
eth0 00000000 0201A8C0 0003 0 0 0
00000000 0 0 0
[root@toy acme]#
No problems here.
- Arnaldo
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bug 4554] New: /proc/net/route missing info for 127.0.0.1/8
2005-05-03 22:47 ` Stephen Hemminger
2005-05-03 22:55 ` Arnaldo Carvalho de Melo
@ 2005-05-03 22:58 ` Patrick McHardy
1 sibling, 0 replies; 6+ messages in thread
From: Patrick McHardy @ 2005-05-03 22:58 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: David S. Miller, netdev
Stephen Hemminger wrote:
> 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
2.4.18 looks similar to 2.4.30 in fib_get_procinfo(), fib_magic() and
other functions involved. I believe its simply a change of how userspace
sets up the routes:
# route -n
172.16.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 172.16.0.1 0.0.0.0 UG 0 0 0 eth0
# route add -net 127.0.0.0/8 lo
# route -n
172.16.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 172.16.0.1 0.0.0.0 UG 0 0 0 eth0
"route" seems to add all routes to the main table. My debian system
relies on the kernel setting up loopback correctly, so it doesn't add
a route itself.
Regards
Patrick
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bug 4554] New: /proc/net/route missing info for 127.0.0.1/8
2005-05-03 22:55 ` Arnaldo Carvalho de Melo
@ 2005-05-03 23:08 ` Thomas Graf
0 siblings, 0 replies; 6+ messages in thread
From: Thomas Graf @ 2005-05-03 23:08 UTC (permalink / raw)
To: acme; +Cc: Stephen Hemminger, Patrick McHardy, David S. Miller, netdev
* Arnaldo Carvalho de Melo <39e6f6c70505031555691daf80@mail.gmail.com> 2005-05-03 19:55
> [root@toy acme]# route -n
> Tabela de Roteamento IP do Kernel
> Destino Roteador MáscaraGen. Opções Métrica Ref Uso Iface
> 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
> 172.20.0.0 0.0.0.0 255.255.0.0 U 0 0 0 tun0
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
> 0.0.0.0 192.168.1.2 0.0.0.0 UG 0 0 0 eth0
> [root@toy acme]# uname -r
> 2.6.11-77124cl
> [root@toy acme]#
>
> [root@toy acme]# ip r s
> 192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.192
> 172.20.0.0/16 dev tun0 proto kernel scope link src 172.20.0.1
> 127.0.0.0/8 dev lo scope link
> default via 192.168.1.2 dev eth0
Your distribution, scripts, whatever doesn't use the local table
for the loopback route. This gets to be a problem once you add
fib rules and rely on the fact that local routes should have top
priority.
> [root@toy acme]#
>
> [root@toy acme]# cat /proc/net/route
> Iface Destination Gateway Flags RefCnt Use Metric
> Mask MTU Window IRTT
> eth0 0001A8C0 00000000 0001 0 0 0
> 00FFFFFF 0 0 0
> tun0 000014AC 00000000 0001 0 0 0
> 0000FFFF 0 0 0
> lo 0000007F 00000000 0001 0 0 0
> 000000FF 0 0 0
> eth0 00000000 0201A8C0 0003 0 0 0
> 00000000 0 0 0
> [root@toy acme]#
Yes, that's the main routing table. This is a userspace issue.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-05-03 23:08 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-03 21:36 Fw: [Bug 4554] New: /proc/net/route missing info for 127.0.0.1/8 Stephen Hemminger
2005-05-03 22:41 ` Patrick McHardy
2005-05-03 22:47 ` Stephen Hemminger
2005-05-03 22:55 ` Arnaldo Carvalho de Melo
2005-05-03 23:08 ` Thomas Graf
2005-05-03 22:58 ` Patrick McHardy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).