| 22 | * mitty@precise:~$ ifconfig lxcbr0 |
| 23 | {{{ |
| 24 | lxcbr0 Link encap:Ethernet HWaddr 12:5e:23:12:4a:0f |
| 25 | inet addr:10.0.3.1 Bcast:10.0.3.255 Mask:255.255.255.0 |
| 26 | inet6 addr: fe80::105e:23ff:fe12:4a0f/64 Scope:Link |
| 27 | UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 |
| 28 | RX packets:0 errors:0 dropped:0 overruns:0 frame:0 |
| 29 | TX packets:7 errors:0 dropped:0 overruns:0 carrier:0 |
| 30 | collisions:0 txqueuelen:0 |
| 31 | RX bytes:0 (0.0 B) TX bytes:554 (554.0 B) |
| 32 | }}} |
| 33 | * /etc/default/lxc |
| 34 | {{{ |
| 35 | |
| 36 | USE_LXC_BRIDGE="true" |
| 37 | |
| 38 | |
| 39 | LXC_BRIDGE="lxcbr0" |
| 40 | LXC_ADDR="10.0.3.1" |
| 41 | LXC_NETMASK="255.255.255.0" |
| 42 | LXC_NETWORK="10.0.3.0/24" |
| 43 | LXC_DHCP_RANGE="10.0.3.2,10.0.3.254" |
| 44 | LXC_DHCP_MAX="253" |
| 45 | }}} |
| 46 | * /etc/lxc/lxc.conf |
| 47 | {{{ |
| 48 | lxc.network.type=veth |
| 49 | lxc.network.link=lxcbr0 |
| 50 | lxc.network.flags=up |
| 51 | }}} |