最新系統網卡名稱改成了一串很長的數字,原來都eth開頭。
修改方法: 添加紅色
[root@localhost ~]#vim /etc/sysconfig/grub
GRUB_TIMEOUT=5
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet net.ifnames=0 biosdevname=0"
GRUB_DISABLE_RECOVERY="true"
[root@localhost ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-229.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-229.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-f7173fe9424c429f924f3daec0988833
Found initrd image: /boot/initramfs-0-rescue-f7173fe9424c429f924f3daec0988833.img
done
然後重啓即可,修改完後,若是原來配置了IP地址(有可能會被清空,需要重新設置)