On Wed, Dec 5, 2012 at 6:38 PM, Balasubramaniam Natarajan
<[email protected]> wrote:
> Hi
>
> I have a server with 4 nic card,  I installed Debian wheezy/sid on it.
> After installation I rebooted the machine only to find that the eth0 has
> become eth5 ?
>
> This is the closest thing I came up with google
> https://forums.virtualbox.org/viewtopic.php?f=6&t=24383 "This is a Linux
> *feature* that when ever you change the MAC address it ups the eth*"

Yes.

> The trouble is I did not pull out the nic card on this server and replace
> the nic after installation for me to face this problem.

I don't understand what you are saying above.

> etc/udev/rules.d# cat 70-persistent-net.rules
> # This file was automatically generated by the /lib/udev/write_net_rules
> # program, run by the persistent-net-generator.rules rules file.
> #
> # You can modify it, as long as you keep each rule on a single
> # line, and change only the value of the NAME= key.
>
> # PCI device 0x14e4:/sys/devices/pci0000:00/0000:00:1c.4/0000:02:00.0 (tg3)
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
> ATTR{address}=="d4:ae:52:ab:65:b8", ATTR{dev_id}=="0x0", ATTR{type}=="1",
> KERNEL=="eth*", NAME="eth0"
>
> # PCI device 0x14e4:/sys/devices/pci0000:00/0000:00:1c.4/0000:02:00.1 (tg3)
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
> ATTR{address}=="d4:ae:52:ab:65:b9", ATTR{dev_id}=="0x0", ATTR{type}=="1",
> KERNEL=="eth*", NAME="eth1"
>
> # PCI device 0x14e4:/sys/devices/pci0000:00/0000:00:03.0/0000:08:00.0 (tg3)
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
> ATTR{address}=="00:10:18:e4:48:0a", ATTR{dev_id}=="0x0", ATTR{type}=="1",
> KERNEL=="eth*", NAME="eth2"
>
> # PCI device 0x14e4:/sys/devices/pci0000:00/0000:00:03.0/0000:08:00.1 (tg3)
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
> ATTR{address}=="00:10:18:e4:48:0b", ATTR{dev_id}=="0x0", ATTR{type}=="1",
> KERNEL=="eth*", NAME="eth3"
>
> # PCI device 0x14e4:/sys/devices/pci0000:00/0000:00:1c.4/0000:02:00.1 (tg3)
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
> ATTR{address}=="d4:ae:52:ad:4d:29", ATTR{dev_id}=="0x0", ATTR{type}=="1",
> KERNEL=="eth*", NAME="eth4"
>
> # PCI device 0x14e4:/sys/devices/pci0000:00/0000:00:1c.4/0000:02:00.0 (tg3)
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
> ATTR{address}=="d4:ae:52:ad:4d:30", ATTR{dev_id}=="0x0", ATTR{type}=="1",
> KERNEL=="eth*", NAME="eth5"

However, the posted rules file indicates you are using multi port
ethernet cards (mac addresses are in sequence).

Also eth0 mac address != eth5 mac address.

Please state your problem clearly.  What you kind of hardware you are
dealing with, what are you doing with that hardware.

Brute force solution - empty the persistent net rules file and reboot.
  udev will recreate the entries in the file and assign device eth*
names in the order it sees them.  Edit the file to your liking i.e.
which NIC (aka mac address) you want to assign to respective eth*
names.

HTH
-- Arun Khan
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to