Changes between Version 3 and Version 4 of TipAndDoc/Linux/LXC


Ignore:
Timestamp:
Aug 7, 2012 10:10:42 PM (12 years ago)
Author:
mitty
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TipAndDoc/Linux/LXC

    v3 v4  
    2020Need to get 2,873 kB of archives. After unpacking 16.1 MB will be used. 
    2121}}} 
     22 * mitty@precise:~$ ifconfig lxcbr0 
     23{{{ 
     24lxcbr0    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 
     36USE_LXC_BRIDGE="true" 
     37 
     38 
     39LXC_BRIDGE="lxcbr0" 
     40LXC_ADDR="10.0.3.1" 
     41LXC_NETMASK="255.255.255.0" 
     42LXC_NETWORK="10.0.3.0/24" 
     43LXC_DHCP_RANGE="10.0.3.2,10.0.3.254" 
     44LXC_DHCP_MAX="253" 
     45}}} 
     46  * /etc/lxc/lxc.conf 
     47{{{ 
     48lxc.network.type=veth 
     49lxc.network.link=lxcbr0 
     50lxc.network.flags=up 
     51}}}