dhcpd.conf 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. #
  2. # ISC dhcpd config file for NP
  3. #
  4. #
  5. # The ddns-updates-style parameter controls whether or not the server will
  6. # attempt to do a DNS update when a lease is confirmed. We default to the
  7. # behavior of the version 2 packages ('none', since DHCP v2 didn't
  8. # have support for DDNS.)
  9. ddns-update-style none;
  10. # option definitions common to all supported networks...
  11. option domain-name "np.sahajayoga.at";
  12. option domain-name-servers 8.8.8.8, 8.8.4.4;
  13. default-lease-time 600;
  14. max-lease-time 7200;
  15. # If this DHCP server is the official DHCP server for the local
  16. # network, the authoritative directive should be uncommented.
  17. authoritative;
  18. # Use this to send dhcp log messages to a different log file (you also
  19. # have to hack syslog.conf to complete the redirection).
  20. log-facility local7;
  21. lease-file-name "/var/lib/dhcp/dhcpd.leases";
  22. # Unifi stuff
  23. option space ubnt;
  24. option ubnt.unifi-address code 1 = ip-address;
  25. # Ashram Subnetz
  26. subnet 10.21.0.0 netmask 255.255.255.0 {
  27. range 10.21.0.10 10.21.0.250;
  28. option broadcast-address 10.21.0.255;
  29. option routers 10.21.0.254;
  30. default-lease-time 3600;
  31. max-lease-time 10800;
  32. option domain-name "ashram.np.sahajayoga.at";
  33. #option domain-name-servers 10.21.1.254;
  34. #interface "eth0.210";
  35. }
  36. # np-technik Subnetz
  37. subnet 10.21.1.0 netmask 255.255.255.0 {
  38. range 10.21.1.10 10.21.1.250;
  39. option broadcast-address 10.21.1.255;
  40. option routers 10.21.1.254;
  41. default-lease-time 3600;
  42. max-lease-time 10800;
  43. option domain-name "technik.np.sahajayoga.at";
  44. #option domain-name-servers 10.21.1.254;
  45. #interface "eth0.211";
  46. }
  47. # np-media Subnetz
  48. subnet 10.21.2.0 netmask 255.255.255.0 {
  49. range 10.21.2.20 10.21.2.250;
  50. option broadcast-address 10.21.2.255;
  51. option routers 10.21.2.254;
  52. default-lease-time 3600;
  53. max-lease-time 10800;
  54. option domain-name "media.np.sahajayoga.at";
  55. #option domain-name-servers 10.21.2.254;
  56. #interface "eth0.212";
  57. host streamingPC {
  58. hardware ethernet 00:26:c7:77:4a:62;
  59. fixed-address 10.21.2.160;
  60. }
  61. }
  62. # nirmalprasth guest Subnetz
  63. subnet 10.21.4.0 netmask 255.255.254.0 {
  64. range 10.21.4.10 10.21.5.200;
  65. option broadcast-address 10.21.5.255;
  66. option routers 10.21.5.254;
  67. default-lease-time 3600;
  68. max-lease-time 10800;
  69. option domain-name "lan.np.sahajayoga.at";
  70. #option domain-name-servers 10.21.5.254;
  71. #interface "eth0.214";
  72. #next-server 10.21.4.2;
  73. }
  74. # Uplink Subnet
  75. subnet 10.0.0.0 netmask 255.255.255.0 {
  76. range 10.0.0.140 10.0.0.250;
  77. option broadcast-address 192.168.0.255;
  78. option routers 10.0.0.138;
  79. default-lease-time 3600;
  80. max-lease-time 10800;
  81. option domain-name "ashram.np.sahajayoga.at";
  82. option ubnt.unifi-address 144.76.238.58;
  83. #option domain-name-servers 10.0.0.254;
  84. #interface eth0.210;
  85. # only allow known clients
  86. # deny unknown-clients;
  87. # install ubuntu
  88. #filename "/pxelinux";
  89. ###############################################################################
  90. # Mac addresses of all collective items
  91. ###############################################################################
  92. host router_anand {
  93. hardware ethernet 58:6d:8f:a5:24:c1;
  94. fixed-address 10.0.0.240;
  95. }
  96. host a1modem {
  97. hardware ethernet 7c:39:53:95:bb:dc;
  98. fixed-address 10.0.0.138;
  99. }
  100. host npcoreswitch {
  101. hardware ethernet 44:d9:e7:f5:50:7b;
  102. fixed-address 10.0.0.251;
  103. }
  104. host orangepi {
  105. hardware ethernet 76:cd:89:ae:e2:ec;
  106. fixed-address 10.0.0.254;
  107. }
  108. }
  109. ###############################################################################
  110. # Mac addresses of all devices from the ashramites
  111. ###############################################################################