Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Change the range and enable reservations in /etc/default/lxc-net. Start by backing up per Bonsai Framework convention,

Code Block
languagebash
 sudo cp /etc/default/lxc-net /etc/default/lxc-net.ori

First change the range (LXC_DHCP_RANGE) and the maximum lease # (LXC_DHCP_MAX) to make available 10.0.3.2 to 10.0.3.99 for static assignment,

Code Block
languagebash
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.100,10.0.3.254"
LXC_DHCP_MAX="155"

...