-
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