1. Network card configuration format file
vim /etc/sysconfig/network-scripts/ifcfg-lan
TYPE=Ethernet
BOOTPROTO=none
NAME=lan
DEVICE=eno16777736
ONBOOT=yes
NM_CONTROLLED=no ###Important!
BRIDGE=br0
2. Bridge configuration format file
vim /etc/sysconfig/network-scripts/ifcfg-br0
TYPE=Bridge
BOOTPROTO=none
IPADDR0=10.1.128.20
PREFIX0=16
GATEWAY0=10.1.128.2
NAME=br0
DEVICE=br0
ONBOOT=yes
DNS1=202.96.128.86
3. Bridge permanent static routing format file
vim /etc/sysconfig/network-scripts/route-br0
10.2.0.0/16 via 10.1.128.55 dev br0
10.3.0.0/16 via 10.1.128.55 dev br0
1, 2, 3 configuration is complete, execute:
systemctl stop NetworkManager
#####important! Do not enable it when booting when this service is not in use
systemctl restart network
Note the naming format: ifcfg-*** (device name) route-*** (device name)