H3C SR6600&SR6600-X Routers Configuration Examples-6W100

HomeSupportRoutersConfigure & DeployConfiguration ExamplesH3C SR6600&SR6600-X Routers Configuration Examples-6W100
03-H3C SR6600&SR6600-X Routers Ethernet Link Aggregation Configuration Examples

 

H3C SR6600&SR6600-X Routers

Ethernet Link Aggregation Configuration Examples

 

 

SR6600 Router Series

SR6600-X Router Series

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright © 2017 New H3C Technologies Co., Ltd. All rights reserved.

No part of this manual may be reproduced or transmitted in any form or by any means without prior written consent of New H3C Technologies Co., Ltd.

Except for the trademarks of New H3C Technologies Co., Ltd., any trademarks that may be mentioned in this document are the property of their respective owners.

The information in this document is subject to change without notice.

Contents

Introduction· 1

Prerequisites· 1

Example: Configuring Layer 3 link aggregation· 1

Network requirements· 1

Software version used· 1

Configuration restrictions and guidelines· 1

Configuration procedures· 1

Verifying the configuration· 2

Configuration files· 3

Example: Configuring Layer 3 link aggregation load sharing· 4

Network requirements· 4

Software version used· 4

Configuration restrictions and guidelines· 4

Configuration procedures· 4

Verifying the configuration· 5

Configuration files· 6

Example: Configuring link aggregation between H3C and Cisco devices· 7

Network requirements· 7

Requirements analysis· 7

Software version used· 7

Configuration restrictions and guidelines· 7

Configuration procedures· 8

Verifying the configuration· 8

Configuration files· 10

Related documentation· 11

 


Introduction

This document provides Ethernet link aggregation configuration examples.

Prerequisites

The configuration examples in this document were created and verified in a lab environment, and all the devices were started with the factory default configuration. When you are working on a live network, make sure you understand the potential impact of every command on your network.

This document assumes that you have basic knowledge of Ethernet link aggregation.

Example: Configuring Layer 3 link aggregation

Network requirements

On the network as shown in Figure 1, perform the following tasks:

·     Configure a Layer 3 dynamic aggregation group on both Device A and Device B.

·     Configure IP addresses and subnet masks for the corresponding Layer 3 aggregate interfaces.

Figure 1 Network diagram

 

Software version used

This configuration example was created and verified on R7607.

Configuration restrictions and guidelines

An aggregation group can operate in static or dynamic mode. You can choose one mode as required.

·     In a static aggregation group, the aggregation states of the member ports are not affected by the peer ports. Static link aggregation is stable.

·     In a dynamic aggregation group, the local system and the peer system automatically maintain the aggregation states of the member ports. Dynamic link aggregation reduces the administrators' workload.

Configuration procedures

1.     Configure Device A:

# Create Layer 3 aggregate interface Route-Aggregation 1. Use one of the following methods as needed.

¡     Use the static aggregation mode to create Layer 3 aggregate interface Route-Aggregation 1.

<DeviceA> system-view

[DeviceA] interface route-aggregation 1

¡     Use the dynamic aggregation mode to create Layer 3 aggregate interface Route-Aggregation 1.

<DeviceA> system-view

[DeviceA] interface route-aggregation 1

[DeviceA-Route-Aggregation1] link-aggregation mode dynamic

# Configure an IP address and subnet mask for Layer 3 aggregate interface Route-Aggregation 1.

[DeviceA-Route-Aggregation1] ip address 192.168.1.1 24

[DeviceA-Route-Aggregation1] quit

# Assign ports Ten-GigabitEthernet 2/1/1 through Ten-GigabitEthernet 2/1/3 to aggregation group 1.

[DeviceA] interface range gigabitethernet 2/1/1 to gigabitethernet 2/1/3

[DeviceA-if-range] port link-aggregation group 1

[DeviceA-if-range] quit

2.     Configure Device B in the same way Device A is configured. (Details not shown.)

Verifying the configuration

# Display detailed information about the link aggregation groups on Device A when you use static aggregation mode.

[DeviceA] display link-aggregation verbose

Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing

Port Status: S -- Selected, U -- Unselected, I -- Individual

Flags:  A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,

        D -- Synchronization, E -- Collecting, F -- Distributing,

        G -- Defaulted, H -- Expired

 

Aggregate Interface: Route-Aggregation1

Aggregation Mode: Static

Loadsharing Type: Shar

  Port             Status  Priority Oper-Key

--------------------------------------------------------------------------------

  GE2/1/1          S       32768    1

  GE2/1/2          S       32768    1

  GE2/1/3          S       32768    1

The output shows that all member ports in the local aggregation group are in Selected state. The Selected states of the local member ports are not affected by the Selected states of the peer member ports.

# Display detailed information about the link aggregation groups on Device A when you use dynamic aggregation mode.

[DeviceA] display link-aggregation verbose

Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing

Port Status: S -- Selected, U -- Unselected, I -- Individual

Flags:  A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,

        D -- Synchronization, E -- Collecting, F -- Distributing,

        G -- Defaulted, H -- Expired

 

Aggregate Interface: Route-Aggregation1

Aggregation Mode: Dynamic

Loadsharing Type: Shar

System ID: 0x8000, 000f-e267-6c6a

Local:

  Port             Status  Priority Oper-Key  Flag

--------------------------------------------------------------------------------

  GE2/1/1          S       32768    1         {ACDEF}

  GE2/1/2          S       32768    1         {ACDEF}

  GE2/1/3          S       32768    1         {ACDEF}

Remote:

  Actor            Partner Priority Oper-Key  SystemID               Flag

--------------------------------------------------------------------------------

  GE2/1/1          1       32768    1         0x8000, 000f-e267-57ad {ACDEF}

  GE2/1/2          2       32768    1         0x8000, 000f-e267-57ad {ACDEF}

  GE2/1/3          3       32768    1         0x8000, 000f-e267-57ad {ACDEF}

The output shows that the local member ports and the corresponding peer member ports are all Selected. In the dynamic link aggregation mode, each local member port and its peer member port have the same Selected state through exchanging LACPDUs. The user data traffic can be forwarded correctly.

Configuration files

·     Device A:

#

¡     In the static aggregation mode:

#

interface route-aggregation1

 ip address 192.168.1.1 255.255.255.0

#

¡     In the dynamic aggregation mode:

#

interface route-aggregation1

 ip address 192.168.1.1 255.255.255.0

 link-aggregation mode dynamic

#

interface GigabitEthernet2/1/1

 port link-mode route

port link-aggregation group 1

#

interface GigabitEthernet2/1/2

 port link-mode route

port link-aggregation group 1

#

interface GigabitEthernet2/1/3

 port link-mode route

port link-aggregation group 1

#

·     Device B:

The configuration file on Device B is similar as the configuration file on Device A.

Example: Configuring Layer 3 link aggregation load sharing

Network requirements

On the network as shown in Figure 2, perform the following tasks:

·     Configure Layer 3 static aggregation groups 1 and 2 on Device A and Device B.

·     Configure IP addresses and subnet masks for the corresponding Layer 3 aggregate interfaces.

·     Configure link aggregation group 1 to load share packets based on source IP addresses.

·     Configure link aggregation group 2 to load share packets based on destination IP addresses.

Figure 2 Network diagram

 

Software version used

This configuration example was created and verified on R7607.

Configuration restrictions and guidelines

You can configure global or group-specific link aggregation load sharing mode. A link aggregation group preferentially uses the group-specific load sharing mode. This example uses the group-specific load sharing mode.

Configuration procedures

1.     Configure Device A:

# Create Layer 3 aggregate interface Route-Aggregation 1.

<DeviceA> system-view

[DeviceA] interface route-aggregation 1

# Configure Layer 3 aggregation group 1 to load share packets based on source IP addresses.

[DeviceA-Route-Aggregation1] link-aggregation load-sharing mode source-ip

# Configure an IP address and subnet mask for Layer 3 aggregate interface Route-Aggregation 1.

[DeviceA-Route-Aggregation1] ip address 192.168.1.1 24

[DeviceA-Route-Aggregation1] quit

# Create Layer 3 aggregate interface Route-Aggregation 2.

[DeviceA] interface route-aggregation 2

# Configure Layer 3 aggregation group 2 to load share packets based on destination IP addresses.

[DeviceA-Route-Aggregation2] link-aggregation load-sharing mode destination-ip

# Configure an IP address and subnet mask for Layer 3 aggregate interface Route-Aggregation 2.

[DeviceA-Route-Aggregation2] ip address 192.168.2.1 24

[DeviceA-Route-Aggregation2] quit

# Assign Layer 3 Ethernet interfaces GigabitEthernet 2/1/1 and Ten-GigabitEthernet 2/1/2 to aggregation group 1.

[DeviceA] interface range gigabitethernet 2/1/1 gigabitethernet 2/1/2

[DeviceA-if-range] port link-aggregation group 1

[DeviceA-if-range] quit

# Assign Layer 3 Ethernet interfaces GigabitEthernet 2/1/3 and Ten-GigabitEthernet 2/1/4 to aggregation group 2.

[DeviceA] interface range gigabitethernet 2/1/3 gigabitethernet 2/1/4

[DeviceA-if-range] port link-aggregation group 2

[DeviceA-if-range] quit

2.      Configure Device B in the same way Device A is configured. (Details not shown.)

Verifying the configuration

# Display detailed information about all aggregation groups on Device A.

[DeviceA] display link-aggregation verbose

Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing

Port Status: S -- Selected, U -- Unselected, I -- Individual

Flags:  A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,

        D -- Synchronization, E -- Collecting, F -- Distributing,

        G -- Defaulted, H -- Expired

 

Aggregate Interface: Route-Aggregation1

Aggregation Mode: Static

Loadsharing Type: Shar

  Port             Status  Priority Oper-Key

--------------------------------------------------------------------------------

  GE2/1/1          S       32768    1

  GE2/1/2          S       32768    1

 

Aggregate Interface: Route-Aggregation2

Aggregation Mode: Static

Loadsharing Type: Shar

  Port             Status  Priority Oper-Key

--------------------------------------------------------------------------------

  GE2/1/3          S       32768    2

  GE2/1/4          S       32768    2

The output shows that:

·     Link aggregation groups 1 and 2 are both load-shared Layer 3 static aggregation groups.

·     Each aggregation group contains two Selected ports.

# Display the group-specific load sharing modes of all aggregation groups on Device A.

[DeviceA] display link-aggregation load-sharing mode interface

Route-Aggregation1 Load-Sharing Mode:

source-ip address

 

Route-Aggregation2 Load-Sharing Mode:

destination-ip address

The output shows that:

·     Link aggregation group 1 load shares packets based on source IP addresses.

·     Link aggregation group 2 load shares packets based on destination IP addresses.

Configuration files

·     Device A:

#

interface Route-Aggregation1

 ip address 192.168.1.1 255.255.255.0

 link-aggregation load-sharing mode source-ip

#

interface Route-Aggregation2

 ip address 192.168.2.1 255.255.255.0

 link-aggregation load-sharing mode destination-ip

#

interface GigabitEthernet2/1/1

 port link-mode route

 port link-aggregation group 1

#

interface GigabitEthernet2/1/2

 port link-mode route

 port link-aggregation group 1

#

interface GigabitEthernet2/1/3

 port link-mode route

 port link-aggregation group 2

#

interface GigabitEthernet2/1/4

 port link-mode route

 port link-aggregation group 2

#

·     Device B:

The configuration file on Device B is similar as the configuration file on Device A.

Example: Configuring link aggregation between H3C and Cisco devices

Network requirements

On the network as shown in Figure 3, perform the following tasks:

·     Configure a Layer 3 dynamic aggregation group on both Device A (H3C device) and Device B (Cisco device).

·     Configure IP addresses and subnet masks for the corresponding Layer 3 aggregate interfaces.

Figure 3 Network diagram

 

 

Requirements analysis

To meet the network requirements, you must perform the following tasks:

·     To configure a Layer 3 dynamic aggregation group on Device A, assign GigabitEthernet 2/1/1 through GigabitEthernet 2/1/3 to the aggregation group.

·     To configure a Layer 3 dynamic aggregation group on Device B, configure LACP to manage channeling and set the LACP operating mode to active.

Software version used

This configuration example was created and verified on R7607.

Configuration restrictions and guidelines

In a static aggregation group, the Selected state of a port is not affected by whether the peer port is added to an aggregation group and is Selected. As a result, the Selected state of a port might be different from the Selected state of the peer port. When both ends support static aggregation and dynamic aggregation, H3C recommends using dynamic aggregation.

Configuration procedures

1.     Configure Device A:

# Create Layer 3 aggregate interface Route-Aggregation 1, and configure the link aggregation mode as dynamic.

<DeviceA> system

[DeviceA] interface route-aggregation 1

[DeviceA-Route-Aggregation1] link-aggregation mode dynamic

# Configure an IP address and subnet mask for Route-Aggregation 1.

[DeviceA-Route-Aggregation1] ip address 192.168.1.1 24

[DeviceA-Route-Aggregation1] quit

# Assign Layer 3 Ethernet interfaces GigabitEthernet 2/1/1 through GigabitEthernet 2/1/3 to aggregation group 1.

[DeviceA] interface range gigabitethernet 2/1/1 to gigabitethernet 2/1/3

[DeviceA-if-range] port link-aggregation group 1

[DeviceA-if-range] quit

2.     Configure Device B:

# Configure an IP address and subnet mask for interface port-channel 1.

DeviceB>enable

DeviceB#configure terminal

DeviceB(config)#interface port-channel 1

DeviceB(config-if)#ip address 192.168.1.2 255.255.255.0

# Configure LACP to manage channeling. By default, the PAgP is used.

DeviceB(config-if)#channel-protocol lacp

DeviceB(config-if)#exit

# Enter interface range view.

DeviceB(config)#interface range gigabitethernet 1/1 – 3

# Assign GigabitEthernet 1/1 through GigabitEthernet 1/3 to channel group 1 and set the LACP operating mode to active.

DeviceB(config-if-range)#no switchport

DeviceB(config-if-range)#channel-group 1 mode active

DeviceB(config-if-range)#exit

Verifying the configuration

# Display detailed information about all aggregation groups on Device A.

[DeviceA] display link-aggregation verbose

Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing

Port Status: S -- Selected, U -- Unselected, I -- Individual

Flags:  A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,

        D -- Synchronization, E -- Collecting, F -- Distributing,

        G -- Defaulted, H -- Expired

 

Aggregate Interface: Route-Aggregation1

Aggregation Mode: Dynamic

Loadsharing Type: Shar

System ID: 0x8000, 000f-e267-6c6a

Local:

  Port             Status  Priority Oper-Key  Flag

--------------------------------------------------------------------------------

  GE2/1/1          S       32768    1         {ACDEF}

  GE2/1/2          S       32768    1         {ACDEF}

  GE2/1/3          S       32768    1         {ACDEF}

Remote:

  Actor            Partner Priority Oper-Key  SystemID               Flag

--------------------------------------------------------------------------------

  GE2/1/1          1       32768    1         0x8000, 000f-e267-57ad {ACDEF}

  GE2/1/2          2       32768    1         0x8000, 000f-e267-57ad {ACDEF}

  GE2/1/3          3       32768    1         0x8000, 000f-e267-57ad {ACDEF}

The output shows that the local member ports and the corresponding peer member ports are all Selected. In the dynamic link aggregation mode, each local member port and its peer member port have the same Selected state through exchanging LACPDUs. The user data traffic can be forwarded correctly.

# Display summary information about Ethernet channel group 1 on Device B.

DeviceB#show etherchannel summary

Flags:  D - down        P - in port-channel

        I - stand-alone s - suspended

        H - Hot-standby (LACP only)

        R - Layer3      S - Layer2

        U - in use      f - failed to allocate aggregator

        u - unsuitable for bundling

        w - waiting to be aggregated

        d - default port

 

 

Number of channel-groups in use: 1

Number of aggregators:           1

 

Group  Port-channel  Protocol    Ports

------+-------------+-----------+----------------------------------------------

 

1      Po1(SU)           LACP   Gi1/1(P) Gi1/2(P) Gi1/3(P)

# Display port-channel information for Ethernet channel group 1 on Device B.

DeviceB#show etherchannel port-channel

                Channel-group listing:

                ----------------------

 

Group: 1

----------

                Port-channels in the group:

                ---------------------------

 

Port-channel: Po1    (Primary Aggregator)

------------

 

Age of the Port-channel   = 00d:00h:26m:35s

Logical slot/port   = 2/1       Number of ports = 3

GC                  = 0x00000000      HotStandBy port = null

Port state          = Port-channel

Protocol            =   LACP

Port Security       = Disabled

 

Ports in the Port-channel:

 

Index   Load   Port     EC state        No of bits

------+------+------+------------------+-----------

  0     00     Gi1/1    Active             0

  0     00     Gi1/2    Active             0

  0     00     Gi1/3    Active             0

Time since last port bundled:    00d:00h:12m:13s    Gi0/2

Configuration files

·     Device A:

#

interface route-aggregation1

 ip address 192.168.1.1 255.255.255.0

 link-aggregation mode dynamic

#

interface GigabitEthernet2/1/1

 port link-mode route

port link-aggregation group 1

#

interface GigabitEthernet2/1/2

 port link-mode route

port link-aggregation group 1

#

interface GigabitEthernet2/1/3

 port link-mode route

port link-aggregation group 1

#

·     Device B:

Building configuration...

 

Current configuration : 1444 bytes

!

version 12.2

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname Switch

!

!

!

!

!

!

!

!

interface GigabitEthernet1/1

 no switchport

 channel-protocol lacp

 channel-group 1 mode active

!

interface GigabitEthernet1/2

 no switchport

 channel-protocol lacp

 channel-group 1 mode active

!

interface GigabitEthernet1/3

 no switchport

 channel-group 1 mode active

!

interface Port-channel 1

 no switchport

 channel-protocol lacp

 ip address 192.168.1.1 255.255.255.0

...

Related documentation

·     H3C SR6600 SR6600-X Routers Layer 2—LAN Switching Command Reference-Release 7607

·     H3C SR6600 SR6600-X Routers Layer 2—LAN Switching Configuration Guide-Release 7607

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网