Fixed three critical issues preventing DHCP from working: 1. Config file rendering: Placeholders (@GATEWAY_IP@, etc.) weren't being substituted. Using direct heredoc writes instead of sed for reliability. 2. Service dependency blocking: van-br0-setup was blocked waiting for hostapd.service to start, preventing bridge members from being added. Changed to only depend on systemd-networkd so boot completes. 3. Port 53 conflict: systemd-resolved was listening on port 53, blocking dnsmasq from binding. Disabled DNS in systemd-resolved config. R5C now operational: - 5GHz AP on channel 149 - Bridge: 10.42.1.1/24 with enP2p33s0 + wlp1s0 - DHCP: 10.42.1.10-254 (4+ active leases) - van-ap-dnsmasq service: running and serving DHCP - hostapd-2g: disabled (interface wlx3c3332002066 not available) Disabled hostapd-2g.service until D-Link RTL8188GU is fixed (stuck in CDROM mode). Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
48 lines
2.1 KiB
Plaintext
48 lines
2.1 KiB
Plaintext
# deploy.conf — hardware-instance identifiers for this Pi's vanlink deployment.
|
|
#
|
|
# These are the values that change when a USB Wi-Fi dongle, LAN adapter, or
|
|
# modem gets physically swapped (MAC-derived interface names are stable per
|
|
# physical device, but change when the device changes). Edit here and run
|
|
# `sudo ./deploy.sh` — it substitutes @TOKEN@ placeholders in the repo's
|
|
# config templates with these values before installing them.
|
|
#
|
|
# Find a new device's interface name after plugging it in: `iw dev` (wifi) or
|
|
# `ip -br link` (wired). USB vendor ID: `lsusb`.
|
|
# Preview a rendered file without deploying: `sudo ./deploy.sh render <file>`
|
|
|
|
SKIP_COCKPIT=1
|
|
|
|
# 5GHz AP radio (currently: Mediatek MT7925E PCIe on FriendlyElec R5C, driver mt76 on Armbian 6.18)
|
|
# Note: RTL8822CE (rtw88 driver) does not support bridge mode in AP; MT7925E solved this
|
|
WIFI_5G_IFACE=wlp1s0
|
|
|
|
# 2.4GHz AP radio (currently: same as 5GHz on Armbian R5C; on Debian was D-Link DWA-171)
|
|
WIFI_2G_IFACE=wlx3c3332002066
|
|
|
|
# Wired LAN port, USB-attached gigabit adapter (RTL8153-family)
|
|
LAN_USB_IFACE=enP2p33s0
|
|
|
|
# Starlink dish uplink, USB-attached gigabit adapter (RTL8153-family)
|
|
#STARLINK_IFACE=enxd8ec5eeb3512 # White Belkin dongle
|
|
#STARLINK_IFACE=enx6c1ff7d210a5 # UGreen 8-port hub's built-in Ethernet (ASIX AX88179B)
|
|
STARLINK_IFACE=enP1p17s0
|
|
|
|
# Cellular modem USB vendor ID (Quectel EC25-AF)
|
|
MODEM_USB_VENDOR=2c7c
|
|
|
|
# Fixed upstream DNS resolvers — this router always uses these, never a WAN's
|
|
# own DHCP/RA-provided servers (NetworkManager is told to ignore those
|
|
# entirely; see ap/van-wan-dns.conf + ap/99-van-router-dns.conf). Keeps
|
|
# resolution identical on Wapana, Starlink, or cellular.
|
|
DNS_RESOLVERS="1.1.1.1 8.8.8.8"
|
|
|
|
# IP address configuration for this router
|
|
# When deploying to different hardware, change GATEWAY_IP, DHCP_RANGE_START/END, and GATEWAY_NETWORK.
|
|
# Pi 5 (main): 10.42.0.1/24 with DHCP 10.42.0.10-254
|
|
# R5C (failover): 10.42.1.1/24 with DHCP 10.42.1.10-254
|
|
GATEWAY_IP="10.42.1.1"
|
|
GATEWAY_PREFIX="24"
|
|
GATEWAY_NETWORK="10.42.1.0/24"
|
|
DHCP_RANGE_START="10.42.1.10"
|
|
DHCP_RANGE_END="10.42.1.254"
|