修改本机网卡 /etc/sysconfig/network-scripts/ifcfg-enp0s25
TYPE="Ethernet"
NAME="enp0s25"
DEVICE="enp0s25"
ONBOOT="yes"
BRIDGE=br0
添加桥接 /etc/sysconfig/network-scripts/ifcfg-br0 (br0需要自行创建)
TYPE=Bridge
NAME=br0
DEVICE=br0
ONBOOT="yes"
BOOTPROTO=static
IPADDR=10.18.45.29
GATEWAY=10.18.45.1
NETMASK=255.255.255.0
DNS1=114.114.114.114
DNS2=114.114.115.115
里面的参数根据自己的需求去修改