修改網卡配置vim
[root@localhost ~]# vim /etc/sysconfig/network-scripts/ifcfg-ens32server
BOOTPROTO="none" 須要設置爲"static"blog
修改DNS配置ip
[root@localhost ~]# vim /etc/resolv.conf配置
加入network
nameserver 223.5.5.5im
nameserver 223.6.6.6yum
[root@localhost ~]# cat /etc/resolv.conf //驗證是否生效static
再次運行img
[root@localhost ~]# yum --disablerepo="*" --enablerepo="elrepo-kernel" list available
能夠執行了