版权声明: https://blog.csdn.net/ah_quwei/article/details/79979838
1. 第一步虚拟网编辑器
2. 对虚拟机的配置
3. 编辑网络配置文件
cd /etc/sysconfig/network-scripts
[root@quwei network-scripts]# vim ifcfg-eth0
[root@quwei etc]# pwd
/etc
[root@quwei etc]# vi resolv.conf
[root@quwei etc]# vi hosts
[root@quwei sysconfig]# pwd
/etc/sysconfig
[root@quwei sysconfig]# vi network
4. 设置vmnet8本地网络
5. 测试
要想上外网可以ping www.baidu.com