Skip to content

Instantly share code, notes, and snippets.

@lanefu
Last active November 19, 2021 22:09
Show Gist options
  • Save lanefu/9684ef31acf1c5cd14368a059b9c5fbb to your computer and use it in GitHub Desktop.
Save lanefu/9684ef31acf1c5cd14368a059b9c5fbb to your computer and use it in GitHub Desktop.
armbian espressobin bridgeless networking

bwaaaah eliminate hairpinning to cpu and just use wan link

This will eliminate bridge networking, and move DHCP explicity to the WAN interface (port next to usb3) on the espressobin. Approach can be applied to the lan interfaces as well

caveat: TODO: need to double check mac addresses are probaly assigned to the interfaces and not just duplicating eth0 This involves setting MACs correctly in u-boot environment

fix services

systemctl disable NetworkManager
systemctl enable systemd-networkd

#optional -- may want for old school wifi etc, default doesnt control interfaces so its okay to leave enabled
systemctl disable networking
##optional if you want things to wait.. can break sometimes
systemctl enable systemd-networkd-wait-online

networkd config files

okay goto /etc/systemd/network and lets clean up the files. In fact nuke them all. We'll start over.

10-eth0.network

[Match]
Name=eth0

[Network]
DHCP=no

10-wan.network

[Match]
Name=wan 

[Network]
DHCP=yes
BindCarrier=eth0

10-lan0.network

[Match]
Name=lan0

[Network]
DHCP=no
BindCarrier=eth0

10-lan1.network

[Match]
Name=lan1

[Network]
DHCP=no
BindCarrier=eth0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment