Page tree

Versions Compared

Key

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

...

Specify static IPs per container name (you can also use the container's mac address in situations of multiple network interfaces) (I have not tried or tested yet). To avoid conflicts, make sure the static IP addresses are outside of the range specified in /etc/default/lxc-net. In case of multiple ip addresses look at LXC Advanced Networking.

Make sure to turn off You need to shutdown your containers and then restart the Host OS . It seems though, that a certain amount of time is needed for whatever is touching lxc-net to register the changes. (find out how to flush this).

I have read that there are ways to apply the changes without a restart but have not yet tested myself. The steps I have read are,

...

languagebash

...

or flush the DNS Mask,

Include Page
Flush DNS Mask to Apply Changes
Flush DNS Mask to Apply Changes

Make sure everything restarted fine without errors. I had run into forgetting to change LXC_DHCP_MAX which resulted in lxc-dhcp not starting,

Code Block
languagebash
# Search boot log for errors,
... to put here ... 

...