1、 cd /etc/sysconfig/network-scripts/
2、vi ifcfg-en****
3、
4、systemctl restart network
5、ping www.baidu.com
在虚拟机设置静态IP的坑:
1、DNS要设置
2、不要去改虚拟机的Ip地址段
3、转 https://www.cnblogs.com/justuntil/p/7879748.html
1、 cd /etc/sysconfig/network-scripts/
2、vi ifcfg-en****
3、
4、systemctl restart network
5、ping www.baidu.com
在虚拟机设置静态IP的坑:
1、DNS要设置
2、不要去改虚拟机的Ip地址段
3、转 https://www.cnblogs.com/justuntil/p/7879748.html
转载于:https://www.cnblogs.com/seamanone/p/9201814.html