Consistentnetworkdevicenames created by Fedora16 is hard to remember. AllonboardethernetadaptersarelabeledasemX (em1, em2 ...) AndallPCIethernetadaptersarelabeledaspXpX (p [slot] p [port], likep7p1for
The consistent network device names of Fedora 16 is hard to remember.
All onboard ethernet adapters are labeled as emX (em1, em2 ...) And all PCI ethernet adapters are labeled as pXpX (p [slot] p [port], like p7p1 for port 1 on slot 7 ).
My Nic name becomes p3p1
Next we will change her to eth0.
vim /etc/default/grub In GRUB_CMDLINE_LINUX = "rd.lvm.lv=VolGroup/LogVol01 rd.lvm.lv=VolGroup/LogVol00 rd.dm=0 LANG=zh_CN.UTF-8 KEYTABLE=us quiet rhgb rd.md=0 rd.luks=0 " Adding biosdevname = 0 Change GRUB_CMDLINE_LINUX= "rd.lvm.lv=VolGroup/LogVol01 rd.lvm.lv=VolGroup/LogVol00 rd.dm=0 LANG=zh_CN.UTF-8 KEYTABLE=us quiet rhgb rd.md=0 rd.luks=0 biosdevname=0 " $grub2-mkconfig -o /boot/grub2/grub .cfg $ touch /etc/udev/rules .d /70-persistent-net .rules # Write SUBSYSTEM== "net" , ACTION== "add" , DRIVERS== "?*" , ATTR{address}== "44:37:e6:19:46:5e" , ATTR{dev_id}== "0x0" , ATTR{ type }== "1" , KERNEL== "eth*" , NAME= "eth0" $ cd /etc/sysconfig/network-script/ $ cp ifcfg-p3p1 ifcfg-eth0 # Change DEVICE = "p3p1" to DEVICE = "eth0" Reboot is enough. |
For more information about Fedora, see Fedora topics page http://www.linuxidc.com/topicnews.aspx? Tid = 5