[lxc-users] Setting lxc.network.veth.pair
Benoit GEORGELIN - Association Web4all
benoit.georgelin at web4all.fr
Sun Aug 30 22:12:48 UTC 2015
Hi Peter,
lxc.network.type = veth
lxc.network.veth.pair = veth0
Should be enough in your container configuration file (config)
Also, you can make sure there is no related entries in lxc.conf and default.conf .
lxc.network.veth.pair cannot be set when using Unprivileged container
But you can assign your own mac address by using :
lxc.network.hwaddr = <MAC_ADDRESS>
Cordialement,
De: "Peter Steele" <pwsteele at gmail.com>
À: "lxc-users" <lxc-users at lists.linuxcontainers.org>
Envoyé: Dimanche 30 Août 2015 16:51:58
Objet: [lxc-users] Setting lxc.network.veth.pair
I want to pick my own naming convention for the veth interfaces created
by LXC rather than using the auto-generated names. I tried adding the entry
lxc.network.veth.pair = veth0
in one of my privileged containers but it still get a random name of
'veth6HIE0A' instead of eth0. Am I mistaken as to how this is supposed
to work. Ideally I would like to see something like
'veth0-<container-name>' but 'vethN' when N either is assigned
automatically when containers are started or alternatively where I set N
myself in the container's config. What's possible and what's not?
Thanks.
_______________________________________________
lxc-users mailing list
lxc-users at lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150831/bf873c36/attachment.html>
More information about the lxc-users
mailing list