I wanted to share how to force a system running fc14 to fc16 and hopefully later can be made
to use eth0 eth1 eth2 etc.. rather than the pci hardware probe names.
1.) Edit lib/udev/rules.d/71-biosdevname.rules
Change
--- This is around line 26 comment out the the first program statement and
--- Define the program statement as shown.
# using NAME= instead of setting INTERFACE_NAME, so that persistent
# names aren't generated for these devices, they are "named" on each boot.
#PROGRAM="/sbin/biosdevname --policy physical -i %k", NAME="%c", OPTIONS+="string_escape=replace"
PROGRAM="/sbin/biosdevname --policy=all_ethN -i %k", ENV{INTERFACE_NAME}="%c"
LABEL="netdevicename_end"
2.) Reboot by making the change to the 71-biosdevname.rules a file will be written
/etc/udev/rules.d/70-persistent-net.rules.
if you have more than one Ethernet port you will want look at the this file and see if the
mac address of then Ethernet port matches what you want the eth* naming you want.
In my case I have 3 ports on my system. I wanted to built in port to be eth0 and the Intel card to
be eth1 and eth2. The ATTR{address}== is the MAC address or hardware address
for the port. Note these are single line entries follow the instruction in the file.
# PCI device 0x10ec:0x8168 (r8169) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="80:ee:73:12:6c:38", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x10c9 (igb) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="90:e2:ba:02:25:71", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# PCI device 0x8086:0x10c9 (igb) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="90:e2:ba:02:25:70", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
After you have rebooted after the changes in 1 and 2 you will want to go to the ifcfg-<namesYou-didnotwant>
in
[root@netserver02 ~]# ls -l /etc/sysconfig/network-scripts/ifcfg-*
-rw-r--r--. 1 root root 427 Mar 4 18:02 /etc/sysconfig/network-scripts/ifcfg-eth0
-rw-r--r--. 1 root root 368 Mar 4 18:02 /etc/sysconfig/network-scripts/ifcfg-eth1
-rw-r--r--. 1 root root 405 Mar 4 18:03 /etc/sysconfig/network-scripts/ifcfg-eth2
Edit each one of the ifcfg-eth* files and change
the NAME and DEVICE field to correct eth0 eth1 and eth2
NAME="eth0"
DEVICE=eth0
3.) Reboot now the network manager will match the the changes you have made.
The best reference that help me was it seems to be a little out of date but was helpful.
linux.dell.com/files/whitepapers/nic-enum-whitepaper-v4.pdf
Also there are references to script that will make the changes for you. Although they did
not work for me.
[/SIZE]