-
-
Notifications
You must be signed in to change notification settings - Fork 32
Bridging
James Swineson edited this page Nov 13, 2017
·
8 revisions
Assume you have eth0 now and want to create bridge br0.
Create /etc/network/interfaces.d/br0, fill in:
auto br0
allow-hotplug br0
iface br0 inet dhcp
bridge_ports eth0
bridge_waitport 60
iface br0 inet6 auto
Then ifup br0.
If it fails to create the bridge, apt install bridge-utils.
Create 3 files under /etc/systemd/network:
[NetDev]
Name=br0
Kind=bridge
br0.network
[Match]
Name=br0
[Network]
DHCP=ipv4
eth0.network
[Match]
Name=eth0
[Network]
Bridge=br0
Then systemctl reload systemd-networkd.