Quantcast
Viewing all articles
Browse latest Browse all 293210

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

I tried to simplify my virtual machine configuration file(/root/vmware/Debian6/Debian6.vmx) and settings regarding ethernet0 and ethernet1 are now following:

 

 

# grep -i ethernet /root/vmware/Debian6/Debian6.vmx
ethernet0.present = "TRUE"
ethernet0.connectionType = "custom"
ethernet0.vnet = "VMnet0"
ethernet0.addressType = "generated"
ethernet0.generatedAddress = "00:0c:29:50:51:72"
ethernet0.generatedAddressOffset = "0"
ethernet1.present = "TRUE"
ethernet1.connectionType = "custom"
ethernet1.vnet = "VMnet2"
ethernet1.addressType = "generated"
ethernet1.generatedAddress = "00:0c:29:50:51:7c"
ethernet1.generatedAddressOffset = "10"
#

 

/etc/vmware/networking should be correct as well:

# 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
#

 

I restart the networking:

 

 

# 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
#

 

..and start vmplayer under root. Under the host machine I have configured eth0 and eth1 like this:

# ifconfig eth0 192.168.1.65 netmask 255.255.255.0 up

# ifconfig eth1 172.1.1.3 netmask 255.255.255.0 up

..and under the virtual machine I have configured eth0 and eth1 like this:

# ifconfig eth0 192.168.1.75 netmask 255.255.255.0 up

# ifconfig eth1 172.1.1.4 netmask 255.255.255.0 up

 

While connection between eth0 devices is fine, there is no connectivity between eth1 devices:

 

 

# ping -c4 172.1.1.4
PING 172.1.1.4 (172.1.1.4) 56(84) bytes of data.
From 172.1.1.3 icmp_seq=2 Destination Host Unreachable
From 172.1.1.3 icmp_seq=3 Destination Host Unreachable
From 172.1.1.3 icmp_seq=4 Destination Host Unreachable

--- 172.1.1.4 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3000ms
pipe 3
#

 

As you can see from the image, there are no received packages on virtual machine eth1 interface.

 

 

Any suggestions what might cause the described problem? Is there still something missing on consfiguration side? Image may be NSFW.
Clik here to view.


Viewing all articles
Browse latest Browse all 293210

Trending Articles