centos7 新建bridge

ifcfg-cni0

DEVICE="cni0"
BOOTPROTO="static"
IPADDR="10.5.30.5"
ONBOOT="yes"
TYPE="Bridge"
NM_CONTROLLED="no"

ifcfg-ens224

DEVICE=ens224
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes
NM_CONTROLLED=no
BRIDGE=cni0

然后执行
systemctl restart network

你可能感兴趣的:(centos7 新建bridge)