How to configure a network bridge with bridge-utils on RHEL
A Linux network bridge joins one or more Ethernet interfaces into a shared Layer 2 segment. RHEL administrators use it for KVM and libvirt guests, containers, and remote-access systems. The bridge-utils package supplies brctl for inspection and for hosts where NetworkManager does not manage the connection.
RHEL deployments in Australia may run in Sydney, Melbourne, or Brisbane data centres, through providers in the Australian managed-hosting market, or in regional offices. NIC names can appear as enp1s0, ens18, or vendor-specific labels, so inspect each host rather than copying names from another machine. Local operating customs often mean planned evening work, public-holiday awareness, and escorts for physical colocation access.
Before changing a production host, record active connections, routes, IP addresses, and the management path. Keep out-of-band console access because enslaving the interface carrying SSH can terminate the session. Decide whether the bridge needs a host IP address or exists only as a virtual switch for guests.
Choose the bridge workflow
RHEL 8 and RHEL 9 normally use NetworkManager, so nmcli should create a persistent bridge; brctl is useful for inspection and temporary experiments. On RHEL 7, or on a host where NetworkManager is deliberately disabled, brctl with legacy ifcfg files is a valid route.
Do not let two managers control the same interface. A bridge created only with brctl disappears after reboot, whereas a NetworkManager profile restores the bridge and its ports cleanly.
| Method | Suitable system | Persistence | Main caveat |
|---|---|---|---|
brctl and ifcfg |
RHEL 7 or unmanaged ports | Legacy script files | Unsupported by default RHEL 8/9 layouts |
nmcli |
RHEL 8 and RHEL 9 | NetworkManager profiles | Direct brctl changes remain temporary |
bridge-utils checks |
Any RHEL release with the package | Utility only | Does not assign addresses or create configuration |
Inspect interfaces and protect access
The service check is decisive:
systemctl is-active NetworkManager
nmcli general status
ip -br address
ip route
nmcli -f NAME,TYPE,DEVICE connection show --active
Record the exact NetworkManager profile and physical interface before editing either. Rehearse the sequence in a practice project environment before a live change, and never enslave the interface carrying the only SSH management path.
Install bridge-utils on RHEL
Install the package from the entitled RHEL repository, then confirm that brctl is present:
sudo dnf install bridge-utils
rpm -q bridge-utils
command -v brctl
Use sudo yum install bridge-utils on RHEL 7. The package supplies the bridge utility; it does not create br0, allocate addresses, or decide which Ethernet port belongs to the bridge.
Build and test the live bridge
During a console-only test, stop the active NetworkManager profile for the port so the managers do not compete. After checking that br0 is unused, create the bridge and add the first Ethernet port:
sudo brctl addbr br0
sudo brctl addif br0 enp1s0
sudo ip link set enp1s0 up
sudo ip link set br0 up
brctl show
This live setup is suitable for a short test and disappears after reboot. Keep host addresses on br0 rather than on enp1s0; add an address only when the host itself needs management access through the bridge.
On RHEL 7, or only when NetworkManager is disabled, make the arrangement persistent with /etc/sysconfig/network-scripts/ifcfg-br0 and a matching port file:
# ifcfg-br0
DEVICE=br0
TYPE=Bridge
ONBOOT=yes
BOOTPROTO=none
IPADDR=192.0.2.10
PREFIX=24
# ifcfg-enp1s0
DEVICE=enp1s0
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=none
BRIDGE=br0
Replace the example values, or omit the IP settings when the bridge is only a virtual switch, then run sudo systemctl restart network. Do not copy these legacy files into a default RHEL 8 or RHEL 9 installation.
Persist the bridge with NetworkManager
On current RHEL, remove any temporary br0 from the console, then create a bridge profile and enslave the existing port profile. Replace the quoted profile name with the name shown by nmcli:
sudo nmcli connection add type bridge ifname br0 con-name br0
sudo nmcli connection modify br0 ipv4.method disabled ipv6.method auto
sudo nmcli connection modify "enp1s0-profile" master br0 slave-type bridge ipv4.method disabled ipv6.method disabled
sudo nmcli connection up br0
The address settings above intentionally leave the bridge without IPv4, which suits many hypervisor bridges. To manage the host through it, replace the disabled IPv4 method with the real address and gateway:
sudo nmcli connection modify br0 ipv4.method manual ipv4.addresses "192.0.2.10/24" ipv4.gateway "192.0.2.1"
NetworkManager stores these settings in its system-connection profiles and restores them after reboot. brctl show remains useful for confirming membership, while bridge-utils never overrides NetworkManager. Set bridge.stp yes when redundant paths could create a switching loop.
Verify forwarding and connectivity
Check the bridge, its members, addresses, and routing:
brctl show
bridge link
ip -br address show br0
ip route
nmcli -f GENERAL,IP4 device show br0
Then test the real gateway or a guest on the same segment, replacing the documentation address below with your own:
ping -c 3 192.0.2.1
ip neigh show dev br0
sudo tcpdump -ni br0
A visible MAC address and changing ARP entries confirm Layer 2 forwarding. A bridge does not route between subnets, and VLAN-tagged frames normally retain their tags, so test the expected VLAN path as well.
Troubleshoot and validate the deployment
Start with NetworkManager state and recent kernel messages:
nmcli device status
nmcli -f NAME,TYPE,DEVICE connection show
sudo journalctl -u NetworkManager -b --no-pager
sudo dmesg | grep -Ei 'bridge|stp|vlan'
An “already exists” error usually means a profile or live device needs reuse rather than duplication. Remove ownership conflicts between legacy files and NetworkManager, and check firewalld with sudo firewall-cmd --get-zone-of-interface=br0; permit required services instead of placing the bridge in a trusted zone.
When documenting a shared runbook, omit guest identifiers and customer data, and review the privacy handling policy before distributing operational details. Schedule the next approved maintenance window, attach console access, and run sudo nmcli connection show br0 && sudo brctl show before moving one test VM.