Lab topology change for the WiFi AP: the onboard Ethernet port is the WAN (netifd dhcp, metric 10), served by archy-dev-pa's NetworkManager shared connection (Pi at 10.42.0.2); the WiFi client uplink stays as wwan (metric 20) in the wan zone; br-lan keeps 192.168.10.1 with no wired port (bridge_empty) until the AP joins it. Seeds and rpi4.scm updated; the live Pi was changed with uci over the WiFi path first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
67 lines
2.1 KiB
Plaintext
67 lines
2.1 KiB
Plaintext
# Seeded by Guix on first activation (uci-service-type); owned by UCI after
|
|
# that (LuCI: Network > DHCP and DNS). `uci commit dhcp; reload_config'
|
|
# reloads dnsmasq and odhcpd.
|
|
#
|
|
# Split as on OpenWrt: dnsmasq serves DHCPv4 and DNS, rendered from this
|
|
# file by OpenWrt's init script (openwrt-dnsmasq-service-type); odhcpd
|
|
# serves IPv6 -- router advertisements and DHCPv6 -- on lan, from the prefix
|
|
# netifd assigns it (the ULA in network.globals until an upstream prefix
|
|
# exists). maindhcp 0: odhcpd's DHCPv4 server stays off.
|
|
|
|
# OpenWrt's stock section, except: resolvfile is where netifd writes the
|
|
# upstream servers here (-r /etc/resolv.conf), and nonwildcard 0 -- dnsmasq
|
|
# binds the wildcard address, as --bind-dynamic missed br-lan's address at
|
|
# boot (PITFALLS #37); localservice and the firewall keep the WAN out.
|
|
config dnsmasq
|
|
option domainneeded '1'
|
|
option boguspriv '1'
|
|
option filterwin2k '0'
|
|
option localise_queries '1'
|
|
option rebind_protection '1'
|
|
option rebind_localhost '1'
|
|
option local '/lan/'
|
|
option domain 'lan'
|
|
option expandhosts '1'
|
|
option nonegcache '0'
|
|
option cachesize '1000'
|
|
option authoritative '1'
|
|
option readethers '1'
|
|
option leasefile '/tmp/dhcp.leases'
|
|
option resolvfile '/etc/resolv.conf'
|
|
option nonwildcard '0'
|
|
option localservice '1'
|
|
option ednspacket_max '1232'
|
|
option filter_aaaa '0'
|
|
option filter_a '0'
|
|
|
|
config odhcpd 'odhcpd'
|
|
option maindhcp '0'
|
|
option leasefile '/tmp/odhcpd.leases'
|
|
# dnsmasq reads hostsdir (--addn-hosts); the trigger makes it reread.
|
|
option leasetrigger '/run/current-system/profile/sbin/odhcpd-update'
|
|
option hostsdir '/tmp/hosts'
|
|
option piodir '/tmp/odhcpd-piodir'
|
|
option loglevel '4'
|
|
|
|
# DHCPv4 range .100-.200 (dnsmasq); dhcpv4 'server' is for dnsmasq --
|
|
# odhcpd ignores it while maindhcp is 0.
|
|
config dhcp 'lan'
|
|
option interface 'lan'
|
|
option start '100'
|
|
option limit '101'
|
|
option leasetime '12h'
|
|
option dhcpv4 'server'
|
|
option dhcpv6 'server'
|
|
option ra 'server'
|
|
option ra_slaac '1'
|
|
list ra_flags 'managed-config'
|
|
list ra_flags 'other-config'
|
|
|
|
config dhcp 'wan'
|
|
option interface 'wan'
|
|
option ignore '1'
|
|
|
|
config dhcp 'wwan'
|
|
option interface 'wwan'
|
|
option ignore '1'
|