In vmware/virtualbox, set a virtual machine to bridge to a NIC of the dual Nic Server

Source: Internet
Author: User

The lab server is dual-nic, one connected to the Intranet, and one connected to the Internet. Set proxy on the server, and all machines in the LAN share the internet.

However, the server system is Server 2008. I want to use Linux and do not want to change the system. So I installed a virtual machine and Linux on the virtual machine.

To enable SSH connection to Linux in the VM over the Internet, the NIC of the VM is set to bridge to the NIC connecting the server to the Internet, and then the ADSL dial-up Internet access is used in the VM.

The following describes the network configuration steps.

The server has two NICs, boradcom bcm5716c #33 is connected to the Intranet, and boradcom bcm5716c #34 is connected to the Internet.

(1) settings in VMware

First,Configure a VMware network device to bridge two NICs to the server

Edit ==> Virtual Network editor,

Connect the vmnet0 bridge to boradcom bcm5716c #33

Vmnet1 bridge connected to boradcom bcm5716c #34

Then, set the virtual machine's bridging method.

Here, I firstAdd two NICs to the vmwarevm,

VM ==> settings ==> hardware, click Add, select network adapter in the hardware list, and then next, select Custom, vmnet1 (bridged ),

You can bridge the currently added Nic to the second Nic of the server and add the NIC to the vmwarevm.

Continue,

VM ==> settings ==> hardware, click network adapter, and select Custom, vmnet0 (bridged) to bridge the VM to the first Nic of the server.

In this way, the virtual machine has two NICs and starts the virtual machine, so it has eth0 and eth1.

Below is the use of ADSL dial in the virtual machine, connected to the Internet, refer to the http://blog.csdn.net/zklth/article/details/7189955

(2) settings in virtualbox

In the network device, set the network adapter, which is very simple and will not be described in detail.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.