Create NetworkManager bridge with nmcli
Published (last updated )
Create bridge/master and rename to ‘bridge0’:
nmcli con add type bridge ifname bridge0
nmcli con modify abd0c87d-cf9a-41fb-a222-344845f08505 connection.id bridge0
Don’t use STP:
nmcli con modify bridge0 bridge.stp no
Create ethernet/slave, add to bridge and rename to ‘eth0’:
nmcli con add type ethernet ifname eth0 master bridge0
nmcli con modify 723668dd-4bf0-436f-985b-c35256464c9c connection.id eth0
Enable Wake-on-LAN:
nmcli con modify eth0 802-3-ethernet.wake-on-lan magic
Make sure the bridge uses a specific MAC address:
nmcli con modify bridge0 ethernet.cloned-mac-address 00:11:22:33:44:55
Start the bridge:
nmcli con up bridge0