Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer

While I don't have openvswitch installed, there are a few standard switch methods to see if each device is connected in the manner expected. I'm not sure of the exact command or the syntax, although I did look on their website...

If you were on a cisco switch

show cam

would show all the MAC addresses the switch sees, and the ports and VLANs to which they're attached. Before this works, you might have to send a broadcast ping (ping 255.255.255.255) to make sure all hosts have done an ARP and thus show up in the CAM table.

It would appear the equivalent command for your setup would be

ovs−ofctl dump−tables br0

Prints out the switch’s table stats. (This is more interesting after some traffic has passed through.)

(possibly vsctl)

http://openvswitch.org/cgi-bin/ovsman.cgi?page=utilities%2Fovs-ofctl.8

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.