[Openstack] How to get the MAC Address in Openstack

Remo Mattei remo at italy1.com
Tue Jan 21 17:02:58 UTC 2014


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. 

Ciao 
-- 
Remo Mattei

Da: Jonathan Proulx jon at jonproulx.com
Rispondi: Jonathan Proulx jon at jonproulx.com
Data: January 21, 2014 at 9:00:08
A: Gary Kotton gkotton at vmware.com
Oggetto:  Re: [Openstack] How to get the MAC Address in Openstack  
Hi Varun,  

As Garry said you can pre create ports with specific mac addresses and  
then assign them to instances if you are using neutron for networking.  
The Horizon dash board does not provide an interface to either of  
these actions but the command line tools do.  

the 'port-create' sub command of 'neutron' takes options for  
--mac-address and --fixed-ip among many others run `neutron help  
port-create` for more details  

once you have created the ports you can pass the port IDs in to 'nova  
boot --nic port-id-<port-uuid> <then the rest of the options for your  
instance>'  

I use this to provide a fixed MAC address for my node locked flexlm  
server that identifies it's authorized node by mac address. Note you  
can specify whatever you want here but it is up to you to avoid  
conflicts on the same network segment if you start statically  
assigning MAC addrs. Neutron won't create conflicts but I don't know  
if it will prevent you from doing so.  

-Jon  


On Tue, Jan 21, 2014 at 4:29 AM, Gary Kotton <gkotton at vmware.com> wrote:  
> Hi,  
> If you are using neutron then you can create pass the MAC address as part of  
> the create port call. Please see  
> https://wiki.openstack.org/wiki/Neutron/APIv2-specification#Port  
> Thanks  
> Gary  
>  
> From: varun bhatnagar <varun292006 at gmail.com>  
> Date: Tuesday, January 21, 2014 8:35 AM  
> To: "openstack at lists.openstack.org" <openstack at lists.openstack.org>  
> Subject: [Openstack] How to get the MAC Address in Openstack  
>  
> Hi,  
>  
> How can I get the MAC Address of the network interface which I have created  
> on Openstack?  
>  
> Also, is there any way where in I can define the MAC Address while creating  
> any network?  
>  
> I tried digging in the code and I found out that the MAC Address assigned by  
> Openstack starts with "fa:16:3e:". I want to assign fa:16:3e:00:00:01 first  
> network interface, fa:16:3e:00:00:02 to second and fa:16:3e:00:00:03 to  
> third network interface of my VM.  
> Is this possible?  
>  
> Regards,  
> Varun  
>  
> _______________________________________________  
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack  
> Post to : openstack at lists.openstack.org  
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack  
>  

_______________________________________________  
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack  
Post to : openstack at lists.openstack.org  
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack  

!DSPAM:1,52dea798112471080013133!  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140121/d2092bd1/attachment.html>


More information about the Openstack mailing list