1. 添加br0
命令:brctl addbr br0
2. 新建ifcfg-br0文件
命令:Touch ifcfg-br0
[root:network-scripts]# cat ifcfg-br0
TYPE=Bridge
DEVICE=br0
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=static
IPADDR=0.0.0.0
NETMASK=255.255.255.0
BROADCAST=0.0.0.0
NETWORK=0.0.0.0
GATEWAY=0.0.0.0
DNS=0.0.0.0
HOSTNAME="virtual"
3.修改需要桥接的网口:
HWADDR=00:1e:67:56:c0:0a
TYPE=Ethernet
NAME=enp6s0f0
UUID=cd24b00c-490b-3ba0-97c0-b5d6dc1d54b2
ONBOOT=yes
BRIDGE=br0
AUTOCONNECT_PRIORITY=-999
4. 重启网络