ansible: add dhcp config for mars network
authorKristof Provost <kp@FreeBSD.org>
Sun, 14 Jul 2024 13:21:13 +0000 (15:21 +0200)
committerKristof Provost <kp@FreeBSD.org>
Sun, 14 Jul 2024 13:21:13 +0000 (15:21 +0200)
ansible/roles/router/templates/dhcpd-phobos.mars.sigsegv.be.conf [new file with mode: 0644]

diff --git a/ansible/roles/router/templates/dhcpd-phobos.mars.sigsegv.be.conf b/ansible/roles/router/templates/dhcpd-phobos.mars.sigsegv.be.conf
new file mode 100644 (file)
index 0000000..a1642a7
--- /dev/null
@@ -0,0 +1,55 @@
+# dhcpd.conf
+#
+
+# option definitions common to all supported networks...
+option domain-name "mars.sigsegv.be";
+option domain-name-servers 10.0.3.1;
+
+option custom-lan-0 code 43 = string;
+
+default-lease-time 6000;
+max-lease-time 7200;
+
+# Use this to enble / disable dynamic dns updates globally.
+#ddns-update-style none;
+
+# If this DHCP server is the official DHCP server for the local
+# network, the authoritative directive should be uncommented.
+authoritative;
+
+# Use this to send dhcp log messages to a different log file (you also
+# have to hack syslog.conf to complete the redirection).
+log-facility local7;
+
+# No service will be given on this subnet, but declaring it helps the
+# DHCP server to understand the network topology.
+
+subnet 10.0.3.0 netmask 255.255.255.0 {
+       range 10.0.3.10 10.0.3.200;
+       option routers 10.0.3.1;
+       option custom-lan-0 01:04:AC:10:03:04;
+}
+
+host deimos {
+  hardware ethernet c:4a:92:77:a6:db;
+  fixed-address 10.0.3.2;
+}
+host deimos-ipmi {
+  hardware ethernet 98:4b:e1:0e:d3:e3;
+  fixed-address 10.0.3.3;
+}
+
+host unifi-living {
+  hardware ethernet 78:8a:20:f0:e6:0a;
+  fixed-address 10.0.3.4;
+}
+
+host unifi-zolder {
+  hardware ethernet f4:92:bf:c0:b6:25;
+  fixed-address 10.0.3.5;
+}
+
+host airport-slaapkamer {
+  hardware ethernet 20:c9:d0:9a:f8:47;
+  fixed-address 10.0.3.234;
+}