Chinaunix首页 | 论坛 | 博客
  • 博客访问: 8320768
  • 博文数量: 1413
  • 博客积分: 11128
  • 博客等级: 上将
  • 技术积分: 14685
  • 用 户 组: 普通用户
  • 注册时间: 2006-03-13 10:03
个人简介

follow my heart...

文章分类

全部博文(1413)

文章存档

2013年(1)

2012年(5)

2011年(45)

2010年(176)

2009年(148)

2008年(190)

2007年(293)

2006年(555)

分类: LINUX

2008-09-18 18:43:36

0.测试环境
    >>Debian (testing)
    >>VirtualBox 2.0
1.安装软件:
    >>apt-get install uml-utilities bridge-utils
2.修改/etc/network/interfaces
auto lo eth0 tap0 br0
iface lo inet loopback
iface br0 inet dhcp
bridge_ports eth0 tap0
bridge_maxwait 0
bridge_fd 0
iface eth0 inet manual
iface tap0 inet manual
pre-up tunctl -b -u -t tap0 #your_user是你的用户名
pre-up ifconfig tap0 up
post-down tunctl -d tap0
3.如果网址是静态,修改br0为:
iface br0 inet static
address xxx.xxx.xxx.xxx
network xxx.xxx.xxx.xxx
  .
  .
  .
bridge_ports eth0 tap0
bridge_maxwait 0
4.重启网络
    >>ifdown -a
    >>ifup -a
5.启动VirtalBox
    >>网络设置中选择连接至host interface
    >>主机网络界面填入tap0
    >>其它留空
阅读(1970) | 评论(2) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2008-09-21 21:35:35

主机所处的局域网内的其他电脑能访问vbox虚拟机里面的系统吗?例如vbox虚拟的系统提供httpd服务?

chinaunix网友2008-09-21 10:36:04

我想问设置桥接后,主机、主机所处的局域网内的其他电脑和vbox虚拟的电脑三者是什么关系?