1.点击编辑->虚拟网络编辑器,将网卡桥接到当前电脑使用的网卡;


2.点击虚拟机->设置->虚拟机设置,选择桥接模式;

3.执行命令vi /etc/config/network进入network文件下面修改相应配置,红框内容必须设置;

4.设置完之后保存,重启;

5.ping www.baidu.com,可以上网;

1.点击编辑->虚拟网络编辑器,将网卡桥接到当前电脑使用的网卡;
2.点击虚拟机->设置->虚拟机设置,选择桥接模式;
3.执行命令vi /etc/config/network进入network文件下面修改相应配置,红框内容必须设置;
4.设置完之后保存,重启;
5.ping www.baidu.com,可以上网;