当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 8 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : VirtualBox 桥接问题(Host:XP;Guest:Ubuntu8.04)
帖子发表于 : 2008-06-20 12:38 

注册: 2008-06-11 12:19
帖子: 8
送出感谢: 0 次
接收感谢: 0 次
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 次

页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2008-06-20 12:48 
头像

注册: 2007-11-02 18:17
帖子: 77
地址: 广东潮州
送出感谢: 0 次
接收感谢: 0 次
我想知道,那位高手说下


_________________
我爱女朋友,也爱linux(^_^)


页首
 用户资料  
 
3 楼 
 文章标题 :
帖子发表于 : 2008-06-20 14:41 

注册: 2008-06-11 12:19
帖子: 8
送出感谢: 0 次
接收感谢: 0 次
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


页首
 用户资料  
 
4 楼 
 文章标题 :
帖子发表于 : 2008-06-20 15:46 

注册: 2008-06-11 12:19
帖子: 8
送出感谢: 0 次
接收感谢: 0 次
糊里糊涂按上面搞了一下,好像成功了。
不过还是没搞明白道理。


附件:
01.jpg
01.jpg [ 90.61 KiB | 被浏览 2680 次 ]

页首
 用户资料  
 
5 楼 
 文章标题 : 有关XP网桥的问题,看看微软的知识库吧
帖子发表于 : 2008-06-20 16:15 

注册: 2008-06-11 12:19
帖子: 8
送出感谢: 0 次
接收感谢: 0 次
http://www.microsoft.com/communities/ne ... &sloc=&p=1

另外:对于本论坛上有很多帖子讨论了无线网卡无法桥接的问题,微软的帖子里也提到了原因,了解一下还是有帮助的。


页首
 用户资料  
 
6 楼 
 文章标题 : 老外的详细设置步骤,翻译了一下,供参考
帖子发表于 : 2008-06-24 12:04 

注册: 2008-06-11 12:19
帖子: 8
送出感谢: 0 次
接收感谢: 0 次
老外的详细设置步骤,翻译了一下,供参考


附件:
The installation of VBox.rar [52.42 KiB]
被下载 538 次
页首
 用户资料  
 
7 楼 
 文章标题 :
帖子发表于 : 2008-06-24 13:19 
头像

注册: 2007-11-02 18:17
帖子: 77
地址: 广东潮州
送出感谢: 0 次
接收感谢: 0 次
:lol:


_________________
我爱女朋友,也爱linux(^_^)


页首
 用户资料  
 
8 楼 
 文章标题 : Re: VirtualBox 桥接问题(Host:XP;Guest:Ubuntu8.04)
帖子发表于 : 2010-11-11 15:25 
头像

注册: 2007-01-18 20:15
帖子: 45
送出感谢: 0 次
接收感谢: 0 次
谢谢,成功应用!


_________________
金戈铁马,气吞万里如虎


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 8 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 4 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译