Articles in this section

How to configure network bridge with NetworkManager on Almalinux 9?

Applicable to:

  • SolusVM

Question

How to configure network bridge with Network Manager on Almalinux 9 ?

Answer

  1. Create a bridge interface: 

    # nmcli con add ifname br0 type bridge con-name br0 

  2. Add the active interface to the bridge: 

    # nmcli con add type bridge-slave ifname eno1 master br0 

  3. Modify the bridge interface settings: 

    # nmcli conn modify br0 ipv4.addresses 'IPADDRESS/24' 
    nmcli conn modify br0 ipv4.gateway 'GATEWAY' 
    nmcli conn modify br0 ipv4.dns '8.8.8.8,8.8.4.4' 
    nmcli conn modify br0 ipv4.method 

  4. Manually replace IPADDRESS and GATEWAY accordingly. 
  5. Run the command: 

    # nmcli conn down eno1; nmcli conn up br0

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.