How to fix the network port name in CentOS 7?
In CentOS 7, you can fix the network interface name by following these steps:
- Open the configuration file:
- Please open the file /etc/default/grub using the sudo vi command.
- Find the following line in the document:
- GRUB command line for Linux reads as “rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet”.
- Please add the following content at the end of this line:
- Disable the use of predictable network interface names and BIOS assigned device names.
- Please save and close the file.
- Update GRUB configuration:
- Create a new configuration for the Grub bootloader and save it to the specified location.
- Reboot the system.
- Please restart the system.
- After completion, the system will use traditional network interface naming schemes such as eth0, eth1, etc.