From c938702268e483c107b1b4b01554f33f421164ff Mon Sep 17 00:00:00 2001 From: Radar231 Date: Sun, 1 Aug 2021 17:55:28 -0400 Subject: [PATCH] Initial checkin --- README.md | 7 +++ dhcpd_data/dhcpd.conf | 109 ++++++++++++++++++++++++++++++++++++++++++ docker-compose.yml | 17 +++++++ 3 files changed, 133 insertions(+) create mode 100644 README.md create mode 100644 dhcpd_data/dhcpd.conf create mode 100644 docker-compose.yml diff --git a/README.md b/README.md new file mode 100644 index 0000000..967dc1c --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# dhcpd docker deployment + +## Introduction + +This docker-compose configuration will deploy a dhcpd server for my internal +LAN. + diff --git a/dhcpd_data/dhcpd.conf b/dhcpd_data/dhcpd.conf new file mode 100644 index 0000000..3ee20f1 --- /dev/null +++ b/dhcpd_data/dhcpd.conf @@ -0,0 +1,109 @@ +authoritative; + +default-lease-time 7200; +max-lease-time 7200; + +subnet 192.168.7.0 netmask 255.255.255.0 { + option routers 192.168.7.1; + option subnet-mask 255.255.255.0; + range 192.168.7.100 192.168.7.199; + option broadcast-address 192.168.7.255; + option domain-name-servers 192.168.7.41, 192.168.7.42; + option domain-name "lan"; + option domain-search "lan"; +} + +############################################# +# Static IP DHCP Leases + +# DC:85:DE:52:7C:F7 192.168.7.120 +host lister.lan { + hardware ethernet DC:85:DE:52:7C:F7; + fixed-address 192.168.7.120; +} + +# C0:84:7D:2F:7E:9A 192.168.7.121 +host cat.lan { + hardware ethernet C0:84:7D:2F:7E:9A; + fixed-address 192.168.7.121; +} + +# 78:E4:00:43:1C:03 192.168.7.122 +host holly.lan { + hardware ethernet 78:E4:00:43:1C:03; + fixed-address 192.168.7.122; +} + +# 52:54:00:FE:82:8B 192.168.7.123 +host mate-desktop.lan { + hardware ethernet 52:54:00:FE:82:8B; + fixed-address 192.168.7.123; +} + +# 5A:EA:2D:EE:C1:6A 192.168.7.131 +host cell-r.lan { + hardware ethernet 5A:EA:2D:EE:C1:6A; + fixed-address 192.168.7.131; +} + +# 46:BB:04:68:46:53 192.168.7.132 +host cell-d.lan { + hardware ethernet 46:BB:04:68:46:53; + fixed-address 192.168.7.132; +} + +# D0:AB:D5:C1:98:19 192.168.7.133 +host d-laptop.lan { + hardware ethernet D0:AB:D5:C1:98:19; + fixed-address 192.168.7.133; +} + +# A0:CE:C8:DB:BF:16 192.168.7.135 +host chromecase-fr.lan { + hardware ethernet A0:CE:C8:DB:BF:16; + fixed-address 192.168.7.135; +} + +# 6C:AD:F8:AA:59:A6 192.168.7.136 +host chromecast-ba.lan { + hardware ethernet 6C:AD:F8:AA:59:A6; + fixed-address 192.168.7.136; +} + +# C4:4F:33:CA:A3:CC 192.168.7.137 +host tas_wkshp_light.cam { + hardware ethernet C4:4F:33:CA:A3:CC; + fixed-address 192.168.7.137; +} + +# 2C:AA:8E:A1:A1:9A 192.168.7.138 +host garage-cam.lan { + hardware ethernet 2C:AA:8E:A1:A1:9A; + fixed-address 192.168.7.138; +} + +# 00:18:DD:03:97:4C 192.168.7.139 +host hdhomerun.lan { + hardware ethernet 00:18:DD:03:97:4C; + fixed-address 192.168.7.139; +} + +# C0:C9:E3:74:F9:B8 192.168.7.151 +host deco-lr.lan { + hardware ethernet C0:C9:E3:74:F9:B8; + fixed-address 192.168.7.151; +} + +# C0:C9:E3:74:F9:B0 192.168.7.152 +host deco-fr.lan { + hardware ethernet C0:C9:E3:74:F9:B0; + fixed-address 192.168.7.152; +} + +# C0:C9:E3:74:F8:14 192.168.7.153 +host deco-off.lan { + hardware ethernet C0:C9:E3:74:F8:14; + fixed-address 192.168.7.153; +} + +# EOF diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..cc1b035 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,17 @@ +version: '3.2' + +services: + dhcpd: + container_name: dhcpd + network_mode: host + image: networkboot/dhcpd + volumes: + - /home/rmorrow/docker/dhcpd/dhcpd_data:/data + restart: unless-stopped + environment: + - PUID=1000 + - PGID=1000 + - TZ=America/Toronto + + +# EOF