1. open/etc/sysconfig/grub, # vim/etc/sysconfig/grub. the content is as follows: GRUB_TIMEOUT = 5GRUB_DISTRIBUTOR = & quot; $ (sed & #39; s, release. * $, g & #39;/e
1. open/etc/sysconfig/grub,
# Vim/etc/sysconfig/grub
The content is as follows:
GRUB_TIMEOUT = 5
GRUB_DISTRIBUTOR = "$ (sed's, release. * $, g'/etc/system-release )"
GRUB_DEFAULT = saved
GRUB_DISABLE_SUBMENU = true
GRUB_TERMINAL_OUTPUT = "console"
GRUB_CMDLINE_LINUX = "vconsole. keymap = us crashkernel = auto vconsole. font = latarcyrheb-sun16 rhgb quiet"
GRUB_DISABLE_RECOVERY = "true"
2. modify the GRUB_CMDLINE_LINUX value in the preceding content and add net. ifnames = 0 biosdevname = 0.
# Vim/etc/sysconfig/grub
The modified content is as follows:
GRUB_TIMEOUT = 5
GRUB_DISTRIBUTOR = "$ (sed's, release. * $, g'/etc/system-release )"
GRUB_DEFAULT = saved
GRUB_DISABLE_SUBMENU = true
GRUB_TERMINAL_OUTPUT = "console"
Grub_javasline_linux = "vconsole. keymap = us crashkernel = auto vconsole. font = latarcyrheb-sun16net.ifnames = 0 biosdevname = 0 rhgb quiet"
GRUB_DISABLE_RECOVERY = "true"
3. run: grub2-mkconfig-o/boot/grub2/grub. cfg
Then, restart the system, and the NIC name becomes eht0.