VirtualBox下Ubuntu利用桥接方式上网
2016-04-19 15:03
204 查看
1.打开virtualbox,选择【设置】-【网络】将连接方式改为【Bridged Adapter】
2.在Ubuntu中,
运行sudo gedit /etc/network/interfaces
修改如下:
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 #此处改成您的网关
运行sudo gedit /etc/resolv.conf
修改如下:
nameserver 172.17.11.31 #域名服务器
3.运行/etc/init.d/networking restart 重启
本篇文章来源于 Linux公社网站(www.linuxidc.com) 原文链接:http://www.linuxidc.com/Linux/2011-08/40155.htm
2.在Ubuntu中,
运行sudo gedit /etc/network/interfaces
修改如下:
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 #此处改成您的网关
运行sudo gedit /etc/resolv.conf
修改如下:
nameserver 172.17.11.31 #域名服务器
3.运行/etc/init.d/networking restart 重启
本篇文章来源于 Linux公社网站(www.linuxidc.com) 原文链接:http://www.linuxidc.com/Linux/2011-08/40155.htm
相关文章推荐
- 初学遗传算法解决tsp问题(C++)
- jQuery的选择器
- oom解决方式
- 【01背包/母函数】HDU2079选课时间(题目已修改,注意读题)【用背包求解方案数】
- modsecurity系列二:主文件配置
- 【client】与【offset】
- 采用MogoDB生成ID的策略
- Java对英文句子进行倒序排序
- VC回车键的使用 Edit内回车
- SpringMVC中使用Interceptor拦截器
- mysql 数据导出 常用总结
- JavaScript 学习笔记一基础入门
- 【Leetcode】:122. Best Time to Buy and Sell Stock II 问题 in JAVA
- jvm 常用命令
- 一个简单登陆示例的MVC和MVP实现
- Oracle12c连接问题[ORA-28040]
- JDK动态代理模式
- windows 下codeblocks查看容器值
- Android中编写属性动画PropertyAnimation的进阶实例
- 券池重构