Splits the LAN into four /24 zones: 10.0.0.0/24 static (no DHCP, DNS only), 10.0.1.0/24 fixed DHCP reservations by MAC, 10.0.2.0/24 dynamic DHCP pool, 10.0.3.0/24 spare/unused. ipadm now derives the required subnet from whether a host has a MAC, auto-assigns free IPs, and auto-migrates a host's IP when its MAC is added/removed. Migrated the existing archerc80 reservation from 10.0.0.2 to 10.0.1.2. Also fixes a latent bug found while doing this: dnsmasq's SIGHUP (`systemctl reload`) only re-reads /etc/hosts, not the conf-dir files ipadm writes to, so config changes were silently not applied on reload. ipadm now restarts dnsmasq instead. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
26 lines
809 B
Plaintext
26 lines
809 B
Plaintext
# This file describes the network interfaces available on your system
|
|
# and how to activate them. For more information, see interfaces(5).
|
|
|
|
source /etc/network/interfaces.d/*
|
|
|
|
# The loopback network interface
|
|
auto lo
|
|
iface lo inet loopback
|
|
|
|
# The primary network interface
|
|
allow-hotplug enp3s0
|
|
iface enp3s0 inet static
|
|
address 141.14.140.128/20
|
|
gateway 141.14.128.128
|
|
# dns-* options are implemented by the resolvconf package, if installed
|
|
dns-nameservers 141.14.128.1
|
|
dns-search fhi.mpg.de
|
|
|
|
# LAN interface (Router/Gateway/DHCP/DNS für 10.0.0.0/22)
|
|
# Aufteilung: 10.0.0.0/24 statisch, 10.0.1.0/24 DHCP-Reservierungen (MAC),
|
|
# 10.0.2.0/24 dynamischer DHCP-Pool, 10.0.3.0/24 Reserve/unbenutzt.
|
|
# Details: siehe README.md im Router-Repo.
|
|
allow-hotplug enp7s0
|
|
iface enp7s0 inet static
|
|
address 10.0.0.1/22
|