Skip to content

Instantly share code, notes, and snippets.

@milisarge
Last active December 4, 2021 10:37
Show Gist options
  • Save milisarge/f00bf1d2dc5d97fc38e0eb2a8662a7a8 to your computer and use it in GitHub Desktop.
Save milisarge/f00bf1d2dc5d97fc38e0eb2a8662a7a8 to your computer and use it in GitHub Desktop.
LXC static ip config
# Template used to create this container: /usr/share/lxc/templates/lxc-download
# Parameters passed to the template: -d alpine -r edge -a amd64
# Template script checksum (SHA-1): 985e49018f4037a7854e89877ba09c4fe6c57af5
# For additional config options, please look at lxc.container.conf(5)
# Uncomment the following line to support nesting containers:
#lxc.include = /usr/share/lxc/config/nesting.conf
# (Be aware this has security implications)
# Uncomment to create unprivileged containers
# Network configuration
# Distribution configuration
lxc.include = /usr/share/lxc/config/common.conf
lxc.arch = linux64
# Container specific configuration
#lxc.idmap = u 0 100000 65536
#lxc.idmap = g 0 100000 65536
lxc.rootfs.path = dir:/var/lib/lxc/node1/rootfs
lxc.uts.name = node1
# Network configuration
lxc.net.0.type = veth
lxc.net.0.link = lxcbr0
lxc.net.0.flags = up
lxc.net.0.ipv4.address = 10.0.3.222/24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment