Change the nic name under fedora16

Source: Internet
Author: User
Changing the nic name under fedora16 today, due to an error in network startup, I searched online and found that most people's nic names are eth0, but my name is p3p1, so I want to change it to eth0. then I google it and found that the device name is dynamically managed by udev. according to the device... changing the nic name under fedora16 today, due to an error in network startup, I searched online and found that most people's nic names are eth0, but my name is p3p1, so I want to change it to eth0. then I google it and found that the device name is dynamically managed by udev and it is named persistently based on the device information, udev identifies the Nic during system boot, and records the mac address and Nic name in the udev rule script. The udev rule script is in the/etc/udev/rules. d Directory, and the rule file for the persistent naming of the network is 70-persistent-net.rules. However, I found that this rule file does not exist in my system, so I found it online and found that this rule file can be written by myself, only in line with the udev rule file specifications. Next we will modify the network adapter p3p1 to eth0: 1.vim/etc/default/grub in GRUB_CMDLINE_LINUX = "rd. md = 0 rd. lvm = 0 rd. dm = 0 KEYTABLE = us quiet rhgb rd. add biosdevname = 0 to luks = 0 LANG = en_US.UTF-8 to become GRUB_CMDLINE_LINUX = "rd. md = 0 rd. lvm = 0 rd. dm = 0 KEYTABLE = us quiet rhgb rd. luks = 0 LANG = en_US.UTF-8 biosdevname = 0 "2. $ grub2-mkconfig-o/boot/grub2/grub. cfg 3. $ 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" 4. $ cd/etc/sysconfig/network-script/5. $ cp ifcfg-p3p1 ifcfg-eth0 # switch the DEVICE = "p3p1" into DEVICE = "eth0", and then restart the computer.
 
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.