Configure the bridge in RHEL6

Source: Internet
Author: User
1. Because NetworkManager does not support bridging, You Need To disableNetworkManagerservcie. #/etc/init. d/NetworkManagerstop # serviceNetworkManageroff2, # cd/etc/sysconfig/network-scripts /#

1. Because NetworkManager does not support bridging, You need to disable NetworkManager servcie.

#/Etc/init. d/NetworkManager stop
# Service NetworkManager off

2. # cd/etc/sysconfig/network-scripts/

# Vi ifcfg-eth0 as follows


DEVICE = eth0
TYPE = Ethernet
HWADDR = 1c: 6f: 65: dd: d4: d8
NM_CONTROLLED = yes
ONBOOT = yes
BOOTPROTO = dhcp
BRIDGE = "vSwitch0"

 

# Vi ifcfg-vSwitch0 bridge configuration file

DEVICE = vSwitch0
HWADDR = 1c: 6f: 65: dd: d4: d8
TYPE = Bridge
BOOTPROTO = static
IPADDR = 10.10.10.65
NETMASK = 255.255.255.0
GATEWAY = 10.10.10.1
BROADCAST = 10.10.0000255
DNS1 = 10.10.10.21
ONBOOT = yes

3. restart the system

# Init 6

Done

4. View Bridges

# Brctl show
Bridge name bridge id STP enabled interfaces
VSwitch0 8000.1c6f65ddd4d8 no eth0
Vnet0
Virbr0 8000.000000000000 yes

To enable STP of vSwitch0, perform the following operations:

# Brctl stp vSwitch0 on
# Brctl show
Bridge name bridge id STP enabled interfaces
VSwitch0 8000.1c6f65ddd4d8 yes eth0
Vnet0
Virbr0 8000.000000000000 yes

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.