use a different range of IP for LXC

This commit is contained in:
Earl Warren 2023-03-25 18:23:43 +01:00
parent 3e607698b4
commit f429ed3bf3
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -17,10 +17,10 @@ function install_lxc() {
apt-get install -y -qq lxc
systemctl stop lxc-net
cat >> /etc/default/lxc-net <<'EOF'
LXC_ADDR="10.0.7.1"
LXC_ADDR="10.0.8.1"
LXC_NETMASK="255.255.255.0"
LXC_NETWORK="10.0.7.0/24"
LXC_DHCP_RANGE="10.0.7.2,10.0.7.254"
LXC_NETWORK="10.0.8.0/24"
LXC_DHCP_RANGE="10.0.8.2,10.0.8.254"
LXC_DHCP_MAX="253"
EOF
systemctl start lxc-net