From 4f8187997adb6fcf03f6da08bab3e18995d581e9 Mon Sep 17 00:00:00 2001 From: Tine Date: Thu, 7 Nov 2024 21:24:44 +0100 Subject: [PATCH] feat(dhcp): static ip configuration --- README.md | 4 ++++ openwrt/etc/config/dhcp | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/README.md b/README.md index dc977e9..11cb6d8 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,10 @@ just deploy-config jakku 10.0.32.1 fd74:6a6f:0:2000:: just deploy-config nevaroo 10.0.48.1 fd74:6a6f:0:3000:: ``` +# Static Internal IP Addresses + +Any VM that requires a static IP, can add it's configuration to `openwrt/etc/config/dhcp`. + # TODO ## Use gitops for tailscale ACL. diff --git a/openwrt/etc/config/dhcp b/openwrt/etc/config/dhcp index a17c0e9..87f1290 100644 --- a/openwrt/etc/config/dhcp +++ b/openwrt/etc/config/dhcp @@ -37,3 +37,23 @@ config odhcpd 'odhcpd' option leasefile '/tmp/hosts/odhcpd' option leasetrigger '/usr/sbin/odhcpd-update' option loglevel '4' + +### +# STATIC LEASES +### + +### ingress.tjo.cloud +config host + option name 'nevaroo.ingress.tjo.cloud' + option ip '10.0.49.171' + option mac 'AA:BB:07:00:45:36' + +config host + option name 'jakuu.ingress.tjo.cloud' + option ip '10.0.35.19' + option mac 'AA:BB:07:00:8A:AF' + +config host + option name 'batuu.ingress.tjo.cloud' + option ip '10.0.19.126' + option mac 'AA:BB:07:00:F7:37'