Skip to content

Instantly share code, notes, and snippets.

@Nill-R
Last active January 5, 2022 05:36
Show Gist options
  • Save Nill-R/51ff89908b24a516468d55f52a8b9b93 to your computer and use it in GitHub Desktop.
Save Nill-R/51ff89908b24a516468d55f52a8b9b93 to your computer and use it in GitHub Desktop.
RPi 4B+ ethernet and wlan bridge config for netplan
network:
ethernets:
eth0:
match:
driver: bcmgenet smsc95xx lan78xx
set-name: eth0
dhcp4: false
dhcp6: false
wifis:
wlan0:
dhcp4: false
dhcp6: false
access-points:
"YOUR_SSID":
password: "YOUR_PASSWORD"
bridges:
br0:
dhcp4: no
dhcp6: yes
addresses: [192.168.N.N/23]
routes:
- to: default
via: 192.168.N.M
interfaces: [eth0,wlan0]
mtu: 1500
nameservers:
addresses: [X.X.X.X,Y.Y.Y.Y]
parameters:
stp: true
forward-delay: 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment