Skip to content

Instantly share code, notes, and snippets.

@rogerlin0330
Created July 21, 2019 07:49
Show Gist options
  • Save rogerlin0330/08f5140c857d6e0b0f697041f58697ae to your computer and use it in GitHub Desktop.
Save rogerlin0330/08f5140c857d6e0b0f697041f58697ae to your computer and use it in GitHub Desktop.
Network bridges sample settings based on systemd-networkd (https://wiki.archlinux.org/index.php/Systemd-networkd#Bridge_interface). All these configuration files should be placed in the /etc/systemd/network directory
[Match]
Name=eno1
[Network]
Bridge=br0
[NetDev]
Name=br0
Kind=bridge
[Bridge]
STP=yes
[Match]
Name=br0
[Network]
Address=192.168.1.80/24
DNS=127.0.0.1
Gateway=192.168.1.1
[Match]
Name=eno1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment