Networking Q concerning /etc/network/interfaces



Running wheezy - 3.0.0-1-686-pae

I'm getting confused by what I see in /etc/network/interfaces,
compared to what I see with ifconfig -a.

What I see in /etc/network/interfaces:

auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet dhcp

Does not match what I see with ifconfig -a

eth0 Link encap:Ethernet HWaddr 00:40:f4:b5:29:41
inet addr:192.168.1.54 Bcast:192.168.1.255 Mask:255.255.255.0
BROADCAST MULTICAST MTU:1500 Metric:1


[...]

eth1 Link encap:Ethernet HWaddr 00:11:09:ee:6c:04
inet addr:192.168.1.42 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::211:9ff:feee:6c04/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

[...]

------- --------- ---=--- --------- --------

What shows as eth1 in ifconfig is the working IP (...42) of this host.
Nothing is plugged into device seen as eth0 (...54). That is,
although there is a second network adapter, nothing is plugged into
it, and all traffic comes and goes on [...]42.

It can be seen in the output of netstat -r

Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
default fw.local.lan 0.0.0.0 UG 0 0 0 eth1
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1


So it appears at a superficial reckoning that dhcp has assigned an
address to eth0, but that address appears to be attached to eth1 in
ifconfig and netstat output.

What explains this apparent anomaly?


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/87k43tkwtp.fsf@xxxxxxxxxxx



Relevant Pages

  • Re: NIC Having Multiple IP Addresses?
    ... #ifconfig eth0 down ... gives details of lo interface. ... shows eth0 and lo ... a sniffer to watch the traffice flow from that IP? ...
    (comp.os.linux.networking)
  • Re: FC6 not connecting -- amplification
    ... All right, making assurance doubly sure, I logged in using "su - root" ... I think I just gave up, wiped that install with DBAN, ... Run "ifconfig" and verify you have device eth0. ...
    (Fedora)
  • Re: virtual NICs
    ... virtual interfaces are necessary in order to configure multiple ... IP addresses using "ifconfig", but if you use iproute2's tools you can ... > My question was whether the one being defined to eth0 has an advantage ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: set maximum ip-packet-size ?
    ... If it is an ethernet interface (like eth0, connected to a router or gateway), ... the default MTU will most likely have the default ... You can use the ifconfig command to alter this setting ... (for any network interface). ...
    (comp.os.linux.networking)
  • Re: NIC Having Multiple IP Addresses?
    ... # ifconfig eth0 down ... Ifconfig does not interrupt ... learned that the interface was accepting traffic. ... You can check the physical link status with a tool such as "mii-tool". ...
    (comp.os.linux.networking)