睚眦必报的星座:vmware虚拟机怎么桥接本机的网络连接????

来源:百度文库 编辑:高校问答 时间:2024/05/02 01:08:17
怎样才能主机和虚拟机桥接上网?
怎么样实现主机、虚拟机同时上网

网络的设置是VM的强项,你机器要是有网卡的话,并且你希望和你安装VM的机器通讯.那你要注意以下的内容,
网络如果和现有网络相连(我使用的是这个,用来和你的主机通讯)而且它不仅可以和现有主机通讯还可以和你现有网络通讯.*_^很强八.下面我把VM的帮助理的内容翻译下.
? Connected — Check or uncheck this option while the virtual machine is running to connect or disconnect the virtual network adapter.
连接=选择此项当虚拟机启动时自动连接到你的虚拟网卡.
Connect at power on
当启动时连接,当虚拟机启动时自动连接你的网卡,如果你不选择此项目,则网卡会在系统启动后不启动,其实说白点就是系统启动后,你的虚拟网卡没有激活,需要你手动激活.
Under Network connection, you can choose:
在网络连接中你可以选择:
1. Bridged=网桥.这个和物理网桥的功能类似.
2. Bridged — If the host computer is on an Ethernet network, bridged networking is often the easiest way to give your virtual machine access to that network. With bridged networking, the virtual machine appears as an additional computer on the same physical Ethernet network as the host. A virtual machine with bridged networking may transparently use any of the services available on the network to which it is bridged, including file servers, printers, gateways and so on. Likewise, any physical host or other virtual machine configured with bridged networking can use resources of that virtual machine.
3. 如果你的真实主机在一个以太网络内,桥网通常是最容易的办法,给你的虚拟主机访问以太网.当桥网络,虚拟主机成为了附加在物理以太网的一台主机.,一个使用桥网络的虚拟主机可以使用物理网络的任何服务,同样也可以提供任何服务,比如文件服务器,打印机,网关等.(翻译的很烂,但就是这个意思)就是说你的虚拟机器可以变成一台真正的服务器?,建议使用此配置.
4. NAT (Network Address Translation) — If you want to connect to the Internet or other TCP/IP network using the host computers dial-up networking connection and you are not able to give your virtual machine an IP address on the external network, this is often the easiest way to give the virtual machine access to that network. The virtual machine does not have its own IP address on the external network. Instead, a separate private network is set up on the host computer. The virtual machine obtains an address on that network from the VMware virtual DHCP server
5. NAT(网络地址传输)-如果你希望连接到互联网或者其他的TCP/IP网络,使用物理主机的拨号网络并且你不能给你的虚拟主机在现有网络一个IP地址,这是最容易的办法.一个私有网络地址可以设置在你的物理主机上,而虚拟机则可以从VMware的虚拟DHCP服务器上获得一个IP地址.(这个主要用于拨号连接,我不清楚这里所说的虚拟DHCP是什么东西.但是我个人认为可能指的是以前的猫拨号的情况.现在应该不需要的.或者可以使用主机的NAT解决ADSL拨号的问题,)
6. Host-only — When you use this type of network connection, the virtual machine is connected to the host operating system on a virtual private network, which normally is not visible outside the host. Multiple virtual machines configured with host-only networking on the same host are on the same network.
7. 只是主机=当你使用这种网络连接,虚拟主机被连接到物理主机操作系统上,一个虚拟私有网络.在此主机之外,外网是不可见的.只有在这个主机上配置多个虚拟主机才可以访问此网络.(这个话翻译的不通,我觉得是这样,就是你设置成这种模式,只有你本机和你的虚拟机可以访问这个网络,你的物理网络的设备是访问不到你的虚拟机器的),
8. Custom —自定义咯,你自己要怎么设置随你.:)不多说了.

我是这样作的.首先把网卡设置为桥的形式,然后到EDIT菜单的Virtual network setting理把Autobridging 选择上,让系统自动去连接网桥上的虚拟网卡.
然后把DHCP理设置的两个虚拟网卡,删除
把主机虚拟网卡,删除
把HOSTMAPPING 设置为bridge to an automatically chose adapter,
也就是让桥去自动选择网卡.设置完后选择应用.VM的设置就完成了.