#ブリッジを作成し、物理IFをブリッジポートへ紐付ける
$ sudo vi /etc/network/interfaces
auto lo
iface lo inet loopback
auto br0
iface br0 inet static
address 192.168.xxx.192
network 192.168.xxx.0
netmask 255.255.255.0
broadcast 192.168.xxx.255
gateway 192.168.xxx.1
dns-nameservers 192.168.xxx.1
bridge_ports eth0
bridge_stp off
auto eth0
iface eth0 inet manual
$ sudo vi /etc/lxc/default.conf
#lxc.network.link=lxcbr0
lxc.network.link=br0
$ sudo vi /etc/default/lxc-net
#USE_LXC_BRIDGE="true"
USE_LXC_BRIDGE=“false”
..
#LXC_BRIDGE="lxcbr0"
#LXC_ADDR="10.0.3.1"
#LXC_NETMASK="255.255.255.0"
#LXC_NETWORK="10.0.3.0/24"
#LXC_DHCP_RANGE="10.0.3.2,10.0.3.254"
0 件のコメント:
コメントを投稿