Home > other >  Centos7 have changed the card id not careful to do, don't want to reinstall system. Ask good in
Centos7 have changed the card id not careful to do, don't want to reinstall system. Ask good in

Time:09-17

Centos7 have changed the card id not careful to do, don't want to reinstall system, give the man to solve it,

CodePudding user response:

In the local land, change back to the card ID is not to go,

CodePudding user response:

reference 1st floor aabbabababaa response:
on local and change back to the card ID is not to go,

I am not using the virtual machine,

CodePudding user response:

Network interface use serial number naming: eth0, eth1, etc., when adding or removing the network card, name may change, CentOS 7 use based on the hardware, equipment type topology and naming, make name card only, do not change, but the properties and increase the difficulty of management, so we will change the name card back to the eth have convenient our management,
The process of naming a nic device:
Step 1:
Udev, auxiliary tools/lib/udev/rename_device/usr/lib/udev/rules. 60 - net. D/rules
Step 2:
Biosdevname according to/usr/lib/udev/rules. D/71 - biosdevname. Rules
Step 3:
By detecting the network interface device, according to the/usr/lib/udev/rules. D/75 - net - description
ID_NET_NAME_ONBOARD
ID_NET_NAME_SLOT
ID_NET_NAME_PATH

Renamed method and simple:
Modify/etc/default/grub
1, "GRUB_CMDLINE_LINUX=" this line, behind the -quiet add net. Ifnames=0
2, a grub2 to regenerate the configuration files
Grub2 mkconfig - o/boot/grub2/grub. CFG
3, reboot
  • Related