1. Disable NetworkManager
# chkconfig NetworkManager off
# chkconfig network on# service NetworkManager stop# service network start# ifdown eth0
2. Create a new bridge
a. Create a new network script file in the /etc/sysconfig/network-scripts/ directory.
This example creates a file named ifcfg-bridge0# cd /etc/sysconfig/network-scripts/
# vi ifcfg-bridge0DEVICE=bridge0TYPE=BridgeONBOOT=yesNM_CONTROLLED=yesBOOTPROTO=noneIPADDR=192.168.44.16PREFIX=24GATEWAY=192.168.44.200DNS1=210.22.84.3DEFROUTE=yesIPV4_FAILURE_FATAL=yesIPV6INIT=noDELAY=0Note: The line, TYPE=Bridge, is case-sensitive. It must have uppercase 'B' and lower case 'ridge'
vi ifcfg-eth0DEVICE=eth0ONBOOT=yesNM_CONTROLLED=yesHWADDR=00:0C:29:87:79:59IPV6INIT=noBRIDGE=bridge0ifup eth0
ifup bridge0
# brctl show
bridge name bridge id STP enabled interfacesbridge0 8000.000c29877959 no eth0virbr0 8000.525400e39bab yes virbr0-nic
3.Security configuration
Configure iptables to allow all traffic to be forwarded across the bridge.# iptables -I INPUT -i bridge0 -j ACCEPT# service iptables save# service iptables restart4.Dsiable STP on virbr0# brctl stp virbr0 off# brctl show
bridge name bridge id STP enabled interfacesbridge0 8000.000c29877959 no eth0virbr0 8000.525400e39bab no virbr0-nic