[Lxc-users] veth name

ubik pl ubik.pl at gmail.com
Wed Jun 15 10:38:51 UTC 2011


2011/6/15 Papp Tamas <tompos at martos.bme.hu>:
> 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
>
Thank you. It works!




More information about the lxc-users mailing list