Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 294344

Re: bridge host eth0 with VM eth0 and host eth1 with VM eth1

$
0
0

WoodyZ,

 

as you suggested, at first I changed VMnet1(should be special purpose for host-only connection) to VMnet2 so my /etc/vmware/networking file looks now following:

 

# cat /etc/vmware/networking
VERSION=1,0
answer VNL_DEFAULT_BRIDGE_VNET -1
add_bridge_mapping tap0 -1
add_bridge_mapping tap1 -1
add_bridge_mapping tap2 -1
add_bridge_mapping tap3 -1
add_bridge_mapping tun1 -1
add_bridge_mapping vboxnet0 -1
add_bridge_mapping vlan10 -1
add_bridge_mapping vlan11 -1
add_bridge_mapping eth0 0
add_bridge_mapping eth1 2
# vmware-networks --stop
Stopped Bridged networking on vmnet0
Stopped Bridged networking on vmnet2
Stopped all configured services on all networks
# vmware-networks --start
Started Bridge networking on vmnet0
Started Bridge networking on vmnet2
Started Network detection service
Started all configured services on all networks
#

 

Then I modified the configuration file for my virtual machine:

 

/vmware/Debian6# grep ethernet Debian6.vmx
ethernet0.present = "TRUE"
ethernet0.connectionType = "custom"
ethernet0.startConnected = "TRUE"
ethernet0.vnet = "vmnet0"
ethernet0.wakeOnPcktRcv = "FALSE"
ethernet0.addressType = "generated"
ethernet0.generatedAddress = "00:0c:29:50:51:72"
ethernet0.pciSlotNumber = "33"
ethernet0.generatedAddressOffset = "0"
ethernet0.linkStatePropagation.enable = "TRUE"
ethernet1.present = "TRUE"
ethernet1.connectionType = "custom"
ethernet1.startConnected = "TRUE"
ethernet1.vnet = "vmnet2"
ethernet1.wakeOnPcktRcv = "FALSE"
ethernet1.addressType = "generated"
ethernet1.linkStatePropagation.enable = "TRUE"
ethernet1.generatedAddress = "00:0c:29:50:51:7c"
ethernet1.pciSlotNumber = "34"
ethernet1.generatedAddressOffset = "10"
/vmware/Debian6#

 

..and started my virtual machine. While connectivity for eth0 was fine(for example I was able to reach DHCP server in physical LAN) the eth1 still wasn't bridged correctly- I executed "ifconfig eth1 172.1.1.4 netmask 255.255.255.0 up" in virtual machine and "ifconfig eth1 172.1.1.3 netmask 255.255.255.0 up" in physical machine, but I'm still not able to ping between those two interfaces.

 

Any ideas/suggestions?


Viewing all articles
Browse latest Browse all 294344

Trending Articles