1. In /etc/default/grub, add net.ifnames=0 biosdevname=0 after GRUB_CMDLINE_LINUX.
vim /etc/default/grub
GRUB_CMDLINE_LINUX="crashkernel=auto rhgb quiet net.ifnames=0 biosdevname=0"
2. Modify the configuration file in the network card: device, name, file name
3. Enter grub2-mkconfig -o /boot/grub2/grub.cfg on the command line to update the kernel parameters.
[root@ct network-scripts]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-957.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-957.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-52c810f112594af0a27a315ac9ac04e7
Found initrd image: /boot/initramfs-0-rescue-52c810f112594af0a27a315ac9ac04e7.img
done
4. Init 6, restart the system, so that the problem is solved
Before restarting, shut down the computing node first, and then restart the control node
[root@ct network-scripts]# init 6
[root@ct ~]# systemctl restart network