Rhel5.9 bond Configuration

Source: Internet
Author: User

1. Configure bond

1. ifcfg-bond0

# Advanced Micro Devices [amd] 79c970 [pcnet32 Lance]

Device = bond0

Bootproto = static

Onboot = Yes

Ipaddr = 10.0.26.27

Netmask = 255.255.255.0

Gateway = 10.0.26.1

2. ifcfg-eth1

# Advanced Micro Devices [amd] 79c970 [pcnet32 Lance]

Device = eth1

Bootproto = none

Onboot = Yes

Master = bond0

Slave = Yes

3. ifcfg-eth2

# Advanced Micro Devices [amd] 79c970 [pcnet32 Lance]

Device = eth2

Bootproto = none

Onboot = Yes

Master = bond0

Slave = Yes

4./etc/modprobe. conf configuration

Alias eth0 pcnet32

Alias scsi_hostadapter mptbase

Alias scsi_hostadapter1 mptspi

Alias scsi_hostadapter2 ata_piix

Alias net-pf-10 off

Alias IPv6 off

Options IPv6 disable = 1

Alias eth1 pcnet32

Alias eth2 pcnet32

Alias bond0 Bonding

Options bonding millmon = 100 mode = 1

Ii. view the status

1. Restart the network

/Etc/init. d/network restart

2. View bond running status

CAT/proc/NET/Bonding/bond0

Ethernet channel bonding DRIVER: v3.4.0-1 (October 7, 2008)

Bonding mode: Load Balancing (round-robin)

MII status: Up

MII polling interval (MS): 1

Up delay (MS): 0

Down delay (MS): 0

Slave interface: eth1

MII status: Up

Speed: 100 Mbps

Duplex: full

Link failure count: 0

Permanent hw addr: 00: 50: 56: A2: 4d: 00

Slave interface: eth2

MII status: Up

Speed: 100 Mbps

Duplex: full

Link failure count: 0

Permanent hw addr: 00: 50: 56: A2: 4d: 01

Iii. test bond

1. Disconnect eth1 network port

[[Email protected] network-Scripts] # ifdown eth1

2. Check the bond status. eth1 is offline and now eth2 takes over

[[Email protected] network-Scripts] # Cat/proc/NET/Bonding/bond0

Ethernet channel bonding DRIVER: v3.4.0-1 (October 7, 2008)

Bonding mode: Load Balancing (round-robin)

MII status: Up

MII polling interval (MS): 1

Up delay (MS): 0

Down delay (MS): 0

Slave interface: eth2

MII status: Up

Speed: 100 Mbps

Duplex: full

Link failure count: 0

Permanent hw addr: 00: 50: 56: A2: 4d: 01

3. Activate eth1

[[Email protected] network-Scripts] # IFUP eth1

4. Check the bond status. eth1 is online, but the network traffic is still running on eth2, and eth1 is used as a backup. (Previously, eth1 was used to carry traffic)

[[Email protected] network-Scripts] # Cat/proc/NET/Bonding/bond0

Ethernet channel bonding DRIVER: v3.4.0-1 (October 7, 2008)

Bonding mode: Load Balancing (round-robin)

MII status: Up

MII polling interval (MS): 1

Up delay (MS): 0

Down delay (MS): 0

Slave interface: eth2

MII status: Up

Speed: 100 Mbps

Duplex: full

Link failure count: 0

Permanent hw addr: 00: 50: 56: A2: 4d: 01

Slave interface: eth1

MII status: Up

Speed: 100 Mbps

Duplex: full

Link failure count: 0

Permanent hw addr: 00: 50: 56: A2: 4d: 00



This article is from the lose blog, please be sure to keep this source http://blove.blog.51cto.com/3116850/1536064

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.