Friday, March 25, 2011

Ethernet device renaming

At some point during the last five years of upgrades on my laptop, the ethernet port went from being eth0 to being called eth2. I couldn't for the life of me figure out how or why this happened. I also couldn't figure out how to undo it. Well, during my recent pogo issues, I finally ran into some web pages which told me all about it. In a nutshell, it is udev. Here is the file that can be modified to change the device name of your ethernet devices.

/etc/udev/rules.d/70-persistent-net.rules
# PCI device 0x14e4:0x170c (b44)
SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:15:c5:3c:e6:4d", ATTR{type}=="1", NAME="eth2"

What happened to me was that eth0 and eth1 were assigned to MAC addresses based on my previous laptop. Dell had to replace my laptop and when that happened the new MAC addresses had to be given new names as eth0 and eth1 were already taken from my old laptop.

No comments:

Post a Comment