<div dir="ltr">Hi <div><br></div><div>Note that when a NIC requests an IP from a network you use IP or MAC (supported in 4.8) to select the IP defined in the network, and not to set its MAC. This is IP/MAC are keys to search the lease, in your example the IP is used to select the lease and you get the MAC address associated to it. You need to update the network so the IP has the desired MAC.</div>
<div><br></div><div>Cheers</div><div><br></div><div>Ruben</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 16, 2014 at 3:24 PM, Alvaro Simon Garcia <span dir="ltr"><<a href="mailto:Alvaro.SimonGarcia@ugent.be" target="_blank">Alvaro.SimonGarcia@ugent.be</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
We need to set (and modify from time to time) the MAC address in our VM templates, by default ONE generates this MAC using the default prefix value and the VM ip, but we need to set a different MAC in some cases. We are including the MAC address into NIC section, as example:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
NIC=[<br>
IP="10.141.8.30",<br>
MAC="AA:00:00:80:01:00",<br>
MODEL="virtio",<br>
NETWORK="br100",<br>
NETWORK_UNAME="oneadmin",<br>
TARGET="eth0" ]<br>
</blockquote>
<br>
but OpenNebula is still using the default value, and at the end we have to include the harcoded mac into our vnet conf (and we don't want to do that):<br>
<br>
LEASE=[ MAC="aa:01:00:80:01:00", IP="10.141.8.40", IP6_LINK="fe80::ac01:ff:fe80:<u></u>100", USED="0", VID="-1" ]<br>
<br>
do you know if this is a known issue, or do we need to do something else to set the MAC from the VM template? We are testing opennebula 4.6 right now<br>
<br>
Thanks in advance!<br>
Álvaro<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/<u></u>listinfo.cgi/users-opennebula.<u></u>org</a><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>