Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.22 KB | None | 0 0
  1. /etc/default/lxc-net
  2. # This file is auto-generated by lxc.postinst if it does not
  3. # exist.  Customizations will not be overridden.
  4. # Leave USE_LXC_BRIDGE as "true" if you want to use lxcbr0 for your
  5. # containers.  Set to "false" if you'll use virbr0 or another existing
  6. # bridge, or mavlan to your host's NIC.
  7. USE_LXC_BRIDGE="true"
  8.  
  9. # If you change the LXC_BRIDGE to something other than lxcbr0, then
  10. # you will also need to update your /etc/lxc/default.conf as well as the
  11. # configuration (/var/lib/lxc/<container>/config) for any containers
  12. # already created using the default config to reflect the new bridge
  13. # name.
  14. # If you have the dnsmasq daemon installed, you'll also have to update
  15. # /etc/dnsmasq.d/lxc and restart the system wide dnsmasq daemon.
  16. LXC_BRIDGE="lxcbr0"
  17. LXC_ADDR="10.0.3.1"
  18. LXC_NETMASK="255.255.255.0"
  19. LXC_NETWORK="10.0.3.0/24"
  20. LXC_DHCP_RANGE="10.0.3.2,10.0.3.254"
  21. LXC_DHCP_MAX="253"
  22. # Uncomment the next line if you'd like to use a conf-file for the lxcbr0
  23. # dnsmasq.  For instance, you can use 'dhcp-host=mail1,10.0.3.100' to have
  24. # container 'mail1' always get ip address 10.0.3.100.
  25. LXC_DHCP_CONFILE=/etc/lxc/dnsmasq.conf
  26.  
  27. # Uncomment the next line if you want lxcbr0's dnsmasq to resolve the .lxc
  28. # domain.  You can then add "server=/lxc/10.0.3.1' (or your actual $LXC_ADDR)
  29. # to your system dnsmasq configuration file (normally /etc/dnsmasq.conf,
  30. # or /etc/NetworkManager/dnsmasq.d/lxc.conf on systems that use NetworkManager).
  31. # Once these changes are made, restart the lxc-net and network-manager services.
  32. # 'container1.lxc' will then resolve on your host.
  33. #LXC_DOMAIN="lxc"
  34.  
  35. #LXC_IPV6_ADDR="2a03:4000:7:a3:101:1/80"
  36. #LXC_IPV6_MASK="80"
  37. #LXC_IPV6_NETWORK="2a03:4000:7:a3:101:2/80"
  38. #LXC_IPV6_NAT="false"
  39.  
  40. /etc/lxc/dnsmasq.conf
  41. # static leases
  42. # dhcp-host=[][,id:|*][,set:][,][,][,][,ignore]
  43. dhcp-host=00:16:3e:c2:3c:3a,10.0.3.12,ftp,7200
  44. dhcp-host=00:16:3e:64:37:07,10.0.3.14,mumble,7200
  45. dhcp-host=00:16:3e:c6:61:76,10.0.3.15,redis,7200
  46. dhcp-host=00:16:3e:36:bd:77,10.0.3.16,web,7200
  47. dhcp-host=00:16:3e:37:80:7a,10.0.3.17,znc,7200
  48. dhcp-host=00:16:3e:ee:1c:81,10.0.3.18,sauerbraten,7200
  49. dhcp-host=00:16:3e:a1:4e:20,10.0.3.19,inexor,7200
  50. dhcp-host=00:16:3e:0f:b2:b2,10.0.3.20,letsencrypt,7200
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement