Change the network interface Name of Fedora16 to eth0.

Source: Internet
Author: User
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/grubIn 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 = 0ChangeGRUB_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 # WriteSUBSYSTEM=="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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.