centos7- modify the network card named eth

A. Edit the profile name of the NIC card information
vim / etc / sysconfig / Network-scripts / ens33 the ifcfg-
  NAME = 0 = eth0 --- net.ifnames
  the DEVICE = eth0 --- biosdevname = 0

II. Rename the NIC configuration file name information
  mv ifcfg-ens33 ifcfg-eth0

III. Modify the name card rule kernel file
  / etc / default / grub

  net.ifnames = 0 biosdevname = 0 "to the variable GRUB_CMDLINE_LINUX

IV. The system to reload the grub configuration file
  grub2-mkconfig -o /boot/grub2/grub.cfg

Guess you like

Origin www.cnblogs.com/bky725/p/12026095.html