找回密码
 注册
搜索
热搜: 回贴
微赢网络技术论坛 门户 服务器 Linux/BSD 查看内容

在debian下设置virtualbox桥接

2009-12-20 13:27| 发布者: admin| 查看: 52| 评论: 0|原作者: 仙之剑缘



screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://blog.chinaunix.net/photo/15586_080918182528.png');}" onmousewheel="return imgzoom(this);" alt="" />
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
>>其它留空











最新评论

QQ|小黑屋|最新主题|手机版|微赢网络技术论坛 ( 苏ICP备08020429号 )

GMT+8, 2024-9-30 07:32 , Processed in 0.141831 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

返回顶部