虚拟机无法链接外网
1.cd /etc/sysconfig/network-scripts
2.ls 查看文件夹内文件,这里需要对ifcfg-eth1文件进行修改3.vi ifcfg-eth1 进入后 i进入编辑模式
新增
GATEWAY=192,168.56.1
DNS1=114.114.114.114
DNS2=8.8.8.8
3.重启网卡
service network restart
虚拟机无法链接外网
1.cd /etc/sysconfig/network-scripts
2.ls 查看文件夹内文件,这里需要对ifcfg-eth1文件进行修改3.vi ifcfg-eth1 进入后 i进入编辑模式
新增
GATEWAY=192,168.56.1
DNS1=114.114.114.114
DNS2=8.8.8.8
3.重启网卡
service network restart