Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /etc/default/lxc-net
- # This file is auto-generated by lxc.postinst if it does not
- # exist. Customizations will not be overridden.
- # Leave USE_LXC_BRIDGE as "true" if you want to use lxcbr0 for your
- # containers. Set to "false" if you'll use virbr0 or another existing
- # bridge, or mavlan to your host's NIC.
- USE_LXC_BRIDGE="true"
- # If you change the LXC_BRIDGE to something other than lxcbr0, then
- # you will also need to update your /etc/lxc/default.conf as well as the
- # configuration (/var/lib/lxc/<container>/config) for any containers
- # already created using the default config to reflect the new bridge
- # name.
- # If you have the dnsmasq daemon installed, you'll also have to update
- # /etc/dnsmasq.d/lxc and restart the system wide dnsmasq daemon.
- 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.2,10.0.3.254"
- LXC_DHCP_MAX="253"
- # Uncomment the next line if you'd like to use a conf-file for the lxcbr0
- # dnsmasq. For instance, you can use 'dhcp-host=mail1,10.0.3.100' to have
- # container 'mail1' always get ip address 10.0.3.100.
- LXC_DHCP_CONFILE=/etc/lxc/dnsmasq.conf
- # Uncomment the next line if you want lxcbr0's dnsmasq to resolve the .lxc
- # domain. You can then add "server=/lxc/10.0.3.1' (or your actual $LXC_ADDR)
- # to your system dnsmasq configuration file (normally /etc/dnsmasq.conf,
- # or /etc/NetworkManager/dnsmasq.d/lxc.conf on systems that use NetworkManager).
- # Once these changes are made, restart the lxc-net and network-manager services.
- # 'container1.lxc' will then resolve on your host.
- #LXC_DOMAIN="lxc"
- #LXC_IPV6_ADDR="2a03:4000:7:a3:101:1/80"
- #LXC_IPV6_MASK="80"
- #LXC_IPV6_NETWORK="2a03:4000:7:a3:101:2/80"
- #LXC_IPV6_NAT="false"
- /etc/lxc/dnsmasq.conf
- # static leases
- # dhcp-host=[][,id:|*][,set:][,][,][,][,ignore]
- dhcp-host=00:16:3e:c2:3c:3a,10.0.3.12,ftp,7200
- dhcp-host=00:16:3e:64:37:07,10.0.3.14,mumble,7200
- dhcp-host=00:16:3e:c6:61:76,10.0.3.15,redis,7200
- dhcp-host=00:16:3e:36:bd:77,10.0.3.16,web,7200
- dhcp-host=00:16:3e:37:80:7a,10.0.3.17,znc,7200
- dhcp-host=00:16:3e:ee:1c:81,10.0.3.18,sauerbraten,7200
- dhcp-host=00:16:3e:a1:4e:20,10.0.3.19,inexor,7200
- dhcp-host=00:16:3e:0f:b2:b2,10.0.3.20,letsencrypt,7200
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement