道招

Ubuntu下VirtualBox虚拟机利用桥接方式上网

如果您发现本文排版有问题,可以先点击下面的链接切换至老版进行查看!!!

Ubuntu下VirtualBox虚拟机利用桥接方式上网

1.打开virtualbox,选择【设置】-【网络】将连接方式改为【Bridged Adapter】 2.在Ubuntu中, 运行 [code lang="php"]sudo gedit /etc/network/interfaces[/code] 修改如下: [code lang="php"]auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 172.17.1.178 netmask 255.255.0.0 #此处改成您的掩码 gateway 172.17.1.111 #此处改成您的网关[/code] 运行 [code lang="php"]sudo gedit /etc/resolv.conf[/code] 修改如下: [code lang="php"]nameserver 172.17.11.31 #域名服务器[/code] 3.运行/etc/init.d/networking restart 重启
更新时间:
上一篇:下一篇:

相关文章

关注道招网公众帐号
友情链接
消息推送
道招网关注互联网,分享IT资讯,前沿科技、编程技术,是否允许文章更新后推送通知消息。
允许
不用了