1、进入到网络参数脚本目录
[root@nova ~]# cd /etc/sysconfig/network-scripts/
2、编辑如下三个文件
* ifcfg-br0
DEVICE=br0
ONBOOT=yes
TYPE=Bridge
BOOTPROTO=static
IPADDR=192.168.0.250
NETMASK=255.255.255.0
STP=on
DELAY=0
*ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=0.0.0.0
BRIDGE=br0
IPV6INIT=no
USERCTL=no
*ifcfg-eth1
DEVICE=eth1
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=0.0.0.0
BRIDGE=br0
IPV6INIT=no
USERCTL=no
3、在此之前关闭NetworkManager(非常大的概率会对配置产生干扰,因此强列建议关闭)
service NetworkManager stop
chkconfig NetworkManager off
chkconfig --del NetworkManager
转载于:https://blog.51cto.com/superzxh/1671520