标签:ons grub2 rip ethernet sysconfig local reboot 5.0 otp
[root@localhost ~]# cd /etc/sysconfig/network-scripts/
[root@localhost network-scripts]# mv ifcfg-eno16777736 ifcfg-eth0
[root@localhost network-scripts]# cat ifcfg-eth0 DEVICE=eth0 TYPE=Ethernet BOOTPROTO=static PEERROUTES=yes NAME=eth0 ONBOOT=yes IPADDR=10.0.0.111 NETMASK=255.255.255.0 GATEWAY=10.0.0.2 DNS1=1.1.1.1 DNS2=8.8.8.8
在grub “GRUB_CMDLINE_LINUX= “ 中加入 “net.ifnames=0 biosdevname=0“”
[root@localhost network-scripts]# 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 vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos/root crashkernel=auto vconsole.keymap=us rhgb net.ifnames=0 biosdevname=0 quiet" GRUB_DISABLE_RECOVERY="true"
[root@localhost network-scripts]# grub2-mkconfig -o /boot/grub2/grub.cfg
[root@localhost ~]# reboot
[root@localhost ~]# yum -y install net-tools
标签:ons grub2 rip ethernet sysconfig local reboot 5.0 otp
原文地址:https://www.cnblogs.com/Template/p/9186953.html