With wifi + Starlink + cellular as uplinks, the onboard GbE earns its keep as a wired LAN port instead of the metric-150 ethernet WAN: eth0 leaves netplan/NM (added to van-ap-unmanaged.conf) and joins br0 via networkd (23-van-lan-eth0.network), so wired clients get 10.42.0.x DHCP/DNS and NAT exactly like Wi-Fi clients. The eth WAN is gone from van-failover's config. Cutover notes: delete the old netplan-eth0 / stray eth0 NM profiles, then nmcli general reload + networkctl reload/reconfigure eth0. NEVER cable this port (or the USB LAN dongle) back into an upstream LAN — dnsmasq on br0 would serve rogue DHCP there; STP stays off, so don't cable both wired LAN ports to the same switch either. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
33 lines
1.3 KiB
YAML
33 lines
1.3 KiB
YAML
# /etc/netplan/50-van-wan.yaml — replaces cloud-init's 50-cloud-init.yaml.
|
|
# The WANs handed to NetworkManager so van-failover can steer them (mirrors
|
|
# wayback where NM owns all WANs): wlan0 = wifi uplink (Wapana at home /
|
|
# campsite wifi), enxd8ec5eeb3512 = Starlink. The AP radios and the wired LAN
|
|
# ports (USB dongle + onboard eth0, since 2026-07-12 an internal LAN port) are
|
|
# deliberately absent: systemd-networkd/hostapd own them, and
|
|
# van-ap-unmanaged.conf hides them from NM.
|
|
# Apply once by hand: netplan generate && netplan apply (flaps the uplinks).
|
|
network:
|
|
version: 2
|
|
ethernets:
|
|
# Starlink dish uplink (RTL8153 USB NIC, MAC-named — travels with the
|
|
# adapter). The /32 link route keeps the dish's management address reachable
|
|
# no matter which WAN holds the default route: the dish answers on
|
|
# 192.168.100.1 (gRPC :9200) even while the uplink sits behind CGNAT.
|
|
enxd8ec5eeb3512:
|
|
renderer: NetworkManager
|
|
optional: true
|
|
dhcp4: true
|
|
routes:
|
|
- to: 192.168.100.1/32
|
|
scope: link
|
|
wifis:
|
|
wlan0:
|
|
renderer: NetworkManager
|
|
optional: true
|
|
dhcp4: true
|
|
access-points:
|
|
"Wapana":
|
|
auth:
|
|
key-management: "psk"
|
|
password: "6e1335fd97165a7d2618bec19824be363a2766d7765f91aa14773d871eaa59dc"
|