4

First of all, here is my /etc/network/interfaces

auto lo 
iface lo inet loopback 

auto eth0 
iface eth0 inet static 
address 10.10.4.142 
netmask 255.255.255.0 
gateway 10.10.4.1 

auto eth1 
iface eth1 inet static 
address 10.10.4.138 
netmask 255.255.255.0 
gateway 10.10.4.1 

At boot time, both eth1 and eth0 are reachable and usable.

I shut down my eth1 interface with

ifdown eth1

My ifconfig does not show my eth1 interface.

But, when i try to ping 10.10.4.138 (the ip address attached to my eth1), it pings!

I don't think that should be the normal behavior. If so, can you explain me why? Why can we ping an "ifdowned" interface?

ohe
  • 145
  • 1
  • 7

1 Answers1

1

It looks like both interfaces are connected to the same subnet and same broadcast domain. Are you sure there isn't another device on the network that also has the ip of 10.10.4.138? Maybe when you drop eth1, it's then pinging 10.10.4.138 via eth0?

I would try running Wireshark/tshark on the two interfaces (separately) when eth1 is down, and seeing where the packets are going.

Christopher Cashell
  • 9,128
  • 2
  • 32
  • 44
  • In fact, and after verification. Both interfaces are connected to the same ... hardware interface. I think that this is the explanation of this behavior. – ohe Jan 24 '11 at 10:10