From 64303a91c3d2a6659c0331ffcfaab1ddcdd532dd Mon Sep 17 00:00:00 2001 From: Kristof Provost Date: Sun, 14 Jul 2024 15:21:13 +0200 Subject: [PATCH] ansible: add dhcp config for mars network --- .../dhcpd-phobos.mars.sigsegv.be.conf | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 ansible/roles/router/templates/dhcpd-phobos.mars.sigsegv.be.conf 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 index 0000000..a1642a7 --- /dev/null +++ b/ansible/roles/router/templates/dhcpd-phobos.mars.sigsegv.be.conf @@ -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; +} -- 2.51.0