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

rajendra kumar rajendra at kqinfotech.com
Tue Jun 22 05:18:05 PDT 2010


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.con*f 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20100622/b5897bfc/attachment-0002.htm>


More information about the Users mailing list