Fixed names for network interfaces
Written by Peter Ploskov   
Thursday, 05 July 2007

To configure UDEV to give fixed names for network interfaces add entries in a file in /etc/udev/rules.d/ and make sure that it will be parsed before the other files (for ex. name it 10-ethernet.rules)

# udev rule to assign always the same name (eth0, eth1 ...) to given ethernet adapter (with specified MAC address)

 KERNEL=="eth?", SYSFS{address}=="00:11:d8:5d:a0:55", NAME="eth0"

 KERNEL=="eth?", SYSFS{address}=="00:01:6c:29:05:ea", NAME="eth1"

This means that for a device that starts with "eth" and has specific MAC address the name shoud be the value of NAME