According to me :

An OvS bridge br0 on host0 with ports:

  * tap0 of vm0 and tap1 of vm1

An OvS bridge br0 on host1 with ports :

  * tap0 of vm2 and tap1 of vm3

On host0:br0:

  * port tap0 type tag vlan0
  * port tap1 type tag vlan1
  * port gr0 type trunk [vlan0, vlan1] remote host1

On host1:br0:

  * port tap0 type tag vlan0
  * port tap1 type tag vlan1
  * port gr0 type trunk [vlan0, vlan1] remote host0

Hope it makes sense.




________________________________
De : 陈文龙 <[email protected]>
À : [email protected]
Envoyé le : Mer 28 juillet 2010, 6h 25min 08s
Objet : [ovs-discuss] Is open vswitch a distributed virtual switch?

For example
Two hosts, host0, host1.
Four VMs, vm0, vm1, vm2, vm3.
vm0,vm1 run on host0.
vm2,vm3 run on host1.

I want to create two VLANs, vlan0, vlan1.
vm0,vm2 in vlan0.
vm1,vm3 in vlan1.

Is that possible?


+-------------+     +--------------+
| vm0    vm1  |     |  vm2    vm3  |
|  |      |   |     |   |      |   |
|vlan0  vlan1 |     | vlan0  vlan1 |
|             |     |              |
|     host0   |     |    host1     |
+-------------+     +--------------+

vm0 & vm2 think they are in a LAN.
If vm0 broadcast a packet, vm2 will receive, vm1 will not.

How to construct a network topology like that using open vswitch?


      
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss_openvswitch.org

Reply via email to