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
DEVICE="cni0"
BOOTPROTO="static"
IPADDR="10.5.30.5"
ONBOOT="yes"
TYPE="Bridge"
NM_CONTROLLED="no"
DEVICE=ens224
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes
NM_CONTROLLED=no
BRIDGE=cni0
然后执行
systemctl restart network
本文标题:centos7 新建bridge
本文链接:https://www.haomeiwen.com/subject/meehortx.html
网友评论