[lxc-users] Determining a container's MAC address

Peter Steele pwsteele at gmail.com
Tue Sep 1 12:01:19 UTC 2015


On 09/01/2015 02:06 AM, Andrey Repin wrote:
> Greetings, Peter Steele!
>
>> lxc.network.hwaddr = 00:xx:xx:xx:xx:xx
> Do NOT do this.
> If you want completely random private MAC's, start with 02:...
>
> Ref: http://www.iana.org/assignments/ethernet-numbers/ethernet-numbers.xhtml
>
>> in my default.conf as well and that generated a random mac address
>> starting with b6:38, then 78:47, and so on. Is there a recommended
>> prefix for the auto-generated lxc mac addresses?
> The recommended prefix is the one that is set by default.
> You MAY use private prefix, but make sure it is properly indicated.
>
I know I don't want arbitrarily random mac addresses, I was asking what 
is the recommended lxc prefix? A previous poster suggested

00:16:3e:xx:xx:xx

I decided to try

00:xx:xx:xx:xx:xx

just to see if lxc would pick its own hard coded prefix but it seemed to generate something different each time. You recommended that I should use the one that is set by default, but what is that? My default.conf had no entry lxc.network.hwaddr until I put one there.

Peter

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150901/ad4da834/attachment.html>


More information about the lxc-users mailing list