Virtualbox 主客机网络设置

发布于 2024-07-05 06:35:14 字数 1476 浏览 11 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

二手情话 2024-07-12 06:35:14

为来宾提供两个网络适配器,一个 NAT,另一个仅主机。 NAT 允许访客访问互联网,而 Host-only 则允许主机访问访客。

其中之一还可以让客人看到主人。 我不确定是哪一个,但我知道它是有效的,因为我已经用它测试了网络服务器的东西。 您只需选择正确的 IP 地址,10.xxx 或 192.168.xx

此外,您可能必须小心同时在两个适配器上运行文件和打印机共享,因为来宾将看到自己的名称并与其自身发生冲突。 我在安装过程中遇到了这个。

Give the guest two network adapters, one NAT and the other Host-only. The NAT one will allow the guest to see the Internet, and the Host-only one will allow the host to see the guest.

One of them also allows the guest to see the host. I'm not sure which, but I know it works since I've tested web server stuff with it. You just have to choose the right IP address, 10.x.x.x or 192.168.x.x.

Also, you may have to be careful about having File and Printer Sharing running on both adapters at once, since the guest will see its own name and conflict with itself. I ran into this during install.

巴黎盛开的樱花 2024-07-12 06:35:14

我有一个比第一个更好的答案。

为来宾提供一个仅主机网络适配器,并在主机上启用 Internet 连接共享 (ICS)。 我已经在带有 Windows XP 来宾的 Windows XP 主机上尝试过此操作。

访客可以连接到互联网。

来宾可以通过 192.168.0.1(由 ICS 选择)等地址连接到主机。 -- 请记住允许访客通过主机的防火墙。

主机可以通过诸如 192.168.0.22 之类的地址连接到访客(由 ICS 提供的 DHCP 服务分配)。

I've got a better answer than my first one.

Give the guest a single Host-only network adapter, and enable Internet Connection Sharing (ICS) on the host. I've tried this on a Windows XP host with a Windows XP guest.

The guest can connect to the Internet.

The guest can connect to the host at an address like 192.168.0.1 (chosen by ICS). -- Remember to allow the guest through the host's firewall.

The host can connect to the guest at an address like 192.168.0.22 (assigned by the DHCP service provided by ICS).

分开我的手 2024-07-12 06:35:14

您可以在 Linux 主机上执行此操作。 我已经记录了我在 Ubuntu 9.04

You can do this on a Linux host. I've documented the steps I took in Ubuntu 9.04 here.

最美不过初阳 2024-07-12 06:35:14

我不运行 vista,但 virtualbox 应该为您完成大部分设置 - 您所需要做的就是为您的来宾操作系统分配一个 IP 地址、子网掩码和(可选)默认网关,并且它应该可以正常工作。

不要理会虚拟机选项中的任何高级网络设置 - 它们在某些情况下很有用,但我从来没有必要使用它们,而且我已经使用 virtualbox 好几年了。

如果您发布您遇到的具体问题,也许我可以提供更多帮助。 但你的问题比较模糊...

I don't run vista, but virtualbox should do most of the setup for you - all you need to do is assign an IP address, subnet mask, and (optionally) a default gateway to your guest OS, and it should just work.

Don't bother with any of the advanced network settings in the options for the VM - they're useful in some situations, but I've never had to use them, and I've been using virtualbox for some years now.

If you post the specific problem you're having perhaps I can help more. But your question is rather vague...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文