vi /etc/sysconfig/grub
增加:net.ifnames=0 biosdevname=0
GRUB_CMDLINE_LINUX=”rd.lvm.lv=vg0/swap vconsole.keymap=us
crashkernel=auto vconsole.font=latarcyrheb-sun16 net.ifnames=0
biosdevname=0 rd.lvm.lv=vg0/usr rhgb quiet”
grub2-mkconfig -o /boot/grub2/grub.cfg
重新对网卡命名。重启即可
时间: 2024-10-03 21:36:52