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.