ap: bridge wired LAN port (enx00e04c331140) into br0 with the AP
Add a wired LAN port on the same 10.42.0.0/24 segment as VanLink WiFi by bridging both into br0. The gateway IP, dnsmasq, and NAT move off the wlan name onto br0; hostapd (not networkd) enslaves the wlan via bridge=br0, since a station-mode wlan can't be bridged until it's in AP mode. NM leaves the wired port unmanaged so networkd owns it. Failover/Starlink (enxd8ec5eeb3512) untouched. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
c93997c06d
commit
830ef52641
@@ -13,6 +13,9 @@ install -D -m0644 ap/default-hostapd /etc/default/hostapd
|
||||
install -D -m0644 ap/van-ap-dnsmasq.conf /etc/van-ap/dnsmasq.conf
|
||||
install -D -m0644 ap/van-ap-dnsmasq.service /etc/systemd/system/van-ap-dnsmasq.service
|
||||
install -D -m0644 ap/10-van-ap.network /etc/systemd/network/10-van-ap.network
|
||||
install -D -m0644 ap/20-van-br0.netdev /etc/systemd/network/20-van-br0.netdev
|
||||
install -D -m0644 ap/21-van-br0.network /etc/systemd/network/21-van-br0.network
|
||||
install -D -m0644 ap/22-van-lan.network /etc/systemd/network/22-van-lan.network
|
||||
install -D -m0644 ap/van-ap-unmanaged.conf /etc/NetworkManager/conf.d/van-ap-unmanaged.conf
|
||||
install -D -m0644 ap/nftables.conf /etc/nftables.conf
|
||||
install -D -m0644 ap/regdomain.service /etc/systemd/system/regdomain.service
|
||||
@@ -86,7 +89,11 @@ if [ -x /home/andreas/bin/hbc ]; then
|
||||
systemctl enable hbc >/dev/null 2>&1 || true
|
||||
systemctl restart hbc
|
||||
fi
|
||||
# restart in dependency order; AP iface IP first, then hostapd/dnsmasq, then NAT/failover
|
||||
# Pick up the unmanaged-devices change so NM releases the wired LAN port (drops its
|
||||
# old 192.168.10.x lease); networkd then enslaves it to br0 on the restart below.
|
||||
nmcli general reload 2>/dev/null || systemctl reload NetworkManager 2>/dev/null || true
|
||||
# restart in dependency order: br0 + AP iface + LAN member first, then hostapd adds
|
||||
# the wlan to br0, then dnsmasq binds br0, then NAT/failover
|
||||
systemctl restart systemd-networkd
|
||||
systemctl restart hostapd van-ap-dnsmasq nftables van-failover
|
||||
networkctl reload 2>/dev/null || true
|
||||
|
||||
Reference in New Issue
Block a user