( ghostdog4ever | 2017. 10. 01., v – 07:17 )

LXC config:

# Distribution configuration
lxc.include = /usr/share/lxc/config/ubuntu.common.conf
lxc.arch = x86_64

# Container specific configuration
lxc.rootfs = /dev/vgricodata/dbsys
lxc.rootfs.backend = lvm
lxc.utsname = db
lxc.start.auto = 1
lxc.start.order = 5

# Network configuration
lxc.network.type = veth
lxc.network.link = br0
lxc.network.flags = up
lxc.network.hwaddr = 00:16:3e:f7:5b:45
lxc.network.ipv4.address = 192.168.2.23/24
lxc.network.ipv4.gateway = 192.168.2.1

interfaces:

# The loopback network interface
auto lo
iface lo inet loopback

#auto eth0
#iface eth0 inet dhcp

auto eth0
iface eth0 inet static
address 192.168.2.23
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
gateway 192.168.2.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.2.1
dns-search zero.lan