VirtualBox 桥接问题(Host:XP;Guest:Ubuntu8.04)

Kvm、VMware、Virtualbox、Xen、Qemu 等
回复
slmagicbox
帖子: 8
注册时间: 2008-06-11 12:19

VirtualBox 桥接问题(Host:XP;Guest:Ubuntu8.04)

#1

帖子 slmagicbox » 2008-06-20 12:38

VirtualBox: 1.6.2
Host : XP
Guest : Ubuntu 8.04

大家都用NAT吗?该如何设置桥接让guest上网?

看手册是需要在网络连接里把物理网卡和虚拟网卡设成桥接模式,但设置后HOST和GUEST都不能上网了。

请问具体该如何设置?
Host上物理网卡,虚网卡,桥接的IP都该如何设置?
Guest上的网卡IP又该如何设?

--------------------------------------------------------------------
问题已解决,后面有详细设置步骤的翻译稿,供大家参考!!!
------------------------------------------------------------------------
上次由 slmagicbox 在 2008-06-24 12:08,总共编辑 3 次。
头像
haolll230
帖子: 77
注册时间: 2007-11-02 18:17
来自: 广东潮州
联系:

#2

帖子 haolll230 » 2008-06-20 12:48

我想知道,那位高手说下
我爱女朋友,也爱linux(^_^)
slmagicbox
帖子: 8
注册时间: 2008-06-11 12:19

#3

帖子 slmagicbox » 2008-06-20 14:41

About the howto:

1) This is sorely needed, so good one.

2) A few suggestions and additions from my own tormented experiences using XP as a host:

a) If you use vbox 1.3.8, you do not need the OpenVPN tap driver. If you open VirtualBox and click on settings->network, then type an interface name, eg: tap1, and then click 'Add a host interface' button, a compatible network adapter will be created for you. This seems easier than using the OpenVPN adapter.
(I did have to reboot after creating a tap adapter for the first time since it gave me two adapters, the tap I wanted as well as a new and broken, unneeded lan connection. After a reboot only the tap remained).

b) You forgot to show how to bridge the connection in XP, i.e, select your LAN connection, hold ctrl and then select the tap1 connection, then right click on tap1 connection and select 'bridge connection'.

c) For the XP bridge, one needs to check that your adapters have been forced into promiscuous mode, and you can do this by doing the following:

- Open a command prompt (Start, Run, cmd)
- type 'netsh bridge show adapter'. This will spew out a # of lines, one for the bridge and one for each tap you create and add to the bridge. Note the # of the adapter/s that are disabled.
- type 'netsh bridge set adapter # forcecompatmode=enable', where # is the disabled entry noted above, and do this for each disabled adapter.
- this change updates the registry and needs only be done once.
- type 'netsh bridge show adapter' again to be sure they're all enabled. If the bridge won't enable you may be OOL since not all NICs allow promiscuous mode.
- The above process may be needed for w2k as well. I dunno.


d) If you use a router as a DHCP server then an additional complexity may arise due to your NIC (Network Interface Card) exposing only a single MAC address to the router, despite it serving two or more connections.
On my router, a WRT54GL using DD-WRT software, I couldn't get the router to consistently assign a unique IP to the guest, so I sometimes got an IP conflict as soon as the guest started.
The way permanently around this conflict problem was to assign a static IP (outside the router dhcp serving range) to the bridge. Note, I did this via the TCP-IP properties tag for the bridge on the XP host. Not via the router's static ip serving service.
Oddly enough, additional guest do not have this problem, ie. they get their unique ip and even serve up their hostname.

Anyhow, I hope the above helps to fill out the XP host part of the howto
slmagicbox
帖子: 8
注册时间: 2008-06-11 12:19

#4

帖子 slmagicbox » 2008-06-20 15:46

糊里糊涂按上面搞了一下,好像成功了。
不过还是没搞明白道理。
附件
01.jpg
slmagicbox
帖子: 8
注册时间: 2008-06-11 12:19

有关XP网桥的问题,看看微软的知识库吧

#5

帖子 slmagicbox » 2008-06-20 16:15

http://www.microsoft.com/communities/ne ... &sloc=&p=1

另外:对于本论坛上有很多帖子讨论了无线网卡无法桥接的问题,微软的帖子里也提到了原因,了解一下还是有帮助的。
slmagicbox
帖子: 8
注册时间: 2008-06-11 12:19

老外的详细设置步骤,翻译了一下,供参考

#6

帖子 slmagicbox » 2008-06-24 12:04

老外的详细设置步骤,翻译了一下,供参考
附件
The installation of VBox.rar
(52.42 KiB) 已下载 561 次
头像
haolll230
帖子: 77
注册时间: 2007-11-02 18:17
来自: 广东潮州
联系:

#7

帖子 haolll230 » 2008-06-24 13:19

:lol:
我爱女朋友,也爱linux(^_^)
头像
zp0816
帖子: 45
注册时间: 2007-01-18 20:15

Re: VirtualBox 桥接问题(Host:XP;Guest:Ubuntu8.04)

#8

帖子 zp0816 » 2010-11-11 15:25

谢谢,成功应用!
金戈铁马,气吞万里如虎
回复