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