Page tree

Versions Compared

Key

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

...

Code Block
languagebash
sudo cp
sudo sed -i 's/LXD_CONFILE=""/LXD_CONFILE=""' /etc/default/lxd-bridge

Also, change the default DHCP range,

Code Block
languagebash
putsudo insed snippet here-i 's/LXD_IPV4_DHCP_RANGE="10.232.27.2,10.232.27.254"/LXD_IPV4_DHCP_RANGE="10.232.27.100,10.232.27.254"' /etc/default/lxd-bridge

This will make available 10.232.27.3 to 10.232.99.

Reference

http://jason.trickett.us/2016/08/lxd-containers-static-ip-addresses-heres/ - Source article for this but missing some details on changing the default range otherwise you'll end up with collisions.