I have 4 Virtual Machines (Ubuntu 12.04) running on a host that is also running Ubuntu 12.04. The Virtual Machines are named:
switch-vm
vm-1
vm-2
vm-3
Below are the network settings on switch-vm:
Adapter 1:
Intel PRO/1000 MT Desktop (Bridged adapter, eth0)
Adapter 2:
Intel PRO/1000 MT Desktop (Internal network, 'intnet-1')
Adapter 3:
Intel PRO/1000 MT Desktop (Internal network, 'intnet-2')
Adapter 4:
Intel PRO/1000 MT Desktop (Internal network, 'intnet-3')
Network settings on vm-1:
Adapter 1:
Intel PRO/1000 MT Desktop (Bridged adapter, eth0)
Adapter 2:
Intel PRO/1000 MT Desktop (Internal network, 'intnet-1')
Network settings on vm-2:
Adapter 1:
Intel PRO/1000 MT Desktop (Bridged adapter, eth0)
Adapter 2:
Intel PRO/1000 MT Desktop (Internal network, 'intnet-2')
Network settings on vm-3:
Adapter 1:
Intel PRO/1000 MT Desktop (Bridged adapter, eth0)
Adapter 2:
Intel PRO/1000 MT Desktop (Internal network, 'intnet-3')
I have installed openvswitch on switch-vm:
sudo ovs-vsctl show
sudo ovs-vsctl add-br lan0
sudo ovs-vsctl add-port lan0 eth1
sudo ovs-vsctl add-port lan0 eth4
sudo ovs-vsctl add-port lan0 eth5
This makes the connections as below.
eth 1 on switch-vm ----- eth1 on vm-1
eth 4 on switch-vm ----- eth1 on vm-2
eth 5 on switch-vm ----- eth1 on vm-3
Please note that the six interfaces mentioned above do not have IP addresses. The ifconfig
on the interfaces will look somewhat like below. (example: eth4
on switch-vm)
eth4 Link encap:Ethernet HWaddr 08:00:27:80:e2:be
inet6 addr: fe80::a00:27ff:fe80:e2be/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:8538 (8.5 KB)
I want to make sure that traffic flows across all the three connections mentioned above, both ways.
Is there a way I can use ping
or some other similar tool for this purpose? If yes, how?