[Lxc-users] veth name

Papp Tamas tompos at martos.bme.hu
Wed Jun 15 10:18:06 UTC 2011


On 06/15/2011 12:13 PM, ubik pl wrote:
> Hello,
>
> Is there a way to assign veth name(visible from the host) to be the same
> each time the container boots ?
> At the moment it is a random value like vethFFzyq2
>

Yes there is:

lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br-eth0
lxc.network.name = eth0
lxc.network.mtu = 1500
lxc.network.ipv4 = 1.2.3.4/24
lxc.network.hwaddr = 52:54:64:07:1e:b8
lxc.network.veth.pair = veth-foo0


You can define a lot of thing.

tamas




More information about the lxc-users mailing list