Re: Two NICs



On 27 Aug, 08:55, Harold Weissman <Harold...@xxxxxxxxxxx> wrote:
I have a box running a 2.6.21 kernel. The box has two NICs. How
can I find which NIC as been assigned to eth0, and which to eth1? I know
that ifconfig returns the MAC address of each eth* device - but the
problem is that I do not know what MAC address corresponds to what NIC to
begin with.

The simple solution, if you have a DHCP server available, is to plug
one of them in, have a nice cup of tea, and then run ifconfig -a
again. The one with an IP address is the one with the plug in.

If you don't have a dhcp server available then you can do something
similar by setting one of them with a static IP address valid for your
network, and the other with a stupid one. Then swap the cable around
until you can ping things on your network.

In some instances, ifconfig will report whether the cable is plugged
or unplugged.

A lot of hardware has tiny labells with the mac address on associated
with the sockets.

I know it can get confusing. My asus motherboard has two, and the
windows "enumerator" supplied occasionally swaps them over when you
reboot. Linux is fine. The one marked "1" on the back is always
eth0, and the one marked "2" is eth1.

When I used to build routers using smoothwall the trick was to plug in
two different makes of NIC and use that to identify the plugholes!

.



Relevant Pages

  • Renaming network interfaces one time (repopulating /etc/iftab?)
    ... Does anybody know how to take 2 new MAC addresses for newly attached NIC's ... and make them the default /etc/iftab eth0 and eth1? ... to repopulate the /etc/iftab file with the new network interface names (eth0 ... Since this is a VMWare virtual machine guest OS, ...
    (Ubuntu)
  • Difficult networking problem
    ... mbit ethernet nics (eth0 and eth1). ... I can ping each interface but only one ... ifconfig eth0 down && ifconfig eth1 up ...
    (comp.os.linux.setup)
  • Re: fix a particular network card as ethx
    ... look at ifconfig eth0 and ifconfig eth1 commands output ... physical mac address. ...
    (comp.os.linux.networking)
  • Re: Help Please: Network Down
    ... firewire card that takes over the network card, ... Something like eth0 or eth1 should show up. ... ifconfig eth1 down and then ...
    (Debian-User)
  • Re: Network changing from eth0 to eth1
    ... What is changing the Network settings from eth0 to eth1? ... You did change the MAC address in the config, ...
    (Fedora)