How to create multiple network interfaces in an LXC container.

You can specify more than one interface in your lxc configuration file.  Just add the interfaces one after the other and use lxc-create to create your container, like this: = 1500 = veth = eth0 = br0 = = up = veth = br1 = = eth1 = up

Inside your container, if you do an ifconfig, you should see two network interfaces.

This was not documented very well and I found this after a bit of frustrated googling.


This entry was posted in lxc and tagged , . Bookmark the permalink.

Comments are closed.