Hi guys,

i'm trying to deploy some virtual machines on a single host using
opennebula with openvswitch network driver.

Currently, i'm testing the vlan isolation feature provided by openvswitch,
but it's not working like described in documentation.

What i'm trying to do is to set two interfaces on each vm (one for data
control and another for tests)

For example:
I have 4 vm's with the following ips and vlans:
eth0 = data control
eth1 = tests purposes
1 - eth0: 10.1.1.5; eth1: 10.1.1.33; vlan: 32
2 - eth0: 10.1.1.6; eth1: 10.1.1.34; vlan: 32
3 - eth0: 10.1.1.7; eth1: 10.1.1.65; vlan: 64
4 - eth0: 10.1.1.8; eth1: 10.1.1.66; vlan: 64

The host has the ip 10.1.1.2 (broadcast 10.1.1.31 and netmask
255.255.255.224)

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)

That is, VM's 1 and 2 can communicate with each other, but they also can
communicate with vm's 3 and 4.

I'm using ttylinux image and the following virtual network and virtual
machines templates:

-- Virtual network templates
<TEMPLATE>
    <NAME>control network</NAME>
    <BRIDGE>br0</BRIDGE>
    <TYPE>RANGED</TYPE>
    <NETWORK_ADDRESS>10.1.1.0/27</
NETWORK_ADDRESS>
    <NETWORK_MASK>255.255.255.224</NETWORK_MASK>
    <IP_START>10.1.1.5</IP_START>
</TEMPLATE>

<TEMPLATE>
    <NAME>test network</NAME>
    <BRIDGE>br0</BRIDGE>
    <TYPE>RANGED</TYPE>
    <VLAN>YES</VLAN>
    <VLAN_ID>32</VLAN_ID>
    <NETWORK_ADDRESS>10.1.1.32/27</NETWORK_ADDRESS>
    <NETWORK_MASK>255.255.255.224</NETWORK_MASK>
</TEMPLATE>

<TEMPLATE>
    <NAME>test network 2</NAME>
    <BRIDGE>br0</BRIDGE>
    <TYPE>RANGED</TYPE>
    <VLAN>YES</VLAN>
    <VLAN_ID>64</VLAN_ID>
    <NETWORK_ADDRESS>10.1.1.64/27</NETWORK_ADDRESS>
    <NETWORK_MASK>255.255.255.224</NETWORK_MASK>
</TEMPLATE>

-- Virtual machine template
<TEMPLATE>
    <CPU>1</CPU>
    <MEMORY>256</MEMORY>
    <DISK>
        <IMAGE_ID>7</IMAGE_ID
    </DISK>
    <NIC>
        <!-- control network -->
        <NETWORK_ID>12</NETWORK_ID>
    </NIC>
    <NIC>
        <!-- test network: vlan = 32 or vlan = 64 -->
        <NETWORK_ID>14</NETWORK_ID>
    </NIC>
</TEMPLATE>

When i execute the ovs-vsctl show command, i got this:
 Bridge "br0"
        Port "eth0"
            Interface "eth0"
        Port "vnet0"
            Interface "vnet0"
        Port "vnet1"
            tag: 32
            Interface "vnet1"
        Port "vnet2"
            Interface "vnet2"
        Port "vnet3"
            tag: 32
            Interface "vnet3"
        Port "vnet4"
            Interface "vnet4"
        Port "vnet5"
            tag: 64
            Interface "vnet5"
        Port "vnet6"
            Interface "vnet6"
        Port "vnet7"
            tag: 64
            Interface "vnet7"
        Port "br0"
            Interface "br0"
                type: internal

I also noticed something wrong when i execute the ifconfig command in vm's:
broadcast and netmask aren't correct (10.1.1.255 and 255.255.255.0)

I tried to find some issue like mine but i didn't had success.
Can you guys help me with this issue?


-- 
Atenciosamente,
Túlio Gomes Barbosa
br.linkedin.com/in/tuliogomesbarbosa
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to