首页 > 代码库 > 添加网桥

添加网桥

#cat ifcfg-em1
DEVICE=em1
TYPE=Ethernet
HWADDR=52:54:00:EE:1F:15
ONBOOT=yes
BOOTPROTO=none
NM_CONTROLLED=no
BRIDGE=br0
cat ifcfg-br0
DEVICE=br0
TYPE=Bridge
#NM_CONTROLLED=no
BOOTPROTO=static
IPADDR=xxxx
NETMASK=xxxx
GATEWAY=xxxx
ONBOOT=yes

 

添加网桥