[lxc-devel] Patch proposal : lxc-net start/stop from /etc/init/lxc-net.conf with multiple inet...

peychart at netcourrier.com peychart at netcourrier.com
Sat May 20 10:18:50 UTC 2017


Hi,
I've done this patch for my own need. It allows to configure multiple network interfaces within the containers.

You can integrate it if you wish.

Exemple of use: 
cat >/etc/default/lxc-net <<@@@
USE_LXC_BRIDGE="true"
LXC_BRIDGE="lxcbr0"
LXC_ADDR="10.0.3.1"
LXC_NETMASK="255.255.255.0"
LXC_NETWORK="10.0.3.0/24"
LXC_BRIDGE[1]="lxcbr1"
LXC_ADDR[1]="10.0.4.1"
LXC_NETMASK[1]="255.255.255.0"
LXC_NETWORK[1]="10.0.4.0/24"
LXC_DHCP_RANGE="10.0.3.200,10.0.3.254"
LXC_DHCP_RANGE[1]="10.0.4.200,10.0.4.254"
LXC_DHCP_MAX="253"
@@@

Regard.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170520/7718c14c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: multinet.patch
Type: text/x-patch
Size: 3380 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170520/7718c14c/attachment.bin>


More information about the lxc-devel mailing list