图形化创建
#nm-connection-editor &
选择桥接
设置桥接网络
点击添加
模式选择以太网
添加上行网卡
# brctl show
删除桥接
# nmcli connection delete Br0
# nmcli connection delete Br0_1
#ip a
命令行添加
# nmcli connection add type bridge con-name br0 ifname br0
# nmcli connection modify br0 ipv4.addresses "192.168.100.26/24"
# nmcli connection modify br0 ipv4.gateway 192.168.100.2
# nmcli connection modify br0 ipv4.dns 8.8.8.8
# nmcli connection modify br0 ipv4.method manual
# nmcli connection add type bridge-slave con-name br0_1 ifname eno33554960 master br0