在windows xp下用virtualbox安装ubuntu8.04后,默认的是NAT连接方式,不需要做任何更改就可以上网,但是这种方式很不灵活,你无法像访问局 域网中的其他主机一样访问linux,为此,可以建立桥接,让你的windows xp和linux在网络中具有同等的地位。

具体方式步骤如下:(下面是在ubuntu论坛上的文章设置方法)

The installation of VBox, creation of the guest and installation of Debian Etch was done in the normal fashion. Once that was completed I followed the following steps to setup networking.

以正常方式完成VBox的安装,Guest系统的创建以及Debian的安装之后,按照以下步骤来设置网络

I. Create Network Connection in VBox
1. Network;à SettingsàOpen VBox¬¬
2. Click on “Attached to” and then select “Host Interfaces”;
3. In Host Interfaces click Add;
4. Type "VirtualBox Host Interface #" without the quotation marks where the # represents a number for the interface, usually 1 (on one computer the name of the virtual box host interface appeared automatically, on the other computer I had to type the information);
5. Click OK, and
6. Close VBox
在虚拟机中创建网络连接

1. 虚拟主机设置 -〉网络 –〉网络连接方式

2. 选择“Host Interface”

3. 在Host Interface 点击“添加”

4. 输入“VirtuakBox Host Interface #”(注:不输入引号,#号代表接口的数字,通常为1)

5. 点击OK

6. 关闭虚拟主机设置

II. Create a Network Bridge
Network Connections;à1. Open Control Panel
2. While holding down Ctrl select the Local Area connection and click on the VirtualBox Host Interface;
3. Right click on one of the selected connections; and
4. From the drop-down menu select Create Network Bridge
II.创建一个网桥

1. 打开控制面板-〉网络连接

2. 按下“Ctrl”键的同时选择“本地连接”和“VirtualBox Host Interface”

3. 在其中一个选择的连接上,点右键

4. 从下拉菜单里选择,创建网桥

Since I am using static IP’s on my network set up I had to configure the TCP/IP properties for the Network Bridge.
注:由于我的网络使用的是静态IP设置,因此必须配置网桥的TCP/IP属性
5. Right click on the Network Bridge that was just created;
6. Select TCP/IP;
7. Click on Properties;
8. Set the Static Connection Values; and
9. Close Network Connection.

5. 在刚刚创建的网桥上右击,选择属性

6. 选择TCP/IP

7. 点击属性

8. 设置静态IP地址的值

9. 关闭网络连接

III. Set Network Adapters to promiscuous mode
III.设置网卡为混杂模式
When VBox and the guest VM load Windows XP should put the network adapters into promiscuous mode, but sometimes this does not happen. Therefore, I think it is best to force the adapters into promiscuous mode. It is only necessary to do this once.
当VBOX和VM主机载入后,XP应该自动使网卡处于混杂模式,但有时候并未实现。因此,最好手工强制网卡处于混杂模式。只需按以下步骤操作。

1. Open a Run and type "CMD" without the quotes and pressàWindows command prompt (Start ENTER;

2. Type "netsh bridge show adapter";

3. There will be a line of information displayed for each network adapter in the Bridge. Look for any adapter that is listed as disabled, note the number of the adapter and go to step four.

4. Type "netsh bridge set adapter # forcecompatmode=enable" for each adapter that was listed as disabled, inserting the number of the adapter for the #;

5. Type "netsh bridge show adapter" once again to check to see if your adapters have been enabled;

6. Exit the command prompt; and

7. Reboot the computer.

1. 开始 –〉运行 –〉输入”CMD”

2. 输入“netsh bridge show adapter”

3. 网桥中的每张网卡会有一行信息显示。注意显示为“未应用”的每张网卡,记下网卡的数值然后看第4步

4. 输入“netsh bridge set adapter # forcecompatmode=enable”为每张显示为未应用的网卡,输入相应的网卡号,并运行一遍命令

III. Configure the TCP/IP Properties for the Debian guest

为VM客户机操作系统配置TCP/IP属性
Again, this is necessary because I am using static IP's in my LAN.
同样,这是必须的,应为我的LAN使用静态IP

1. Open VBox;

2. Start Debian;

3. Since I have installed GNOME Networking;àAdministrationàdesktop I will open Networking by clicking Desktop

4. Select Ethernet Connection eth0;

5. Click on Properties;

6. Set the static configuration for the Debian VM;

7. Close Networking; and

8. Reboot Debian.

1. 打开虚拟机

2. 启动Debian

3. 由于我安装可Gnome,我将通过桌面打开网络

4. 选择网络连接eth0

5. 点击属性

6. 设置静态IP地址

7. 关闭网络

8. 重起Debian

After Debian has rebooted LAN connections with the host and any other computers

on the network should have been established.

Debian重起之后,虚拟主机与LAN里其他计算机的网络连接就建立了。

VirtualBox中linux和windows建立桥接相关推荐

  1. 解决虚拟机 Virtualbox 中 linux 共享文件夹只读问题

    解决虚拟机 Virtualbox 中 linux 共享文件夹只读问题 参考文章: (1)解决虚拟机 Virtualbox 中 linux 共享文件夹只读问题 (2)https://www.cnblog ...

  2. suse linux增加新磁盘分区,Virtualbox中Linux添加新磁盘并创建分区

    引言:我们常常在使用系统的时候突然发现,哎呦~~~我们的磁盘空间不够用啦!我遇到常见的就是数据库数据暴增,预留的空间没有啦,只好新添加磁盘,在VB虚拟机上就可以实现,往往苦于没有图文并茂的好资料,下面 ...

  3. Docker虚拟化容器技术(用在虚拟机上),VirtualBox中linux虚拟机联网的问题

    Docker虚拟化容器技术(用在虚拟机上),VirtualBox中linux虚拟机联网的问题 文章目录 前言:安装Docker,则先安装Linux虚拟机(我的CSDN中有发) 一.要解决在Virtua ...

  4. vbox 设置linux共享文件夹,Windows 7下设置VirtualBox中Linux共享文件夹

    我自己的环境是: 在Windows 7上安装了VirtualBox,然后在VirtualBox中虚拟了一个Ubuntu. 为了实现在ubuntu中访问winows中的一些目录,而且还起到一种交换文件的 ...

  5. virtualbox中linux设置NAT和Host-Only上网(实现双机互通同时可上外网)

    关于虚拟机中几种网络连接方式请参考其他教程. 平常,我们安装好虚机,用桥接方式也就够了.毕竟它能上内网和外网. 但是有个问题,如果你的网络环境发生变化,虚机的Ip也会随之改变(桥接的Ip和主机ip必须 ...

  6. 如何在VirtualBox中启用3D加速和使用Windows Aero

    VirtualBox's experimental 3D acceleration allows you to use Windows 7's Aero interface in a virtual ...

  7. [转] 如何在VirtualBox中启用3D加速和使用Windows Aero

    VirtualBox's experimental 3D acceleration allows you to use Windows 7's Aero interface in a virtual ...

  8. vbox共享文件夹 linux,Vbox下创建Linux和Windows的共享文件夹

    我的Vbox版本是4.3.6...在这里以win8和Ubuntu12.04之间共享文件举例 首先运行虚拟机,然后安装增强功能..这个增强功能很碉堡...能开启无缝模式和系统间的剪贴板共享等牛X功能 然 ...

  9. batchplot3.5.9如何使用_VirtualBox中安装的Windows XP如何使用USB3.0

    Windows XP是最经典的操作系统,没有之一,即使现在还是有人在用.虽然新电脑已经没办法直接安装它,但是还可以在虚拟机中,比如VirtualBox中使用它.但是有个问题,就是默认情况下Virtua ...

最新文章

  1. 分布式架构中异步的使用场景
  2. strtus2改成springboot_jdk1.6环境下struts2改spring boot方案-阿里云开发者社区
  3. python None与Null
  4. linux7网卡配置vlan,centos7配置vlan,实现一个网卡两个地址的功能
  5. Lambda架构概述
  6. C++ Boost 学习资源列表
  7. 统计与机器学习的异同
  8. 后端技术:Java编程中忽略这些细节,Bug肯定少不了
  9. Alpha冲刺第二天
  10. 【程序设计】变量和常量
  11. WinForm学习笔记(一)- 无边框窗体移动
  12. 【定位问题】基于matlab三维chan算法求解室内定位问题【含Matlab源码 580期】
  13. MATLAB画图函数plot简单用法
  14. JDK1.8后List转Map
  15. K线技术指标实现详解—MACD
  16. iscsi无法连接到计算机,PC端的iSCSI参数设置方法_主板新闻-中关村在线
  17. 常用的邮箱有哪些,可用好用的邮箱大全推荐
  18. js如何修改对象的padding属性
  19. HTML+CSS 制作联系人页面(可自适应)
  20. Docker 教学版本-v1.0.0

热门文章

  1. 为何python不好找工作k-为何python不好找工作,seo行业不好转行了
  2. monty python喜剧-【网络小说网中心】最经典的100部美剧,看到第一名瞬间服气!
  3. 以下哪个不是python中的关键字-以下不是python中的关键字
  4. LeetCode 17. Letter Combinations of a Phone Number
  5. 牛客网 PAT乙级(Basic Level)练习题 1023 考新郎
  6. RT-thread内核之空闲线程
  7. /dev/null 位桶
  8. Hibernate:SQL查询 addScalar()或addEntity()
  9. codevs 2879 堆的判断
  10. 并发下常见的加锁及锁的PHP具体实现-转载