修改网卡配置
[root@localhost ~]# vim /etc/sysconfig/network-scripts/ifcfg-ens32
BOOTPROTO="none" 需要设置为"static"
修改DNS配置
[root@localhost ~]# vim /etc/resolv.conf
加入
nameserver 223.5.5.5
nameserver 223.6.6.6
[root@localhost ~]# cat /etc/resolv.conf //验证是否生效
再次运行
[root@localhost ~]# yum --disablerepo="*" --enablerepo="elrepo-kernel" list available
可以执行了