more lxc docs

Signed-off-by: Mathieu Le Marec - Pasquet <kiorky@cryptelium.net>
This commit is contained in:
Mathieu Le Marec - Pasquet 2015-05-23 15:19:54 +02:00
parent ef1f95231a
commit 458b18b7e6

View file

@ -250,9 +250,28 @@ Thus you ll need
lxc.network_profile.foo:
etho:
link: lxcbr0
link: lxcbr0
ipv4.gateway: auto
Tricky network setups Examples
-----------------------------------
This example covers how to make a container with both an internal ip and a
public routable ip, wired on two veth pairs.
The another interface which receives directly a public routable ip can't be on
the first interface that we reserve for private inter LXC networking.
.. code-block:: yaml
lxc.network_profile.foo:
eth0: {gateway: null, bridge: lxcbr0}
eth1:
# replace that by your main interface
'link': 'br0'
'mac': '00:16:5b:01:24:e1'
'gateway': '2.20.9.14'
'ipv4': '2.20.9.1'
Creating a Container on the CLI
===============================