1. Edit the configuration file of the network card:
vim /etc/sysconfig/network-scripts/ifcfg-eno16777736
2. Rename the network card file: mv ifcfg-eno16777736 ifcfg-eth0
3. Disable the network card naming rules on CentOS7. vim /etc/ Default/grub add the following content in the blue box
4. Execute the command grub2-mkconfig -o /boot/grub2/grub.cfg to regenerate the grub configuration and update the kernel parameters. Restart can take effect
5. Create your own network card interface naming Rules.vim /etc/udev/rules.d/70-persistent-ipoib.rules add the following line
Linux CentOS7 change network card interface name configuration
Guess you like
Origin blog.csdn.net/qq_39109226/article/details/109497585
Recommended
Ranking