How to fix the network port name in CentOS 7?

In CentOS 7, you can fix the network interface name by following these steps:

  1. Open the configuration file:
  2. Please open the file /etc/default/grub using the sudo vi command.
  3. Find the following line in the document:
  4. GRUB command line for Linux reads as “rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet”.
  5. Please add the following content at the end of this line:
  6. Disable the use of predictable network interface names and BIOS assigned device names.
  7. Please save and close the file.
  8. Update GRUB configuration:
  9. Create a new configuration for the Grub bootloader and save it to the specified location.
  10. Reboot the system.
  11. Please restart the system.
  12. After completion, the system will use traditional network interface naming schemes such as eth0, eth1, etc.
Leave a Reply 0

Your email address will not be published. Required fields are marked *


广告
Closing in 10 seconds
bannerAds