Network Bridge on RHEL 9 / Rocky Linux 9
Using nmcli for Persistent Configuration
A bridge created using nmcli will persist after reboot.
- Create the bridge interface,
br0External
sudo nmcli con add type bridge con-name br0External ifname br0External
- Add a physical interface,
eth0, to the bridge
sudo nmcli con add type bridge-slave ifname eth0 master br0External
- Configure the bridge IP address
If using DHCP, no additional configuration is required.
This example configures the bridge with a static IP address of192.168.1.2/16, gateway192.168.1.1, and DNS server192.168.1.1
sudo nmcli con mod br0External ipv4.addresses 192.168.1.2/16 ipv4.gateway 192.168.1.1 ipv4.dns 192.168.1.1 ipv4.method manual
- Activate the bridge
sudo nmcli con down eth0
sudo nmcli con up br0External
warning
If the node’s IP address changes after registration, its configuration must be updated in Cluster Wizard or Node Client.