作者:雅茹敬俐6999 | 来源:互联网 | 2023-07-22 19:48
[root@localhost~]#catetcsysconfiggrubGRUB_TIMEOUT5GRUB_DISTRIBUTOR$(seds,release.
[root@localhost ~]# cat /etc/sysconfig/grub
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="rd.lvm.lv=centos/swap rhgb quiet"
GRUB_CMDLINE_LINUX="rd.lvm.lv=centos/swap rhgb net.ifnames=0 biosdevname=0 quiet"
GRUB_DISABLE_RECOVERY="true"
重新配置
grub2-mkconfig -o /boot/grub2/grub.cfg
ip addr flush dev ens33
看错误信息
tail -n 200 /var/log/messages
vmware 虚拟机 配置 网关为 192.168.22.2 结尾不能为1,会导致无法ping通网络