Chapter 05 Link Aggregation Configuration (1)

15
Link Aggregation Configuration Maipu Confidential & Proprietary Information Page 1 of 15 Link Link Link Link Aggregation Aggregation Aggregation Aggregation Configuration Configuration Configuration Configuration Maipu Communication Technology Co., Ltd No. 16, Jiuxing Avenue Hi-tech Park Chengdu, Sichuan Province Peoples Republic of China - 610041 Tel: Tel: Tel: Tel: (86) 28-85148850, 85148041 Fax: Fax: Fax: Fax: (86) 28-85148948, 85148139 URL: URL: URL: URL: http:// www.maipu.com Email: Email: Email: Email: [email protected]

description

Link Aggregation Configuration (1)

Transcript of Chapter 05 Link Aggregation Configuration (1)

Page 1: Chapter 05 Link Aggregation Configuration (1)

Link Aggregation Configuration

Maipu Confidential & Proprietary Information Page 1 of 15

LinkLinkLinkLinkAggregationAggregationAggregationAggregation ConfigurationConfigurationConfigurationConfiguration

Maipu Communication Technology Co., Ltd

No. 16, Jiuxing Avenue

Hi-tech Park

Chengdu, Sichuan Province

People’s Republic of China - 610041

Tel:Tel:Tel:Tel: (86) 28-85148850, 85148041

Fax:Fax:Fax:Fax: (86) 28-85148948, 85148139

URL:URL:URL:URL: http:// www.maipu.com

Email:Email:Email:Email: [email protected]

Page 2: Chapter 05 Link Aggregation Configuration (1)

Link Aggregation Configuration

Maipu Confidential & Proprietary Information Page 2 of 15

All rights reserved. Printed in the People’s Republic of China.

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:

Maipu Communication Technology Co., Ltd

No. 16, Jiuxing Avenue

Hi-tech Park

Chengdu, Sichuan Province

People’s Republic of China - 610041

Tel:Tel:Tel:Tel: (86) 28-85148850, 85148041

Fax:Fax:Fax:Fax: (86) 28-85148948, 85148139

URL:URL:URL:URL: http:// www.maipu.com

Email:Email:Email:Email: [email protected]

All other products or services mentioned herein may be registered trademarks, trademarks, or service

marks of their respective manufacturers, companies, or organizations.

Page 3: Chapter 05 Link Aggregation Configuration (1)

Link Aggregation Configuration

Maipu Confidential & Proprietary Information Page 3 of 15

Maipu Feedback FormYour opinion helps us improve the quality of our product documentation and offer betterservices. Please fax your comments and suggestions to (86) 28-85148948, 85148139 or emailto [email protected].

DocumentDocumentDocumentDocument

TitleTitleTitleTitle

ProductProductProductProduct

VersionVersionVersionVersion

Docume

nt

Revision

Number

1.0

EvaluateEvaluateEvaluateEvaluate

thisthisthisthis

documentdocumentdocumentdocument

Presentation:Presentation:Presentation:Presentation:

(Introductions, procedures, illustrations, completeness, arrangement,

appearance)

£ Good £ Fair £ Average £ Poor

Accessibility:Accessibility:Accessibility:Accessibility:

(Contents, index, headings, numbering)

£ Good £ Fair £ Average £ Poor

Editorial:Editorial:Editorial:Editorial:

(Language, vocabulary, readability, clarity, technical accuracy, content)

£ Good £ Fair £ Average £ Poor

YourYourYourYour

suggestionsuggestionsuggestionsuggestion

ssss totototo

improveimproveimproveimprove

thethethethe

documentdocumentdocumentdocument

PleasePleasePleasePlease checkcheckcheckcheck suggestionssuggestionssuggestionssuggestions totototo improveimproveimproveimprove thisthisthisthis document:document:document:document:

£ Improve introduction £ Make more concise

£ Improve Contents £ Add more step-by-step procedures/tutorials

£ Improve arrangement£ Add more technical information

£ Include images £ Make it less technical

£ Add more detail £ Improve index

IfIfIfIf youyouyouyou wishwishwishwish totototo bebebebe contacted,contacted,contacted,contacted, completecompletecompletecomplete thethethethe following:following:following:following:

NameNameNameName CompanCompanCompanCompan

yyyy

PostcodePostcodePostcodePostcode AddressAddressAddressAddress

TelephoneTelephoneTelephoneTelephone E-mailE-mailE-mailE-mail

Page 4: Chapter 05 Link Aggregation Configuration (1)

Link Aggregation Configuration

Maipu Confidential & Proprietary Information Page 4 of 15

ContentsContentsContentsContentsChapter 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 5: Chapter 05 Link Aggregation Configuration (1)

Link Aggregation Configuration

Maipu Confidential & Proprietary Information Page 5 of 15

ChapterChapterChapterChapter 1111 LinkLinkLinkLink AggregationAggregationAggregationAggregation ConfigurationConfigurationConfigurationConfiguration

1.11.11.11.1 OverviewOverviewOverviewOverview

1.1.11.1.11.1.11.1.1 IntroductionIntroductionIntroductionIntroduction totototo LinkLinkLinkLink AggregationAggregationAggregationAggregation

Link aggregation means aggregating several ports together to form an aggregation group,so as to implement outgoing/incoming load sharing among the member ports in the groupand to enhance the connection reliability.Depending on different aggregation modes, aggregation groups fall into two types: staticLACP and dynamic LACP. Depending on whether or not load sharing is implemented,aggregation groups can be load-sharing or non-load-sharing aggregation groups.

FigureFigureFigureFigure 1-11-11-11-1 Network diagram for link aggregation configuration

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 associatedsettings.� 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 forhybrid 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 andlink type, and the ports for a dynamic aggregation group must have the same rate, duplexmode (full duplex) and link type.

Page 6: Chapter 05 Link Aggregation Configuration (1)

Link Aggregation Configuration

Maipu Confidential & Proprietary Information Page 6 of 15

1.1.21.1.21.1.21.1.2 IntroductionIntroductionIntroductionIntroduction totototo LACPLACPLACPLACP

The purpose of link aggregation control protocol (LACP) is to implement dynamic linkaggregation and disaggregation. This protocol is based on IEEE802.3ad and usesLACPDUs (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 itspeer by sending LACPDUs: priority and MAC address of this system, priority, number andoperation key (it is so called O-Key) of the port. Upon receiving the information, the peercompares the information with the information of other ports on the peer device todetermine the ports that can be aggregated with the receiving port. In this way, the twoparties can reach an agreement in adding/removing the port to/from a dynamicaggregation group.

1.1.31.1.31.1.31.1.3 OperationOperationOperationOperation KeyKeyKeyKey (O-Key)(O-Key)(O-Key)(O-Key)

An operation key of an aggregation port is a configuration combination generated bysystem depending on the configurations of the port (rate, duplex mode, other basicconfiguration, and administrative key) when the port is aggregated.1) The ports in the same aggregation group must have the same operation key (O-Key)and administrative key (A-Key).2) The administrative key (A-Key) and operation key ( O-Key) of an LACP-enableaggregation port is equal to its aggregation group ID+1.3) The administrative key (A-Key) and operation key ( O-Key) of an LACP-enableaggregation port cannot be modified.4) The operation key (O-Key) which is contained in LACPDU of an LACP-enableaggregation port is the same as its peer.

1.1.41.1.41.1.41.1.4 StaticStaticStaticStatic AggregationAggregationAggregationAggregation GroupGroupGroupGroup

1.1.1.11.1.1.11.1.1.11.1.1.1 IntroductionIntroductionIntroductionIntroduction totototo staticstaticstaticstatic aggregationaggregationaggregationaggregationA static aggregation group is manually created. All its member ports are manually addedand can be manually removed. Each static aggregation group must contain at least oneport. When a static aggregation group contains only one port, you cannot remove thewhole aggregation group unless you remove the port.LACP is disabled on the member ports of static aggregation groups, and enabling LACPon such a port will not take effect.

1.1.1.21.1.1.21.1.1.21.1.1.2 PortPortPortPort statusstatusstatusstatus ofofofof staticstaticstaticstatic aggregationaggregationaggregationaggregation groupgroupgroupgroupA port in a static aggregation group is only in one state: on, which means the port in astatic aggregation group must transceive packets. There can be at most 8 ports in a staticaggregation group.

Page 7: Chapter 05 Link Aggregation Configuration (1)

Link Aggregation Configuration

Maipu Confidential & Proprietary Information Page 7 of 15

1.1.51.1.51.1.51.1.5 DynamicDynamicDynamicDynamic LACPLACPLACPLACP AggregationAggregationAggregationAggregation GroupGroupGroupGroup

1.1.1.31.1.1.31.1.1.31.1.1.3 IntroductionIntroductionIntroductionIntroduction totototo DDDDynamicynamicynamicynamic LACPLACPLACPLACP AAAAggregationggregationggregationggregation GGGGrouprouprouproupA dynamic LACP aggregation group is also manually created. All its member ports aremanually added and can be manually removed. Each dynamic aggregation group mustcontain at least one port. When a dynamic aggregation group contains only one port, youcannot remove the whole aggregation group unless you remove the port.LACP is enabled on the member ports of dynamic aggregation groups, and disablingLACP on such a port will not take effect.

1.1.1.41.1.1.41.1.1.41.1.1.4 MMMModeodeodeode ofofofof DDDDynamicynamicynamicynamic AAAAggregationggregationggregationggregation GGGGrouprouprouproupThe mode of dynamic aggregation group can be active or passive. It is manually set byusers. The dynamic aggregation group in active mode will actively send LACPDUs;group in passive mode will only response LACPDUs passively. When interconnecting withanother device, static mode can only interconnect with static mode; active mode caninterconnect with both active and passive mode, but passive mode can only interconnectwith active mode. The default mode is ACTIVE.

1.1.1.51.1.1.51.1.1.51.1.1.5 PortPortPortPort statusstatusstatusstatus ofofofof DDDDynamicynamicynamicynamic AAAAggregationggregationggregationggregation GGGGrouprouprouproupA port in a dynamic aggregation group can be in one of the three states: bundle (bndl),standby, and no-bundle (no-bndl). In dynamic aggregation group, only bundled ports cantransceive LACP protocol packets; others cannot.

Note:Note:Note:Note:

In an aggregation group, the bundled port with the minimum port numberserves as the master port of the group, and other bundled ports serve asmember ports of the group.No-bundled ports are the ports which fail to form link aggregation with otherports in the dynamic aggregation.

There is a limit on the number of bundled ports in an aggregation group. Therefore, if thenumber of the member ports that can be set as bundled ports in an aggregation groupexceeds the maximum number supported by the device, the system will negotiate with itspeer end, to determine the states of the member ports according to the port IDs of thepreferred device (that is, the device with smaller system ID). The following is thenegotiation procedure:

1) 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 systempriorities are equal. The device with smaller device ID will be considered as the preferredone.

2) Compare port IDs (port priority + port number) on the preferred device. Thecomparison between two port IDs is as follows: First compare the two port priorities, then

Page 8: Chapter 05 Link Aggregation Configuration (1)

Link Aggregation Configuration

Maipu Confidential & Proprietary Information Page 8 of 15

the two port numbers if the two port priorities are equal; the port with the smallest port IDis the bundled port and the left ports are standby ports.

1.1.1.61.1.1.61.1.1.61.1.1.6 ConfiguringConfiguringConfiguringConfiguring SSSSystemystemystemystem PPPPriorityriorityriorityriorityLACP determines the bundled and standby states of the dynamic aggregation groupmembers according to the priority of the port ID on the end with the preferred device ID.

The device ID consists of system priority and system MAC address, that is, device ID =system priority + system MAC address.

When two device IDs are compared, the system priorities are compared first, and thesystem MAC addresses are compared when the system priorities are the same. Thedevice with smaller device ID will be considered as the preferred one.

Note:Note:Note:Note:

Changing the system priority of a device may change the preferred devicebetween the two parties, and may further change the states (bundled orstandby) of the member ports of dynamic aggregation groups.

1.1.1.71.1.1.71.1.1.71.1.1.7 ConfiguringConfiguringConfiguringConfiguring PPPPortortortort PPPPriorityriorityriorityriorityLACP determines the bundled and standby states of the dynamic aggregation groupmembers according to the port IDs on the device with the preferred device ID. When thenumber of members in an aggregation group exceeds the number of bundled portssupported by the device in each group, LACP determines the bundled and standby statesof the ports according to the port IDs. The ports with superior port IDs will be set tobundled state and the ports with inferior port IDs will be set to standby state.

The port ID consists of port priority and port number, that is, port ID = port priority + portnumber. When two port IDs are compared, the port priorities are compared first, and theport numbers are compared if the port priorities are the same. The port with smaller portID is considered as the preferred one.

1.21.21.21.2 RedundancyRedundancyRedundancyRedundancy ofofofof IIIInterconnectednterconnectednterconnectednterconnected DDDDeviceeviceeviceevice

LACP provides link redundancy mechanism to guarantee the redundancy conformity ofthe two interconnected devices and user can configure the redundant link which isrealized by system and port priority. The steps are as following:

Step 1 Selection reference. The two devices know the LACP sys-id and system MACaddress of each other through LACPDUs exchanges. The system priorities are comparedfirst, and the system MAC addresses are compared when the system priorities are thesame. 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 arecompared if the port priorities are the same. The port with smaller port ID is considered asthe preferred one.

Page 9: Chapter 05 Link Aggregation Configuration (1)

Link Aggregation Configuration

Maipu Confidential & Proprietary Information Page 9 of 15

1.31.31.31.3 Load-balancingLoad-balancingLoad-balancingLoad-balancing PolicyPolicyPolicyPolicy

Load-balancing policy is specific physical link selection strategy when sending packets,which can be source MAC, destination MAC, source and destination MAC, source IP,destination IP, and source and destination IP. The default strategy is source MAC.

1.41.41.41.4 LinkLinkLinkLinkAggregationAggregationAggregationAggregation ConfigurationConfigurationConfigurationConfiguration

Link aggregation configuration includes:

� Configuring a Static Aggregation Group

� Configuring a Dynamic LACP Aggregation Group

� Displaying and Maintaining Link Aggregation Configuration

1.4.11.4.11.4.11.4.1 ConfiguringConfiguringConfiguringConfiguring aaaa StaticStaticStaticStatic AggregationAggregationAggregationAggregation GroupGroupGroupGroup

You can create a static aggregation group, or remove an existing static aggregation group(before that, all the member ports in the group are removed).

You can manually add/remove a port to/from a static aggregation group, and a port canonly be manually added/removed to/from a static aggregation group.

Perform the configuration in global configuration mode.

Table 1-1 Configure a manual aggregation group

Operation Command Description

Create a staticaggregation group

channel-groupchannel-groupchannel-groupchannel-groupchannel-group-number

channel-group-numberranges from 0 to 12

If the group has alreadyexisted, turn to step 2.

Configureload-balancingpolicy

channel-groupchannel-groupchannel-groupchannel-group load-balanceload-balanceload-balanceload-balance{dst-ip|dst-mac|src-dst-ip|src-dst{dst-ip|dst-mac|src-dst-ip|src-dst{dst-ip|dst-mac|src-dst-ip|src-dst{dst-ip|dst-mac|src-dst-ip|src-dst-mac|src-ip|src-mac}-mac|src-ip|src-mac}-mac|src-ip|src-mac}-mac|src-ip|src-mac}

Enter interfaceconfigurationmode

interfaceinterfaceinterfaceinterface ethernetethernetethernetethernet interface_num Enter the port mode whichyou want to add to theaggregation group.

Enter interfacerangeconfigurationmode

interfaceinterfaceinterfaceinterface rangerangerangerange ethernetethernetethernetethernetinterface_list

If there are multiple ports tobe added, enter interfacerange mode.

Add a port to theaggregation group

channel-groupchannel-groupchannel-groupchannel-groupchannel-group-number modemodemodemode onononon

channel-group-numbershould be existed .

Page 10: Chapter 05 Link Aggregation Configuration (1)

Link Aggregation Configuration

Maipu Confidential & Proprietary Information Page 10 of 15

Delete a port froman aggregationgroup

nononono channel-groupchannel-groupchannel-groupchannel-groupchannel-group-number

This command used inglobal configuration mode isfor deleting a staticaggregation group.

Back to globalconfigurationmode

exitexitexitexit

Delete a staticaggregation group

nononono channel-groupchannel-groupchannel-groupchannel-groupchannel-group-number

This command used ininterface configurationmode is for deleting a portfrom an aggregation group.

Delete all ports from thegroup first before deletingthe group.

1.4.21.4.21.4.21.4.2 ConfiguringConfiguringConfiguringConfiguring aaaa DynamicDynamicDynamicDynamic LACPLACPLACPLACP AggregationAggregationAggregationAggregation GroupGroupGroupGroup

You can manually add/remove a port to/from a dynamic aggregation group, and a port canonly be manually added/removed to/from a dynamic aggregation group.

Perform the configuration in global configuration mode.

Table 1-1 Configure a dynamic LACP aggregation groups

Step Operation Command Description

1 Create adynamicaggregationgroup

channel-groupchannel-groupchannel-groupchannel-groupchannel-group-number

channel-group-number ranges from0 to 12

If the group has already existed, turnto step 2.

2 Configureload-balancing policy

channel-groupchannel-groupchannel-groupchannel-groupload-balanceload-balanceload-balanceload-balance{dst-ip|dst-mac|src-dst-i{dst-ip|dst-mac|src-dst-i{dst-ip|dst-mac|src-dst-i{dst-ip|dst-mac|src-dst-ip|src-dst-mac|src-ip|src-p|src-dst-mac|src-ip|src-p|src-dst-mac|src-ip|src-p|src-dst-mac|src-ip|src-mac}mac}mac}mac}

The default policy is source mac.

3 Configuresystempriority

lacplacplacplacp system-prioritysystem-prioritysystem-prioritysystem-prioritypriority

priority ranges from 1 to 65535. Thedefault priority is 32768.

4(1) Enterinterfaceconfiguration

interfaceinterfaceinterfaceinterface ethernetethernetethernetethernetinterface_num

Enter the port mode which you wantto add to the aggregation group.

Page 11: Chapter 05 Link Aggregation Configuration (1)

Link Aggregation Configuration

Maipu Confidential & Proprietary Information Page 11 of 15

mode

4(2) Enterinterfacerangeconfigurationmode

interfaceinterfaceinterfaceinterface rangerangerangerange ethernetethernetethernetethernetinterface_list

If there are multiple ports to beadded, enter interface range mode.

5 Add a port totheaggregationgroup

channel-groupchannel-groupchannel-groupchannel-groupchannel-group-numbermodemodemodemode {activeactiveactiveactive |||| passivepassivepassivepassive}

channel-group-number should beexisted .

6 Configureport priority

lacplacplacplacp port-priorityport-priorityport-priorityport-priority priority priority ranges from 1 to 65535. Thedefault priority is 128.

7 Delete a portfrom anaggregationgroup

nononono channel-groupchannel-groupchannel-groupchannel-groupchannel-group-number

This command used in globalconfiguration mode is for deleting astatic aggregation group.

8 Back toglobalconfigurationmode

exitexitexitexit

9 Delete adynamicaggregationgroup

nononono channel-groupchannel-groupchannel-groupchannel-groupchannel-group-number

This command used in interfaceconfiguration mode is for deleting aport from an aggregation group.

Delete all ports from the group firstbefore deleting the group.

1.4.31.4.31.4.31.4.3 DisplayingDisplayingDisplayingDisplaying andandandand MaintainingMaintainingMaintainingMaintaining LinkLinkLinkLink AggregationAggregationAggregationAggregation

ConfigurationConfigurationConfigurationConfiguration

After the above configuration, execute the show command in any mode to display therunning status after the link aggregation configuration and verify your configuration.

Table 1-1 Display and maintain link aggregation configuration

Operation Command Description

Show system LACPID

showshowshowshow lacplacplacplacp sys-idsys-idsys-idsys-id System LACP-IDconsists of 16-bit systempriority and 48-bit system

Page 12: Chapter 05 Link Aggregation Configuration (1)

Link Aggregation Configuration

Maipu Confidential & Proprietary Information Page 12 of 15

MAC.

Show port memberinfo of theaggregation group

showshowshowshow lacplacplacplacp internalinternalinternalinternal[channel-group-number]

Show neighbor portinfo of theaggregation group

showshowshowshow lacplacplacplacp neighborneighborneighborneighbor[channel-group-number]

1.51.51.51.5 LACPLACPLACPLACP ConfigurationConfigurationConfigurationConfiguration ExampleExampleExampleExample

I. Network requirementsAs shown in Figure 1-1, the link between switch-A and switch-B should be more reliable.switch-A and switch-B should realize load-balance.II.II.II.II. NetworkNetworkNetworkNetwork diagramdiagramdiagramdiagram

Figure 1-2 LACP network diagram

III.III.III.III. ConfigurationConfigurationConfigurationConfiguration procedureprocedureprocedureprocedure1、Create channel-group#Configure switch-Aswitch-A#configure terminalswitch-A(config)#channel-group 1#Configure switch-Bswitch-B#configure terminalswitch-B(config)#channel-group 1

2、Configure channel-group load-balance#Configure switch-Aswitch-A(config)#channel-group load-balance src-dst-mac#Configure switch-Bswitch-B(config)#channel-group load-balance src-dst-mac

3、Configure LACP system and port priority#Configure switch-Aswitch-A(config)#lacp system-priority 1024switch-A(config)#interface range ethernet 0/0/1 to ethernet 0/0/2switch-A(config-if-range)#lacp port-priority 64switch-A(config-if-range)#exit

Page 13: Chapter 05 Link Aggregation Configuration (1)

Link Aggregation Configuration

Maipu Confidential & Proprietary Information Page 13 of 15

#Configure switch-Bswitch-B(config)#lacp system-priority 2048switch-B(config)#interface range ethernet 0/0/3 to ethernet 0/0/4switch-B(config-if-range)#lacp port-priority 256switch-B(config-if-range)#exit

4、Add port member for channel-group1)Static#Configure switch-Aswitch-A(config)#interface range ethernet 0/0/1 to ethernet 0/0/2switch-A(config-if-range)#channel-group 1 mode onRemember to re-config mac-addresses associated with port e0/0/1Remember to re-config mac-addresses associated with port e0/0/2#Configure switch-Bswitch-B(config)#interface range ethernet 0/0/3 to ethernet 0/0/4switch-B(config-if-range)#channel-group 1 mode onRemember to re-config mac-addresses associated with port e0/0/3Remember to re-config mac-addresses associated with port e0/0/4

2)Dynamic#Configure switch-Aswitch-A(config)#interface range ethernet 0/0/1 to ethernet 0/0/2switch-A(config-if-range)#channel-group 1 mode activeRemember to re-config mac-addresses associated with port e0/0/1Remember to re-config mac-addresses associated with port e0/0/2#Configure switch-Bswitch-B(config)#interface range ethernet 0/0/3 to ethernet 0/0/4switch-B(config-if-range)#channel-group 1 mode passiveRemember to re-config mac-addresses associated with port e0/0/3Remember to re-config mac-addresses associated with port e0/0/4

5、Check the configuration1)show lacp internal#show lacp internal of switch-Aswitch-A(config-if-range)#show lacp internalLoad balance: src-dst-mac

Channel: 1, static channelPort State A-Key O-Key Priority Logic-port Actor-statee0/0/1 bndl - - - 1 -e0/0/2 bndl - - - 1 -

actor-state: activity/timeout/aggregation/synchronization

Page 14: Chapter 05 Link Aggregation Configuration (1)

Link Aggregation Configuration

Maipu Confidential & Proprietary Information Page 14 of 15

collecting/distributing/defaulted/expired

#show lacp internal of switch-Aswitch-A(config-if-range)#show lacp internalLoad balance: src-dst-mac

Channel: 1, dynamic channelPort State A-Key O-Key Priority Logic-port Actor-statee0/0/1 bndl 2 2 64 1 10111100e0/0/2 bndl 2 2 64 1 10111100

actor-state: activity/timeout/aggregation/synchronizationcollecting/distributing/defaulted/expired

#show lacp internal of switch-Bswitch-B(config-if-range)#show lacp internalLoad balance: src-dst-mac

Channel: 1, dynamic channelPort State A-Key O-Key Priority Logic-port Actor-statee0/0/3 bndl 2 2 256 3 00111100e0/0/4 bndl 2 2 256 3 00111100

actor-state: activity/timeout/aggregation/synchronizationcollecting/distributing/defaulted/expired

2)Show LACP neighbor#Show LACP neighbor of switch-Aswitch-A(config-if-range)#show lacp neighborChannel: 1Local Port Key Pri ID Timeout Nei-statee0/0/1 3 2 256 000a5a020305 82(90) 00111100e0/0/2 4 2 256 000a5a020305 80(90) 00111100

nei-state: activity/timeout/aggregation/synchronizationcollecting/distributing/defaulted/expired

#Show LACP neighbor of switch-Bswitch-B(config-if-range)#show lacp neighborChannel: 1Local Port Key Pri ID Timeout Nei-statee0/0/3 1 2 64 000a5a010203 71(90) 10111100e0/0/4 2 2 64 000a5a010203 69(90) 10111100

Page 15: Chapter 05 Link Aggregation Configuration (1)

Link Aggregation Configuration

Maipu Confidential & Proprietary Information Page 15 of 15

nei-state: activity/timeout/aggregation/synchronizationcollecting/distributing/defaulted/expired

3)Show system ID#Show switch-A system IDswitch-A(config-if-range)#show lacp sys-id1024,000a5a010203#Show switch-B system IDswitch-B(config-if-range)#show lacp sys-id2048,000a5a020305

6、Delete port member from channel-group#Configure switch-Aswitch-A(config-if-range)#no channel-group 1Remember to re-config mac-addresses associated with port e0/0/1Remember to re-config mac-addresses associated with port e0/0/2switch-A(config-if-range)#exit#Configure switch-Bswitch-B(config-if-range)#no channel-group 1Remember to re-config mac-addresses associated with port e0/0/3Remember to re-config mac-addresses associated with port e0/0/4switch-B(config-if-range)#exit

7、Delete channel-group#Configure switch-Aswitch-A(config)#no channel-group 1#Configure switch-Bswitch-B(config)#no channel-group 1