我的host是ubuntu8.0.4,通过vbox2.0建立2个winxp的VM。
开始时,两个vm都用nat连接上网,没有问题。
在其中一台VM里查看ip为10.0.2.15,网关10.0.2.2,dns为10.0.2.3
今天上午按照vbox2.0的UserManual设置了其中一台VM通过桥接方式Host Interface Networking,设置成功可以上网。
另外一台仍设置nat方式,但是无法上网,ping网关10.0.2.2通,ping 10.0.2.3DNS服务器不通。直接ping网上的地址也不通。
请教应该如何解决
vbox桥接问题(已经解决)
- souling
- 帖子: 142
- 注册时间: 2007-07-22 10:40
vbox桥接问题(已经解决)
上次由 souling 在 2008-09-17 14:49,总共编辑 1 次。
- souling
- 帖子: 142
- 注册时间: 2007-07-22 10:40
附上我的interfaces文件
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
up ifconfig eth0 0.0.0.0 promisc up
auto eth0
auto tap0
iface tap0 inet manual
up ifconfig $IFACE 0.0.0.0 promisc up
down ifconfig $IFACE down
tunctl_user <用户名>
auto br0
iface br0 inet static
address XX.XX.XX.XX #根据自己情况填写IP地址
network XX.XX.XX.0
netmask 255.255.255.0 #根据自己情况填写掩码
broadcast XX.XX.XX.255
gateway XX.XX.XX.XXX #根据自己情况填写网关
bridge_ports eth0 tap0 all
bridge_maxwait 0
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
up ifconfig eth0 0.0.0.0 promisc up
auto eth0
auto tap0
iface tap0 inet manual
up ifconfig $IFACE 0.0.0.0 promisc up
down ifconfig $IFACE down
tunctl_user <用户名>
auto br0
iface br0 inet static
address XX.XX.XX.XX #根据自己情况填写IP地址
network XX.XX.XX.0
netmask 255.255.255.0 #根据自己情况填写掩码
broadcast XX.XX.XX.255
gateway XX.XX.XX.XXX #根据自己情况填写网关
bridge_ports eth0 tap0 all
bridge_maxwait 0
- souling
- 帖子: 142
- 注册时间: 2007-07-22 10:40
-
- 帖子: 84
- 注册时间: 2005-12-25 1:42
-
- 帖子: 278
- 注册时间: 2008-04-28 22:02
Re: vbox桥接问题(已经解决)
VB的桥接一直是个问题 真是不明白 他们为什么这个东西上会做不过VM呢