From: T o n g on
Hi,

One of My Debian has eth1 as the Ethernet card, while all others use
eth0. There are only one Ethernet card in each system. Why the different?

How can I have consistent 'eth0' throughout all systems?

Thanks

--
Tong (remove underscore(s) to reply)
http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
From: Stephen Powell on
On Thu, 28 Jan 2010 15:37:47 -0500, T o n g wrote:
> Hi,
>
> One of My Debian has eth1 as the Ethernet card, while all others use
> eth0. There are only one Ethernet card in each system. Why the different?
>
> How can I have consistent 'eth0' throughout all systems?
>
> Thanks
>

By default, ifconfig only shows active interfaces. Issue "ifconfig -a"
to show *all* interfaces. (You have to be root of course.) You may
discover that there is a "hidden" interface that Linux recognizes.
Maybe there is a device built-in to the motherboard and you're using
an ethernet adapter in a bus slot.

If there is no other interface shown, look for a file in /etc/udev/rules.d
that has "persistent-net.rules" in it. The actual file name is
dependent on the architecture and the release of Debian. Look in this
file. You should see information for both interfaces in it, including
the MAC addresses. This can happen, for example, if a motherboard
containing a built-in ethernet adapter goes bad and has to be replaced.
The new motherboard has an ethernet adapter with a different MAC
address than the old one.

If this is the case, and the machine really has only one ethernet
adapter, erase the file, shutdown and reboot. The file will be
recreated upon reboot and eth0 will be assigned to the one and only
MAC address that can be found during boot.


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
From: Chance Platt on
T o n g wrote:
> Hi,
>
> One of My Debian has eth1 as the Ethernet card, while all others use
> eth0. There are only one Ethernet card in each system. Why the different?
>
> How can I have consistent 'eth0' throughout all systems?
>
> Thanks
>

Is there more than one NIC in your system? If not, delete the rules
associated with your network card in
/etc/udev/rules.d/70-persistent-net.rules and reboot.

I'm guessing udev has for whatever reason identified more than one
network card installed in your system. It can be caused by changing
network cards, the kernel identifying your card differently at some
point (maybe kernel upgrades or bug, changed MAC address..)



--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
From: Boyd Stephen Smith Jr. on
On Thursday 28 January 2010 14:53:47 T o n g wrote:
> One of My Debian has eth1 as the Ethernet card, while all others use
> eth0. There are only one Ethernet card in each system. Why the different?

Network device names are controlled by the kernel, in cooperation with udev.

I suggest looking at /etc/udev/rule.d/70-persistent-net.rules or something
like that. You can freely adjust the names of most devices.
--
Boyd Stephen Smith Jr. ,= ,-_-. =.
bss(a)iguanasuicide.net ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.net/ \_/
From: Olaf Reitmaier Veracierta on
Read my replay complete before go to the links.

On 28/01/10 16:23, T o n g wrote:
> Hi,
>
> One of My Debian has eth1 as the Ethernet card, while all others use
> eth0. There are only one Ethernet card in each system. Why the different?
>
"An explanation I saw in another post explained that with newer kernels
in Debian hardware is initialized asynchronously so you never know which
card will become eth0 and which eth1 and this matches what I experienced
with my cards."

A solution (Map to MAC):
http://lists.debian.org/debian-user/2006/01/msg00075.html

If the card it not integrated in the motherboard changing the slot
change ethX enumeration.

You can try to change /etc/udev/rules.d/70-persistent-net.rules as show
here:

Another solution: http://ubuntuforums.org/showthread.php?t=1007285

> How can I have consistent 'eth0' throughout all systems?
>
>
If there are other Ethernet interfaces (WiFi, Firewire 1394, even a
bluetooh) also is posible the module load order is the reason.

> Thanks
>
>

--
---------------------------------------------------------------------
"You don't know where your shadow will fall",
Somebody.-
---------------------------------------------------------------------
Ing. Olaf Reitmaier Veracierta<olafrv(a)gmail.com>
---------------------------------------------------------------------
Personal Web Page -- http://olafrv.com -- info(a)olafrv.com
---------------------------------------------------------------------


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org