Professional Documents
Culture Documents
Page 1 of 15
No part of this document may be reproduced, transmitted, transcribed, stored in a retrieval system, or
translated into any language or computer language, in any form or by any means, electronic, mechanical,
magnetic, optical, chemical, manual or otherwise without the prior written consent of Maipu Communication
Technology Co., Ltd.
Maipu makes no representations or warranties with respect to this document contents and specifically
disclaims any implied warranties of merchantability or fitness for any specific purpose. Further, Maipu
reserves the right to revise this document and to make changes from time to time in its content without
being obligated to notify any person of such revisions or changes.
Maipu values and appreciates comments you may have concerning our products or this document. Please
address comments to:
All other products or services mentioned herein may be registered trademarks, trademarks, or service
marks of their respective manufacturers, companies, or organizations.
Page 2 of 15
Docume
Version
nt
1.0
Revision
Number
Evaluate
Presentation:
this
document
appearance)
Good
Accessibility:
(Contents, index, headings, numbering)
Good
Editorial:
(Language, vocabulary, readability, clarity, technical accuracy, content)
Good
Your
suggestion
s to
Improve Contents
improve
the
document
Compan
y
Postcode
Address
Telephone
Page 3 of 15
Contents
Chapter 1 Link Aggregation Configuration...................................................................5
1.1 Overview.................................................................................................................................. 5
1.1.1 Introduction to Link Aggregation................................................................................ 5
1.1.2 Introduction to LACP................................................................................................... 6
1.1.3 Operation Key (O-Key)................................................................................................6
1.1.4 Static Aggregation Group............................................................................................6
1.1.5 Dynamic LACP Aggregation Group........................................................................... 7
1.2 Redundancy of Interconnected Device................................................................................8
1.3 Load-balancing Policy............................................................................................................ 9
1.4 Link Aggregation Configuration.............................................................................................9
1.4.1 Configuring a Static Aggregation Group................................................................... 9
1.4.2 Configuring a Dynamic LACP Aggregation Group................................................ 10
1.4.3 Displaying and Maintaining Link Aggregation Configuration............................... 11
1.5 LACP Configuration Example............................................................................................. 12
Page 4 of 15
For the member ports in an aggregation group, their basic configuration must be the same.
The basic configuration includes STP, QoS, VLAN, port attributes, and other associated
settings.
STP configuration, including STP status (enabled or disabled), link attribute
(point-to-point or not), STP priority, maximum transmission speed, loop prevention status.
QoS configuration, including traffic limiting, priority marking, default 802.1p priority,
traffic monitor, traffic redirection, traffic statistics, and so on.
VLAN configuration, including permitted VLANs, and default VLAN ID, tag vlan list for
hybrid port and allowed vlan list for trunk port.
Port attribute configuration, including port rate, duplex mode, and link type (Trunk,
Hybrid or Access). The ports for a static aggregation group must have the same rate and
link type, and the ports for a dynamic aggregation group must have the same rate, duplex
mode (full duplex) and link type.
Page 5 of 15
1.1.2
Introduction to LACP
The purpose of link aggregation control protocol (LACP) is to implement dynamic link
aggregation and disaggregation. This protocol is based on IEEE802.3ad and uses
LACPDUs (link aggregation control protocol data units) to interact with its peer.
After LACP is enabled on a port, LACP notifies the following information of the port to its
peer by sending LACPDUs: priority and MAC address of this system, priority, number and
operation key (it is so called O-Key) of the port. Upon receiving the information, the peer
compares the information with the information of other ports on the peer device to
determine the ports that can be aggregated with the receiving port. In this way, the two
parties can reach an agreement in adding/removing the port to/from a dynamic
aggregation group.
O-Key) of an LACP-enable
4)
The operation key (O-Key) which is contained in LACPDU of an LACP-enable
aggregation port is the same as its peer.
Page 6 of 15
Compare device IDs (system priority + system MAC address) between the two parties.
First compare the two system priorities, then the two system MAC addresses if the system
priorities are equal. The device with smaller device ID will be considered as the preferred
one.
2)
Compare port IDs (port priority + port number) on the preferred device. The
comparison between two port IDs is as follows: First compare the two port priorities, then
Page 7 of 15
The two devices know the LACP sys-id and system MAC
address of each other through LACPDUs exchanges. The system priorities are compared
first, and the system MAC addresses are compared when the system priorities are the
same. The device with smaller device ID will be considered as the preferred one.
Step 2 Redundant link. The port priorities are compared first, and the port numbers are
compared if the port priorities are the same. The port with smaller port ID is considered as
the preferred one.
Page 8 of 15
Command
Description
Create a static
aggregation group
channel-group
channel-group-number
channel-group-number
ranges from 0 to 12
If the group has already
existed, turn to step 2.
Configure
load-balancing
policy
channel-group load-balance
{dst-ip|dst-mac|src-dst-ip|src-dst
-mac|src-ip|src-mac}
Enter interface
configuration
mode
Enter interface
range
configuration
mode
interface_list
channel-group
channel-group-number mode on
channel-group-number
should be existed .
Page 9 of 15
no channel-group
an aggregation
group
channel-group-number
Back to global
exit
configuration
mode
Delete a static
aggregation group
no channel-group
channel-group-number
Operation
Command
Description
Create a
channel-group
dynamic
aggregation
group
channel-group-number
Configure
channel-group
load-balance
{dst-ip|dst-mac|src-dst-i
p|src-dst-mac|src-ip|src-
load-balancin
g policy
mac}
3
Configure
system
priority
lacp system-priority
priority
4(1)
Enter
interface ethernet
interface
configuration
interface_num
Page 10 of 15
Enter
interface
range
configuration
interface_list
channel-group
channel-group-number
active | passive
mode {active
passive}
channel-group-number should be
existed .
mode
5
Add a port to
the
aggregation
group
Configure
port priority
Delete a port
from an
aggregation
no channel-group
channel-group-number
group
8
Back to
global
configuration
exit
mode
9
Delete a
dynamic
aggregation
no channel-group
channel-group-number
group
Configuration
After the above configuration, execute the show command in any mode to display the
running status after the link aggregation configuration and verify your configuration.
Table 1-1 Display and maintain link aggregation configuration
Operation
Command
Description
System
LACP-ID
consists of 16-bit system
priority and 48-bit system
Page 11 of 15
show
lacp
internal
info
of
the
aggregation group
[channel-group-number
]
Page 12 of 15
State
bndl
bndl
Logic-port
1
1
Actor-state
-
actor-state: activity/timeout/aggregation/synchronization
Maipu Confidential & Proprietary Information
Page 13 of 15
bndl
bndl
2
2
2
2
Priority
Logic-port
64
64
1
1
Actor-state
10111100
10111100
actor-state: activity/timeout/aggregation/synchronization
collecting/distributing/defaulted/expired
#show lacp internal of switch-B
switch-B(config-if-range)#show lacp internal
Load balance: src-dst-mac
Channel: 1, dynamic channel
Port
State
A-Key O-Key
e0/0/3
e0/0/4
bndl
bndl
2
2
2
2
Priority
Logic-port
256
256
3
3
Actor-state
00111100
00111100
actor-state: activity/timeout/aggregation/synchronization
collecting/distributing/defaulted/expired
2Show LACP neighbor
#Show LACP neighbor of switch-A
switch-A(config-if-range)#show lacp neighbor
Channel: 1
Local
Port
e0/0/1
3
Key
2
Pri
256
ID
Timeout
000a5a020305 82(90)
Nei-state
00111100
e0/0/2
256
000a5a020305 80(90)
00111100
nei-state: activity/timeout/aggregation/synchronization
collecting/distributing/defaulted/expired
#Show LACP neighbor of switch-B
switch-B(config-if-range)#show lacp neighbor
Channel: 1
Local
Port
Key
Pri
ID
e0/0/3
e0/0/4
1
2
2
2
64
64
Timeout
000a5a010203
000a5a010203
71(90)
69(90)
Nei-state
10111100
10111100
Page 14 of 15
nei-state: activity/timeout/aggregation/synchronization
collecting/distributing/defaulted/expired
3Show system ID
#Show switch-A system ID
switch-A(config-if-range)#show lacp sys-id
1024,000a5a010203
#Show switch-B system ID
switch-B(config-if-range)#show lacp sys-id
2048,000a5a020305
6Delete port member from channel-group
#Configure switch-A
switch-A(config-if-range)#no channel-group 1
Remember to re-config mac-addresses associated with port e0/0/1
Remember to re-config mac-addresses associated with port e0/0/2
switch-A(config-if-range)#exit
#Configure switch-B
switch-B(config-if-range)#no channel-group 1
Remember to re-config mac-addresses associated with port e0/0/3
Remember to re-config mac-addresses associated with port e0/0/4
switch-B(config-if-range)#exit
7Delete channel-group
#Configure switch-A
switch-A(config)#no channel-group 1
#Configure switch-B
switch-B(config)#no channel-group 1
Page 15 of 15