Change the NIC name under fedora16

Source: Internet
Author: User
Change the NIC name under fedora16
Today, due to the network startup error, I searched online and found that most people's network adapter names are eth0, but my network adapter name is p3p1. So I want to change it to eth0. then I google it, it is found that all device names are dynamically managed by udev. The device names are persistently named based on the device information. udev identifies the network adapter during system guidance, record 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. Add the biosdevname = 0 startup parameter 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 automatically generates a grub2 configuration file. 3. $ touch/etc/udev/rules. d/70-persistent-net.rules. If you haven't done it, you can also # 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.

Change the NIC name under fedora16

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.