[lxc-users] Determining a container's MAC address
Andrey Repin
anrdaemon at yandex.ru
Tue Sep 1 15:36:07 UTC 2015
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.
If your conf file is missing lxc.network.hwaddr, it was either removed, or a
container was not created using standard template.
You can add it manually with any suitable value.
--
With best regards,
Andrey Repin
Tuesday, September 1, 2015 18:19:57
Sorry for my terrible english...
More information about the lxc-users
mailing list