<html><head><style>body{font-family:Calibri,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Calibri,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">One more thing to add if you are planning to use your own MAC address prefix you can modify the neutron.conf and look for that. Now by default it is using the OpenStack bits. </div><div id="bloop_customfont" style="font-family:Calibri,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Calibri,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Ciao </div> <div id="bloop_sign_1390323695643311872" class="bloop_sign"><span style="font-family:helvetica,arial;font-size:13px"></span>-- <br>Remo Mattei<br><br></div> <div style="color:gray"><hr style="style:linear">Da: <span style="color:black">Jonathan Proulx</span> <a href="mailto:jon@jonproulx.com">jon@jonproulx.com</a><br>Rispondi: <span style="color:black">Jonathan Proulx</span> <a href="mailto:jon@jonproulx.com">jon@jonproulx.com</a><br>Data: <span style="color:black">January 21, 2014 at 9:00:08</span><br>A: <span style="color:black">Gary Kotton</span> <a href="mailto:gkotton@vmware.com">gkotton@vmware.com</a><br>Oggetto: <span style="color:black"> Re: [Openstack] How to get the MAC Address in Openstack <br></span></div> <blockquote type="cite" class="clean_bq"><span><div><div>Hi Varun,
<br>
<br>As Garry said you can pre create ports with specific mac addresses and
<br>then assign them to instances if you are using neutron for networking.
<br> The Horizon dash board does not provide an interface to either of
<br>these actions but the command line tools do.
<br>
<br>the 'port-create' sub command of 'neutron' takes options for
<br>--mac-address and --fixed-ip among many others run `neutron help
<br>port-create` for more details
<br>
<br>once you have created the ports you can pass the port IDs in to 'nova
<br>boot --nic port-id-<port-uuid> <then the rest of the options for your
<br>instance>'
<br>
<br>I use this to provide a fixed MAC address for my node locked flexlm
<br>server that identifies it's authorized node by mac address. Note you
<br>can specify whatever you want here but it is up to you to avoid
<br>conflicts on the same network segment if you start statically
<br>assigning MAC addrs. Neutron won't create conflicts but I don't know
<br>if it will prevent you from doing so.
<br>
<br>-Jon
<br>
<br>
<br>On Tue, Jan 21, 2014 at 4:29 AM, Gary Kotton <gkotton@vmware.com> wrote:
<br>> Hi,
<br>> If you are using neutron then you can create pass the MAC address as part of
<br>> the create port call. Please see
<br>> https://wiki.openstack.org/wiki/Neutron/APIv2-specification#Port
<br>> Thanks
<br>> Gary
<br>>
<br>> From: varun bhatnagar <varun292006@gmail.com>
<br>> Date: Tuesday, January 21, 2014 8:35 AM
<br>> To: "openstack@lists.openstack.org" <openstack@lists.openstack.org>
<br>> Subject: [Openstack] How to get the MAC Address in Openstack
<br>>
<br>> Hi,
<br>>
<br>> How can I get the MAC Address of the network interface which I have created
<br>> on Openstack?
<br>>
<br>> Also, is there any way where in I can define the MAC Address while creating
<br>> any network?
<br>>
<br>> I tried digging in the code and I found out that the MAC Address assigned by
<br>> Openstack starts with "fa:16:3e:". I want to assign fa:16:3e:00:00:01 first
<br>> network interface, fa:16:3e:00:00:02 to second and fa:16:3e:00:00:03 to
<br>> third network interface of my VM.
<br>> Is this possible?
<br>>
<br>> Regards,
<br>> Varun
<br>>
<br>> _______________________________________________
<br>> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
<br>> Post to : openstack@lists.openstack.org
<br>> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
<br>>
<br>
<br>_______________________________________________
<br>Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
<br>Post to : openstack@lists.openstack.org
<br>Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
<br>
<br>!DSPAM:1,52dea798112471080013133!
<br>
<br></div></div></span></blockquote></body></html>