免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2430 | 回复: 3
打印 上一主题 下一主题

Debian下配置VirtualBox桥接的问题,一直搞不定 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-20 14:54 |只看该作者 |倒序浏览
是静态网址,始终弄不好

我的interfaces:
auto lo eth0 tap0 br0

iface lo inet loopback

iface br0 inet static
address 128.128.0.16
netmask 255.255.0.0
gateway 128.128.255.153
bridge_ports eth0 tap0
bridge_maxwait 0
bridge_fd 0

# The primary network interface
iface eth0 inet static
address 128.128.0.16
netmask 255.255.0.0
gateway 128.128.255.153

iface tap0 inet static
address 128.128.0.17
netmask 255.255.0.0
gateway 128.128.255.53

pre-up tunctl -b -u chch -t tap0
pre-up ifconfig tap0 up
post-down tunctl -d tap0

[ 本帖最后由 林知枫 于 2009-5-20 15:58 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2009-05-20 16:53 |只看该作者

现在的interfaces是这样的,但virtualbox里配置网络没有tap0选项

auto lo eth0

iface lo inet loopback
# The primary network interface
iface eth0 inet static
address 128.128.0.16
netmask 255.255.0.0
gateway 128.128.255.153

auto tap0
iface tap0 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
tunctl_user ch

auto br0
iface br0 inet static
address 128.128.0.17
netmask 255.255.0.0
network 128.128.0.0
broadcast 128.128.255.155
gateway 128.128.255.253

论坛徽章:
0
3 [报告]
发表于 2009-05-20 17:04 |只看该作者
用不着命令吧?
在设置--网络连接---里面设置briged adapter模式就行了,

主机和虚拟机在一个网段,OK。

论坛徽章:
0
4 [报告]
发表于 2009-05-20 20:31 |只看该作者
2.2不是有Host-only模式了吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP