Linux Bridge configuration

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.