[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: reset/change hwaddr/mac in a lxc?



On Tue, 2020-09-01 at 17:45 +1200, Richard Hector wrote:
> On 1/09/20 4:23 am, Jim Popovitch wrote:
> > Hello!
> > 
> > lxc-create (Debian Buster) assigns MAC addresses to new containers. 
> > Somehow, 2 new containers (Ubuntu Focal) both got created with the same
> > MAC/hwaddr.  What are my options to change one of them without
> > hardcoding a hwaddr in a lxc config file?
> 
> My containers (test system, admittedly stretch on stretch) get new MAC
> addresses with each boot. Does rebooting (shutdown followed by start)
> (the container) solve it?

Sadly no. Thanks for suggesting it though.

> 
> It does seem odd that you're getting duplicates though.

I think, but am not 100% certain, that the hwaddr is assigned when
running lxc-create.

-Jim P.


Reply to: