Hi

MAC address  is checked to not collide within a VNET - AR. If you want to
set different MAC on different VNETs you need to define the MAC address
ranges in such a way they do not overlap.

Cheers

Ruben

On Mon, Sep 8, 2014 at 11:29 AM, Daniel Dehennin <
daniel.dehen...@baby-gnu.org> wrote:

> Hello,
>
> Using ONE 4.8 on two nodes with Open vSwitch networks, a crossover cable
> between the nodes as trunk.
>
> I have a router template using 4 different networks, each network is
> isolated in dedicated VLAN, but 3 network cards use the same MAC
> address.
>
> On another try two of them use the same MAC address.
>
> This result is miss-function on that router, the firt card is tagged
> with the VLAN ID two times, the next one is in trunk mode:
>
>     Mon Sep 8 11:00:14 2014 [Z0][VMM][I]: post: Executed "sudo ovs-vsctl
> set Port vnet44 tag=655".
>     Mon Sep 8 11:00:14 2014 [Z0][VMM][I]: post: Executed "sudo ovs-vsctl
> set Port vnet45 tag=659".
>     Mon Sep 8 11:00:14 2014 [Z0][VMM][I]: post: Executed "sudo ovs-vsctl
> set Port vnet45 tag=660".
>     Mon Sep 8 11:00:14 2014 [Z0][VMM][I]: post: Executed "sudo ovs-vsctl
> set Port vnet47 tag=661".
>     Mon Sep 8 11:00:14 2014 [Z0][VMM][I]: ExitCode: 0
>
> The “vnet45” should bet tagged with “659”:
>
>     ovs-vsctl find Port name=vnet45
>     _uuid               : b5b33023-03ff-4229-8039-f2268096fb77
>     bond_downdelay      : 0
>     bond_fake_iface     : false
>     bond_mode           : []
>     bond_updelay        : 0
>     external_ids        : {}
>     fake_bridge         : false
>     interfaces          : [349e0f2d-3cd7-4865-bb8d-72b82aebc437]
>     lacp                : []
>     mac                 : []
>     name                : "vnet45"
>     other_config        : {}
>     qos                 : []
>     statistics          : {}
>     status              : {}
>     tag                 : 660
>     trunks              : []
>     vlan_mode           : []
>
> The “vnet46” has the same MAC address as “vnet45” and is in trunk
> mode:
>
>     ovs-vsctl find Port name=vnet46
>     _uuid               : cad4a6c7-5ab5-440f-81e7-59bfb19e00a6
>     bond_downdelay      : 0
>     bond_fake_iface     : false
>     bond_mode           : []
>     bond_updelay        : 0
>     external_ids        : {}
>     fake_bridge         : false
>     interfaces          : [1b0a1deb-fdb3-44ea-b406-67afa953ee5f]
>     lacp                : []
>     mac                 : []
>     name                : "vnet46"
>     other_config        : {}
>     qos                 : []
>     statistics          : {}
>     status              : {}
>     tag                 : []
>     trunks              : []
>     vlan_mode           : []
>
>
> Here is one of the networks definitions:
>
>     oneadmin@nebula:~$ onevnet show 659
>     VIRTUAL NETWORK 659 INFORMATION
>     ID             : 659
>     NAME           : dmz1
>     USER           : auser
>     GROUP          : users
>     CLUSTER        : -
>     BRIDGE         : internal
>     VLAN           : Yes
>     USED LEASES    : 2
>
>     PERMISSIONS
>     OWNER          : um-
>     GROUP          : ---
>     OTHER          : ---
>
>     VIRTUAL NETWORK TEMPLATE
>     BRIDGE="internal"
>     PHYDEV=""
>     PUBLIC="NO"
>     VLAN="YES"
>     VLAN_ID=""
>
>     ADDRESS RANGE POOL
>      AR TYPE    SIZE LEASES               MAC              IP
> GLOBAL_PREFIX
>       0 ETHER    254      1 02:00:2b:94:f7:fa               -
>         -
>
>     LEASES
>     AR  OWNER                    MAC              IP
> IP6_GLOBAL
>     0   VM : 6113  02:00:2b:94:f7:fa               -
>          -
>
>
> I could define random mac prefixes for each network but I assumed that ONE
> will pick different MAC
> for each cards.
>
> Regards.
> --
> Daniel Dehennin
> Récupérer ma clef GPG: gpg --recv-keys 0xCC1E9E5B7A6FE2DF
> Fingerprint: 3E69 014E 5C23 50E8 9ED6  2AAD CC1E 9E5B 7A6F E2DF
>
> _______________________________________________
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


-- 
-- 
Ruben S. Montero, PhD
Project co-Lead and Chief Architect
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | rsmont...@opennebula.org | @OpenNebula
_______________________________________________
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to