[one-users] MAC_PREFIX Can not be overrided by the VirtualNetwork template

tedbs tedbs at gtsum.com
Tue Jun 29 07:33:49 PDT 2010


I just checked my oned.conf and the MAC_PREFIX entry is "00:03" which does have an even number in the most significant byte. I don't recall modifying that but then again, I've had a lot of things going on around here ...

Ted Bodfish

-----Original Message-----
From: rsmontero at gmail.com [mailto:rsmontero at gmail.com] On Behalf Of Ruben S. Montero
Sent: June-28-10 3:41 PM
To: tedbs
Cc: rajendra kumar; users at lists.opennebula.org
Subject: Re: [one-users] MAC_PREFIX Can not be overrided by the VirtualNetwork template

Hi,

I just find out that the MAC_PREFIX that we have in oned.conf is also
wrong. The original goal was to set the MAC to a locally administered
address, so the second bit of most significant byte must 1 (and as you
said the less significant bit must be 0 for unicast addresses, i.e.
even).

I am changing the default prefix to 02:00

Cheers

Ruben

On Thu, Jun 24, 2010 at 3:48 PM, tedbs <tedbs at gtsum.com> wrote:
> A side issue: shouldn't the MAC address begin with an even number? For example, "10:03" instead of "11:03".
>
> Ted Bodfish
>
> -----Original Message-----
> From: Javier Fontan [mailto:jfontan at gmail.com]
> Sent: June-24-10 6:18 AM
> To: rajendra kumar
> Cc: users at lists.opennebula.org
> Subject: Re: [one-users] MAC_PREFIX Can not be overrided by the VirtualNetwork template
>
> Hello,
>
> There is no MAC_PREFIX parameter in virtual network definition, only
> in oned.conf and is global for all networks. If you want to specify
> mac addresses with different prefix for an specific network you will
> have to use "FIXED" type and set the mac address for each lease:
>
> --8<------
> LEASES = [IP=130.10.0.1, MAC=50:20:20:20:20:20]
> LEASES = [IP=130.10.0.2, MAC=50:20:20:20:20:21]
> ------>8--
>
> Bye
>
> On Tue, Jun 22, 2010 at 2:18 PM, rajendra kumar <rajendra at kqinfotech.com> wrote:
>> Hi All,
>>
>>
>> I just wanted to define two network with different MAC_PREFIX.
>> so i have created two network template with different mac prefix.
>>
>> First network:
>>
>> NAME   = "red lan"
>> TYPE   = RANGED
>> BRIDGE = virbr0
>> MAC_PREFIX   = "11:03"
>> NETWORK_SIZE    = C
>> NETWORK_ADDRESS = 192.168.12.0
>>
>> Second network:
>>
>> NAME   = "green lan"
>> TYPE   = RANGED
>> BRIDGE = virbr1
>> NETWORK_SIZE    = C
>> NETWORK_ADDRESS = 192.168.122.0
>>
>> But in the first case every virtual machine is getting MAC Address based on
>> MAC_PREFIX which is defined in oned.conf file.
>>
>> output:
>>
>> onevnet show 2
>>
>> NID               : 2
>> UID               : 0
>> Network Name      : red lan
>> Type              : Ranged
>> Bridge            : virbr0
>>
>> ....: Template :....
>>     BRIDGE=virbr0
>>     MAC_PREFIX=11:03
>>     NAME=red lan
>>     NETWORK_ADDRESS=192.168.12.0
>>     NETWORK_SIZE=C
>>     TYPE=RANGED
>>
>> ....: Leases :....
>> IP = 192.168.12.1   MAC = 00:03:c0:a8:0c:01  USED = 1 VID = 18
>>
>>
>> here generated MAC Address(MAC = 00:03:c0:a8:0c:01) is different from
>> MAC_PREFIX=11:03 .
>>
>> it is specified in oned.conf file that MAC_PREFIX can be overrided by the
>> Virtual Network template.
>>
>> can you please find out whats wron going on.and is there any way to define
>> different virtual network with different MAC_PREFIX.
>>
>> (if i am commenting MAC_PREFIX   = "00:03" line in oned.conf then Assigened
>> MAC address by opennebula  is 00:01:c0:a8:0c:01 )
>>
>>
>> --
>>
>> Regards
>> Rajendra Kumar
>> KQ infotech
>> Mobile No: +91-9823565282
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
>
>
> --
> Javier Fontan, Grid & Virtualization Technology Engineer/Researcher
> DSA Research Group: http://dsa-research.org
> Globus GridWay Metascheduler: http://www.GridWay.org
> OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
Dr. Ruben Santiago Montero
Associate Professor (Profesor Titular), Complutense University of Madrid

URL: http://dsa-research.org/doku.php?id=people:ruben
Weblog: http://blog.dsa-research.org/?author=7



More information about the Users mailing list