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

2015-09-07 Thread Guido Jäkel
Dear Dietmar, please, what's the effect of the added line - what MAC is chosen "fix" with this? + addr = p->dev->dev_addr; greetings Guido On 06.09.2015 21:13, Dietmar Maurer wrote: > We use a kernel patch to avoid that behavior: > >

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

2015-09-06 Thread Guido Jäkel
Dear Peter, don't use a MAC prefix that is lower than that of the upstream device of the bridge the containers are attached: The Linux software bridge will use the lowest MAC of it's attached devices as the MAC of the outgoing packets. Therefore, you will risk short traffic interruptions to

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

2015-09-06 Thread Peter Steele
On 09/06/2015 09:52 AM, Guido Jäkel wrote: Dear Peter, don't use a MAC prefix that is lower than that of the upstream device of the bridge the containers are attached: The Linux software bridge will use the lowest MAC of it's attached devices as the MAC of the outgoing packets. Therefore,

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

2015-09-06 Thread Peter Steele
On 09/06/2015 09:52 AM, Guido Jäkel wrote: Dear Peter, don't use a MAC prefix that is lower than that of the upstream device of the bridge the containers are attached: The Linux software bridge will use the lowest MAC of it's attached devices as the MAC of the outgoing packets. Therefore,

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

2015-09-06 Thread Peter Steele
On 09/06/2015 09:52 AM, Guido Jäkel wrote: Dear Peter, don't use a MAC prefix that is lower than that of the upstream device of the bridge the containers are attached: The Linux software bridge will use the lowest MAC of it's attached devices as the MAC of the outgoing packets. Therefore,

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

2015-09-06 Thread Dietmar Maurer
> > I'm currently using a "quite high" prefix and a tail that is derived from > > the assigned IP. The same "formula" is used to setup a auxiliary DHCP server > > because use DHCP for the container network setup. > > > > HWADDR=`IP=${IP#*.}; printf "00:50:C2:%02X:%02X:%02X" ${IP//./ }`

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

2015-09-01 Thread Robert Pendell
On Tue, Sep 1, 2015 at 11:59 AM, Peter Steele <...> wrote: > On 09/01/2015 08:36 AM, Andrey Repin wrote: >> >> 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. > >

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

2015-09-01 Thread Andrey Repin
Greetings, Peter Steele! > On 08/31/2015 10:03 PM, Serge Hallyn wrote: >> Right - if you use lxc-create to create the config file, and your >> initial lxc.conf (i.e. /etc/lxc/default.conf or whatever you pass >> as CONF to lxc-create -f CONF) contains something like >> >> lxc.network.hwaddr =

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

2015-09-01 Thread Peter Steele
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

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

2015-08-31 Thread Peter Steele
On 08/31/2015 06:32 AM, Serge Hallyn wrote: Should show up in a line like lxc.network.hwaddr = 00:16:3e:83:d1:8f in the created container config. ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org

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

2015-08-31 Thread Fajar A. Nugraha
On Tue, Sep 1, 2015 at 3:23 AM, Peter Steele wrote: > On 08/31/2015 06:32 AM, Serge Hallyn wrote: > >> >> Should show up in a line like >> >> lxc.network.hwaddr = 00:16:3e:83:d1:8f >> >> in the created container config. >> ___ >>

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

2015-08-31 Thread Fajar A. Nugraha
On Tue, Sep 1, 2015 at 12:35 PM, Peter Steele wrote: > > Is there a recommended prefix for the auto-generated lxc mac addresses? > > These links should be relevant: http://wiki.xenproject.org/wiki/Xen_Networking#MAC_addresses

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

2015-08-31 Thread Serge Hallyn
Quoting Fajar A. Nugraha (l...@fajar.net): > On Tue, Sep 1, 2015 at 3:23 AM, Peter Steele wrote: > > > On 08/31/2015 06:32 AM, Serge Hallyn wrote: > > > >> > >> Should show up in a line like > >> > >> lxc.network.hwaddr = 00:16:3e:83:d1:8f > >> > >> in the created container

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

2015-08-31 Thread Peter Steele
On 08/31/2015 10:03 PM, Serge Hallyn wrote: Right - if you use lxc-create to create the config file, and your initial lxc.conf (i.e. /etc/lxc/default.conf or whatever you pass as CONF to lxc-create -f CONF) contains something like lxc.network.hwaddr = 00:16:3e:xx:xx:xx then your container

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

2015-08-31 Thread Serge Hallyn
Quoting Peter Steele (pwste...@gmail.com): > Is there a way to determine the auto-generated MAC address that > lxc-create assigns to a container, apart from starting it and > inspecting the live container? Should show up in a line like lxc.network.hwaddr = 00:16:3e:83:d1:8f in the created