Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 
I'm bored to struggle with the compile issues of VMware Server on Linux. That's why I decided to use VMplayer. Unfortunately you cannot use multiple physical network cards in a VM - at least if you use the VMwareplayer GUI only. But you can if you add some lines in /etc/vmware/network and add and change some lines in the .vmx file of the Vm.
 
This page helped me to figure out how to get it done.

Prerequisites:
1) eth0 and eth1 exist on the host system, are connected to a real network and have IPs 192.168.0.10/24 and 192.168.2.10/24
2) The VM has two bridged nics defined
 
Goal:
The VM should be able to access the physical nics eth0 and eth1 on the virtual nics eth0 und eth1 in bridged mode:
 
I added following lines in /etc/vmware/networking:
 
add_bridge_mapping eth1 2
answer VNET_2_INTERFACE eth1

The vmx file of the VM got following new and modified lines:
 
ethernet0.connectionType="custom" (was "bridged")
ethernet0.vnet="vmnet0"
...
ethernet1.connectionType="custom"
ethernet1.vnet="vmnet2"

Finally I was able to access the real nics eh0 and eth1 from the VM.
 
Add comment

*** Note ***

Comments are welcome. But in order to reject spam posts please consider following rules:
  1. Comments with string http are rejected with message You have no rights to use this tag
  2. All comments are reviewed by hand and thus it usually takes one day until a comment will be published.