Changes between Version 11 and Version 12 of TipAndDoc/Linux/LXC


Ignore:
Timestamp:
Oct 12, 2012 6:53:52 PM (12 years ago)
Author:
mitty
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TipAndDoc/Linux/LXC

    v11 v12  
    326326 = two NICs in one container = 
    327327 * [http://www.mail-archive.com/lxc-users@lists.sourceforge.net/msg02037.html Re: (Lxc-users) two NICs in container] 
     328 
     329 == example == 
     330 * 通常のbridge(veth)ではなくmacvlanであるが、vethでも同じはず 
     331 
     332 * /var/lib/lxc/test/config 
     333{{{ 
     334lxc.network.type=macvlan 
     335lxc.network.macvlan.mode=bridge 
     336lxc.network.link=em1 
     337lxc.network.flags=up 
     338lxc.network.hwaddr = 00:16:3e:85:2e:da 
     339lxc.network.type=macvlan 
     340lxc.network.macvlan.mode=bridge 
     341lxc.network.link=em1 
     342lxc.network.flags=up 
     343lxc.network.hwaddr = 00:16:3e:85:2e:db 
     344}}} 
     345 
     346 * mitty@test:~$ ifconfig -a | egrep 'addr|Link' 
     347{{{ 
     348eth0      Link encap:Ethernet  HWaddr 00:16:3e:85:2e:da 
     349          inet addr:192.168.83.207  Bcast:192.168.83.255  Mask:255.255.255.0 
     350          inet6 addr: fe80::216:3eff:fe85:2eda/64 Scope:Link 
     351eth1      Link encap:Ethernet  HWaddr 00:16:3e:85:2e:db 
     352          inet addr:192.168.83.212  Bcast:192.168.83.255  Mask:255.255.255.0 
     353          inet6 addr: fe80::216:3eff:fe85:2edb/64 Scope:Link 
     354lo        Link encap:Local Loopback 
     355          inet addr:127.0.0.1  Mask:255.0.0.0 
     356          inet6 addr: ::1/128 Scope:Host 
     357}}} 
     358mitty@test:~$ ip route 
     359{{{ 
     360default via 192.168.83.243 dev eth0 
     361192.168.83.0/24 dev eth0  proto kernel  scope link  src 192.168.83.207 
     362192.168.83.0/24 dev eth1  proto kernel  scope link  src 192.168.83.212 
     363}}}