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

Javier Fontan jfontan at gmail.com
Thu Jun 24 03:17:47 PDT 2010


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



More information about the Users mailing list