Skip to main content
Version: 0.2.0

Network Bridge using nmcli (rhel9 / rocky9)

A bridge created by nmcli will persist after reboot.


sudo nmcli con add type bridge con-name BRIDGE_NAME ifname BRIDGE_NAME

sudo nmcli con add type bridge-slave ifname INTERFACE_NAME master BRIDGE_NAME

# To use DHCP, no action is required but if you want to manually configure it
sudo nmcli con mod BRIDGE_NAME ipv4.addresses IP/MASK ipv4.gateway GATEWAY ipv4.dns DNC ipv4.method manual

sudo nmcli con down INTERFACE_NAME; sudo nmcli con up BRIDGE_NAME
# Some delay is expected