Posted by: kezhong | June 9, 2011

How to still use ethX on Fedora 15

Fedora 15 had changed the network device naming scheme from ethX to a physical location-based name. It is called Consistent Network Device Naming.

But I feel it is not convenient for me. Because I am using Kickstart to install servers at my company, and we also install APF( and its configuration) through Kickstart automatically. If I used the new naming feature, I would need to modify APF configuration manually.

Fortunately, the developers of Fedora 15 considered this situation, so we can still use the traditional ethX.

After normally installation, I just appended “biosdevname=0” into the kernel command line in the /etc/grub.conf file, and then changed ifcfg-p3p1(on my server) to ifcfg-eth0 in the /etc/sysconfig/network-scripts directory, don’t forget to change the DEVICE=eth0 in the ifcfg-eth0 file. After that, reboot the system.

As for installation using Kickstart, I appended “biosdevname=0” at the end of the line “bootloader” in kickstart file like below
bootloader –location=mbr –driveorder=sda –append=”rhgb quiet biosdevname=0″
At the post section, added the following two lines
rm -f /etc/sysconfig/network-scripts/ifcfg-p*
rm -f /etc/udev/rules.d/70-persistent-net.rules


  1. […] 记得将文件第一行的DEVICE 改成 ‘eth0′,然后就可以重启电脑了,重启后 ifconfig 显示的接口名已经是 ‘eth0′ 了。这个解决方法我是在这里找到的。 […]

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s


%d bloggers like this: