networking bug?



Is this desired (but odd) behavior or a bug?
The driver is 3c59x and the kernel is 2.6.13.2 if that is relevant.

eth0 has no information (the driver was just freshly loaded)

# ip route show table main dev eth0
# ip route show table local dev eth0

Bring it up with an address

# ifconfig eth0 1.2.3.4
# ip route show table main dev eth0
1.0.0.0/8 proto kernel scope link src 1.2.3.4
# ip route show table local dev eth0
broadcast 1.0.0.0 proto kernel scope link src 1.2.3.4
local 1.2.3.4 proto kernel scope host src 1.2.3.4
broadcast 1.255.255.255 proto kernel scope link src 1.2.3.4

Turn it back off

# ifconfig eth0 down
# ping -c 1 1.2.3.4
PING 1.2.3.4 (1.2.3.4) 56(84) bytes of data.
64 bytes from 1.2.3.4: icmp_seq=1 ttl=64 time=0.091 ms

--- 1.2.3.4 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.091/0.091/0.091/0.000 ms

The address is still pingable

# ip route show table main dev eth0
# ip route show table local dev eth0
local 1.2.3.4 proto kernel scope host src 1.2.3.4

The routing table entry was left behind.

I've had some great paranoid moments with SSH host-key errors thanks to
this quirk.
--
Jon
"RISC architecture is gonna change everything." -Kate Libby

Attachment: signature.asc
Description: Digital signature



Relevant Pages

  • Re: source based routing help needed
    ... route, and make 'eth0' instead what happens. ... so if webserver listening on 192.168.1.1 receives a packet from ... ip route add $eth0_subnet dev eth0 table 100 ...
    (comp.os.linux.networking)
  • Re: Linux is Driving me $#@!!!! nutz!!!
    ... :Doing a route call from terminal ... via nic card on eth0. ... time since I had to configure a PPP connection, ... from the command line. ...
    (rec.crafts.metalworking)
  • Re: Ethernet order
    ... > I added this Linux box on the network to play with and wanted it to ... connect to the internet via that Westell device, ... The last route, with some sort of "catch all" destination 0.0.0.0, is ... Your ISP's router would go via eth0 to that device. ...
    (comp.os.linux.networking)
  • Re: [opensuse] Suse 10.2 +two network cards (Not yet solved)
    ... then set the eth0 as it was default from the installation. ... set eth1 DNS servers etc. so DHCP would not update them. ... Also have figure out where to put the route command ...
    (SuSE)
  • Re: DNS or network problem
    ... UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 ... The first thing that leaps out at me is the fact that eth0 and eth1 ... Because all your routes passes through eth1, and not eth0, I ...
    (Fedora)