Linux Network Bridge Configuration
Requirements :
a management port Gigabit network cardETH0, two service port Gigabit network cards (ETH1and theETH2),running CentOS6.5asKVMhost, you need to use two business port Nic as a bridge
Configuration:
1. View the system version
# cat/etc/issue
CentOS Release 6.5 (Final)
Kernel \ r on an \m
2. New bridge Configuration
# CAT/ETC/SYSCONFIG/NETWORK-SCRIPTS/IFCFG-BR0
Device=br0
Type=bridge
Onboot=yes
Nm_controlled=no
Bootproto=static
ipaddr=172.16.10.22
netmask=255.255.255.0
gateway=172.16.10.2
dns1=114.114.114.114
dns2=8.8.4.4
dns3=8.8.8.8
Stp=on
Delay=0
Span style= "FONT-WEIGHT:BOLD;FONT-FAMILY:CALIBRI;" >nm_controlled yes networkmanager admin, configured as no
3. Edit Join Bridge br0 the physical NIC eth1 and the eth2
# cat/etc/sysconfig/network-scripts/ifcfg-eth1
Device=eth1
Type=ethernet
Onboot=yes
Nm_controlled=no
Bootproto=static
ipaddr=0.0.0.0
Bridge=br0
Userctl=no
Ipv6init=no
# cat/etc/sysconfig/network-scripts/ifcfg-eth2
Device=eth2
Type=ethernet
Onboot=yes
Nm_controlled=no
Bootproto=static
ipaddr=0.0.0.0
Bridge=br0
Userctl=no
Ipv6init=no
Attention:
to avoid NetworkManager service impact, need to close the service
#serviceNetworkManager stop
#chkconfigNetworkManager off
4. Restart the Network Service
#/etc/init.d/networkrestart
5. Check
#brctlshow
650) this.width=650; "title=" 2.png "src=" http://s1.51cto.com/wyfs02/M01/82/F2/wKioL1dm6l2iV_ Fkaabpve4jtw0508.png-wh_500x0-wm_3-wmp_4-s_616201621.png "alt=" Wkiol1dm6l2iv_fkaabpve4jtw0508.png-wh_50 "/>
This article from "Think you think, no no no" blog, please be sure to keep this source http://joket.blog.51cto.com/3504252/1790908
Linux Bridge configuration