-
-
Notifications
You must be signed in to change notification settings - Fork 33
Bridging
James Swineson edited this page Jun 24, 2018
·
8 revisions
Assume you have eth0
now, which is configured by DHCPv4 and IPv6 SLAAC, and want to create bridge br0
.
Do not do this on machines that you only have remote access if you don't know what you are doing. You might lose access to it until there is someone to reconfigure it physically.
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, install bridge-utils
using package manager and try again.
Create 3 files under /etc/systemd/network
:
[NetDev]
Name=br0
Kind=bridge
[Match]
Name=br0
[Network]
DHCP=ipv4
[Match]
Name=eth0
[Network]
Bridge=br0
Then systemctl restart systemd-networkd
.