Hi guys,<br><br>i'm trying to deploy some virtual machines on a single host using openvswitch network driver.<br><br>Currently, i'm testing the vlan isolation feature provided by openvswitch, but it's not working like described in documentation.<br>

<br>What i'm trying to do is to set two interfaces on each vm (one for data control and another for tests)<br><br>For example:<br>I have 4 vm's with the following ips and vlans:<br>eth0 = data control<br>eth1 = tests purposes<br>

1 - eth0: 10.1.1.5; eth1: 10.1.1.33; vlan: 32<br>2 - eth0: 10.1.1.6; eth1: 10.1.1.34; vlan: 32<br>3 - eth0: 10.1.1.7; eth1: 10.1.1.65; vlan: 64<br>4 - eth0: 10.1.1.8; eth1: 10.1.1.66; vlan: 64<br><br>The host has the ip 10.1.1.2 (broadcast 10.1.1.31 and netmask 255.255.255.224)<br clear="all">

<br>Here's the problem: i can ping from vm 1 to vm 2 (ping 10.1.1.34), but i also can ping from vm 1 to vm 3 or vm 4 (ping 10.1.1.64 or ping 10.1.1.65)<br><br>That is, VM's 1 and 2 can communicate with each other, but they also can communicate with vm's 3 and 4.<br>

<br>I'm using ttylinux image and the following virtual network and virtual machines templates:<br><br>-- Virtual network templates<br><TEMPLATE><br>    <NAME>control network</NAME><br>    <BRIDGE>br0</BRIDGE><br>

    <TYPE>RANGED</TYPE>    <br>    <NETWORK_ADDRESS><a href="http://10.1.1.0/27" target="_blank">10.1.1.0/27</a></NETWORK_ADDRESS><br>    <NETWORK_MASK>255.255.255.224</NETWORK_MASK>    <br>
    <IP_START>10.1.1.5</IP_START><br>
</TEMPLATE><br><br><TEMPLATE><br>    <NAME>test network</NAME><br>    <BRIDGE>br0</BRIDGE><br>    <TYPE>RANGED</TYPE><br>    <VLAN>YES</VLAN><br>    <VLAN_ID>32</VLAN_ID><br>

    <NETWORK_ADDRESS><a href="http://10.1.1.32/27" target="_blank">10.1.1.32/27</a></NETWORK_ADDRESS><br>    <NETWORK_MASK>255.255.255.224</NETWORK_MASK>    <br></TEMPLATE><br><br><TEMPLATE><br>
    <NAME>test network 2</NAME><br>
    <BRIDGE>br0</BRIDGE><br>    <TYPE>RANGED</TYPE><br>    <VLAN>YES</VLAN>    <br>    <VLAN_ID>64</VLAN_ID><br>    <NETWORK_ADDRESS><a href="http://10.1.1.64/27" target="_blank">10.1.1.64/27</a></NETWORK_ADDRESS><br>

    <NETWORK_MASK>255.255.255.224</NETWORK_MASK>    <br></TEMPLATE><br><br>-- Virtual machine template<br><TEMPLATE>        <br>    <CPU>1</CPU><br>    <MEMORY>256</MEMORY><br>

    <DISK><br>        <IMAGE_ID>7</IMAGE_ID   <br>    </DISK><br>    <NIC><br>        <!-- control network --><br>        <NETWORK_ID>12</NETWORK_ID><br>    </NIC><br>    <NIC><br>

        <!-- test network: vlan = 32 or vlan = 64 --><br>        <NETWORK_ID>14</NETWORK_ID><br>    </NIC><br></TEMPLATE> <br><br>When i execute the ovs-vsctl show command, i got this:<br> Bridge "br0"<br>
        Port "eth0"<br>            Interface "eth0"<br>        Port "vnet0"<br>            Interface "vnet0"<br>        Port "vnet1"<br>            tag: 32<br>            Interface "vnet1"<br>
        Port "vnet2"<br>            Interface "vnet2"<br>        Port "vnet3"<br>            tag: 32<br>            Interface "vnet3"<br>        Port "vnet4"<br>            Interface "vnet4"<br>
        Port "vnet5"<br>            tag: 64<br>            Interface "vnet5"<br>        Port "vnet6"<br>            Interface "vnet6"<br>        Port "vnet7"<br>            tag: 64<br>
            Interface "vnet7"<br>        Port "br0"<br>            Interface "br0"<br>                type: internal<br><br>I also noticed something wrong when i execute the ifconfig command in vm's:<br>
broadcast and netmask aren't correct (10.1.1.255 and 255.255.255.0)<br><br>I tried to find some issue like mine but i didn't had success.<br>
Can you guys help me with this issue?<br><br>-- <br>Atenciosamente,<div>Túlio Gomes Barbosa</div><div><a href="http://br.linkedin.com/in/tuliogomesbarbosa" title="View public profile" name="13c359c720884606_SafeHtmlFilter_webProfileURL" style="margin:0px 10px 0px 0px;padding:0px 0px 0px 19px;border:0px;outline:none;font-size:11px;font-family:Arial,Helvetica,'Nimbus Sans L',sans-serif;vertical-align:middle;text-decoration:none;color:rgb(102,102,102);display:inline-block;background-image:url(http://static02.linkedin.com/scds/common/u/img/sprite/sprite_profile_top_card_v4.png);background-color:rgb(246,246,246);line-height:13px;background-repeat:no-repeat no-repeat" target="_blank">br.linkedin.com/in/tuliogomesbarbosa</a></div>

<div><br></div>