Bug 9811
Summary: | Loopback address to eth0 interface changes scope permanently | ||
---|---|---|---|
Product: | Networking | Reporter: | Bjørn Mork (bjorn) |
Component: | IPV4 | Assignee: | Stephen Hemminger (stephen) |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | ||
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.24-rc8 | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Attachments: | Reset scope to global every time the address is changed |
Description
Bjørn Mork
2008-01-25 02:04:03 UTC
Created attachment 14570 [details]
Reset scope to global every time the address is changed
Reply-To: akpm@linux-foundation.org > On Fri, 25 Jan 2008 02:04:04 -0800 (PST) bugme-daemon@bugzilla.kernel.org > wrote: > http://bugzilla.kernel.org/show_bug.cgi?id=9811 > > Summary: Loopback address to eth0 interface changes scope > permanently > Product: Networking > Version: 2.5 > KernelVersion: 2.6.24-rc8 > Platform: All > OS/Version: Linux > Tree: Mainline > Status: NEW > Severity: normal > Priority: P1 > Component: IPV4 > AssignedTo: shemminger@linux-foundation.org > ReportedBy: bjorn@mork.no > > > Latest working kernel version: none > Earliest failing kernel version: 2.6.18 (verified, but most likely "any") > Distribution: Debian > Hardware Environment: > Software Environment: > Problem Description: > > >From gary.manchon@gmail.com : > > After a bad network interface configuration (ifconfig eth0 127.0.0.1), > I cannot recover the network without rebooting the kernel. > > This is my working configuration : > > # ifconfig > eth0 Link encap:Ethernet HWaddr 00:90:3E:1F:1C:17 > inet addr:192.168.240.195 Bcast:192.168.247.255 > Mask:255.255.248.0 > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:26 errors:0 dropped:0 overruns:0 frame:0 > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:2633 (2.5 KiB) TX bytes:0 (0.0 B) > > lo Link encap:Local Loopback > inet addr:127.0.0.1 Mask:255.0.0.0 > UP LOOPBACK RUNNING MTU:16436 Metric:1 > RX packets:0 errors:0 dropped:0 overruns:0 frame:0 > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) > > # route > Kernel IP routing table > Destination Gateway Genmask Flags Metric Ref Use Iface > 192.168.240.0 * 255.255.248.0 U 0 0 0 eth0 > default 192.168.240.1 0.0.0.0 UG 0 0 0 eth0 > > # ping -c 1 66.102.11.99 > PING 66.102.11.99 (66.102.11.99): 56 data bytes > 64 bytes from 66.102.11.99: icmp_seq=0 ttl=63 time=4.5 ms > > --- 66.102.11.99 ping statistics --- > 1 packets transmitted, 1 packets received, 0% packet loss > round-trip min/avg/max = 4.5/4.5/4.5 ms > > Steps to reproduce: > > # ifconfig eth0 127.0.0.1 > # ifconfig eth0 192.168.240.195 netmask 255.255.248.0 > # route add default gw 192.168.240.1 > > > >From Bj Reply-To: bmork@dod.no The following message is a courtesy copy of an article that has been posted to gmane.linux.network as well. >> Latest working kernel version: none >> Earliest failing kernel version: 2.6.18 (verified, but most likely "any") Looks like this was introduced in 2.1.68, which makes it a 10 year old bug :-) http://www.linuxhq.com/kernel/v2.1/68/net/ipv4/devinet.c Bj Verified fixed in 2.6.25 |