Centos自定义VMnet8网络可以上外网

版权声明: 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


猜你喜欢

转载自blog.csdn.net/ah_quwei/article/details/79979838
今日推荐