The consistent network device names created by fedora 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. |