Cisco catalyst настройка lacp

Cisco Catalyst + LACP ( Агрегирование каналов c помощью LACP на оборудовании Cisco Catalyst. )

23 октября 2010 (обновлено 31 января 2015)

Platform: Cisco Catalyst 2950/2960.

Задача: обеспечить высокий уровень надёжности передачи данных между коммутаторами Cisco Catalyst вкупе с увеличением пропускной способности каналов.

Решение: применение «агрегирования каналов» (link aggregation) для объединения нескольких физических «линков» в один логический с заданными параметрами. Технология LACP (Link Aggregation Control Protocol, описывается стандартом IEEE 802.3ad) обеспечит нам контроль за состоянием физических «линков» и перераспределение с балансировкой трафика между доступными. Использование LACP потребует поддержки технологии обеими сторонами канала передачи данных, но предоставит самые лучшие возможности для применения из известных мне вариантов резервирования и балансирования.

Для начала потребуется указать в свойствах физического интерфейса коммутатора режим применения. Определяем интерфейсы в группу «channel-group 1» привязываемую к автоматически создаваемому виртуальному интерфейсу «Port-channel1»:

Соответственно, «channel-group 2» будет привязана к автоматически создаваемому виртуальному интерфейсу «Port-channel2», и так далее. Группы и виртуальные интерфейсы именуются последовательно по мере их описания, пропуски в нумерации не допускается.

После привязывания физических интерфейсов к виртуальному интерфейсу группы «агрегированных каналов» опишем свойства этого виртуального интерфейса:

В примере виртуальный порт «Port-channel1» описан как применяемый в качестве «транка» для передачи «тегированного» трафика нескольких VLAN. Ничто нам не мешает описать его как порт иного рода.

На оборудовании противоположной стороны канала передачи данных настройка аналогична.

Состояние виртуального порта «агрегированных каналов» можно просмотреть следующим образом:

[ уже посетило: 23382 / +2 ] [ интересно! / нет ]

Поблагодарить автора ( сделайте свой денежный вклад в хорошее настроение )

Источник

Configuring LACP (802.3ad) Between a Catalyst 6500/6000 and a Catalyst 4500/4000

Available Languages

Download Options

Bias-Free Language

The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.

Contents

Introduction

This document will show the basic configuration needed to set up an 802.3ad link aggregate between a Catalyst 6500/6000 (running Catalyst OS [CatOS] system software) and a Catalyst 4500/4000 switch. 802.3ad is a new specification from the IEEE that allows us to bundle several physical ports together to form one logical port. This is very similar to the already existing Cisco EtherChannel Solution. The main difference is that the Cisco implementation uses a proprietary protocol called Port Aggregation Protocol (PAgP). The IEEE later defined within 802.3ad a new control protocol for link aggregation called Link Aggregate Control Protocol (LACP).

The primary advantage of using LACP (802.3ad) is for interoperability with other vendor switches. Since PAgP is Cisco proprietary, one cannot aggregate channels between a Cisco switch and a switch from another vendor unless LACP is utilized.

For more details on configuring LACP using CatOS, refer to the following documents:

For information on how to configure LACP using Cisco IOS® Software, refer to the following documents:

Before You Begin

Conventions

For more information on document conventions, see the Cisco Technical Tips Conventions.

Prerequisites

Before attempting this configuration, please ensure that you meet the prerequisites below.

LACP can be used with the following platforms and versions:

Catalyst 6500/6000 series with CatOS version 7.1(1) and later

Catalyst 6500/6000 series with Cisco IOS Software Release 12.1(11b)EX and later

Читайте также:  Драйвера на свисток тп линк

Catalyst 4500/4000 series with CatOS version 7.1(1) and later

Catalyst 4500/4000 Series with Cisco IOS Software Release 12.1(13)EW and later

Components Used

The information in this document is based on the software and hardware versions below.

Catalyst 4003 switch running CatOS 7.1(1) software

Catalyst 6500 switch running CatOS 7.1(1) software

Catalyst 6500 switch running Cisco IOS Software Release 12.1(13)E9

Background Theory

LACP trunking supports four modes of operation, as follows:

On: The link aggregation is forced to be formed without any LACP negotiation .In other words, the switch will neither send the LACP packet nor process any incoming LACP packet. This is similar to the on state for PAgP.

Off: The link aggregation will not be formed. We do not send or understand the LACP packet. This is similar to the off state for PAgP.

Passive: The switch does not initiate the channel, but does understand incoming LACP packets. The peer (in active state) initiates negotiation (by sending out an LACP packet) which we receive and reply to, eventually forming the aggregation channel with the peer. This is similar to the auto mode in PAgP.

Active: We are willing to form an aggregate link, and initiate the negotiation. The link aggregate will be formed if the other end is running in LACP active or passive mode. This is similar to the desirable mode of PAgP.

There are only three valid combinations to run the LACP link aggregate, as follows:

Switch Switch Comments
active active Recommended.
active passive Link aggregation occurs if negotiation is successful.
on on Link aggregation occurs without LACP. Although this works, it is not recommended.

Note: By default, when an LACP channel is configured, the LACP channel mode is passive.

Difference Between CatOS and Cisco IOS System Software

CatOS on the Supervisor Engine and Cisco IOS Software on the MSFC (Hybrid): a CatOS image can be used as the system software to run the Supervisor Engine on Catalyst 6500/6000 switches. If the optional Multilayer Switch Feature Card (MSFC) is installed, a separate Cisco IOS Software image is used to run the MSFC.

Cisco IOS Software on both the Supervisor Engine and MSFC (Native): a single Cisco IOS Software image can be used as the system software to run both the Supervisor Engine and MSFC on Catalyst 6500/6000 switches.

Configure

We assume that we are starting with switches containing empty configurations, and thus having all parameters set as default. We will now include the commands necessary to configure LACP. The steps include the Cisco IOS Software and CatOS commands required. Pick the appropriate command depending on the software that is running on the switch.

Step 1: Setting the channel protocol to LACP

By default, all ports on a Catalyst 4500/4000 and a Catalyst 6500/6000 use channel protocol PAgP and as such are not running LACP. For all ports concerned, you then need to change the channel mode to LACP. On switches running CatOS, you can only change channel mode per module. In the following example, we will change the channel mode for slot 1 and 2 using the set channelprotocol lacp module_number command. The changes can be verified by using the show channelprotocol command.

Cisco IOS Software

The ports on a Catalyst 6500/6000 or a Catalyst 4500/4000 running Cisco IOS Software can act as L2 switchports or L3 routed ports depending on the configuration. For this scenario, configure the interface as a L2 switchport by issuing the switchport command in interface configuration mode.

Next specify which interfaces should be using LACP using the command channel-protocol lacp.

Step 2: Assigning the same admin key to each port that will form the channel and settings channel mode

There is a parameter exchanged in the LACP packet called the admin key. A channel will only be formed between ports having the same admin key. By issuing the set port lacp-channel mod/ports_list command, you will assign all ports in the port_list the same admin key.

Читайте также:  Keenetic giga прошивка программатором

For example, on one device, we assign both ports to the same group. (It gets randomly assigned admin key 56.)

On the other device, we also assign the ports to a single key. (It gets randomly assigned admin key 73.)

Keep in mind that the admin key is only locally significant. In other words, it must be the same only for ports within the switch and is not a factor between different switches.

Cisco IOS Software

If your device runs Cisco IOS Software, this step can be avoided. Proceed directly to Step 3.

Step 3: Change the LACP channel mode

The last step to form the channel is to change the LACP channel mode to active state on one or both of the sides. This can be done using the same commands as those used in Step 2, however, now specifying mode active state. The command syntax is as follows:

set port lacp-channel mod/ports_list mode

Note: To find additional information on the commands used in this document, use the Command Lookup Tool (registered customers only) .

Cisco IOS Software

When you are configuring LACP on a Catalyst 6500/6000 running Cisco IOS Software, use the channel-group command to assign interfaces to the same group.

Note: PAgP mode options like ‘auto’ and ‘desirable’ are available for this command as well, but will not be discussed since this document pertains to configuring LACP only.

Note: The number of valid values for the channel-group number depends on the software release. For releases earlier than Cisco IOS Software Release 12.1(3a)E3, valid values are from 1 to 256; for Cisco IOS Software Releases 12.1(3a)E3, 12.1(3a)E4, and 12.1(4)E1, valid values are from 1 to 64. Cisco IOS Software Release 12.1(5c)EX and later support a maximum of 64 values ranging from 1 to 256.

The configuration on 6500/6000 running Cisco IOS Software will be:

Note: To find additional information on the commands used in this document, use the Command Lookup Tool (registered customers only) .

Network Diagram

This document uses the network setup shown in the diagram below.

In this example, we configure an LACP aggregate link between a Catalyst 4000 and Catalyst 6000 series switch using two Gigabit Ethernet ports as shown in the diagram above.

Note: In this example, the Catalyst 6000 is running Cisco IOS Software and the Catalyst 4000 is running CatOS. However, it is important to remember that the Cisco IOS LACP configuration can be used on any Catalyst 4500/4000 or 6500/6000 switch running Cisco IOS Software. Moreover, the CatOS configuration included below can also be applied to any Catalyst 4500/4000 or 6500/6000 switch running CatOS as well.

Configurations

The information presented in this document was created from devices in a specific lab environment. The configurations on all devices were cleared with the clear config all command (for CatOS) and the write erase command (for Cisco IOS Software) to ensure that they had a default configuration. If you are working in a live network, ensure that you understand the potential impact of any command before using it.

buran (Catalyst 4000)
nelix (Catalyst 6000) using Cisco IOS Software

Verify

This section provides information that can be used to verify your configuration

Note: Some of the outputs shown below were not captured from the above scenario. The intent of this section is to explain how to verify that your configuration is correct. This includes showing outputs from similar scenarios to provide a more complete explanation.

Certain show commands are supported by the Output Interpreter Tool (registered customers only) , which allows you to view an analysis of show command output.

Note: To find additional information on the commands used in this document, use the Command Lookup Tool (registered customers only) .

Читайте также:  Vpn подключение или настройка роутера

This section includes show commands for switches running CatOS.

show port lacp-channel—Displays information about LACP channels by port or module number. If you do not enter a module or a port number, information about all modules is displayed. If you enter the module number only, information about all ports on the module is displayed. Verify that the desired ports appear and the ports that are supposed to be in a channel have the same Admin Key and desired channel mode.

show lacp-channel mac—Displays MAC information about the LACP channel. Verify that the channel is transmitting and receiving traffic by running the command multiple times and verifying that the counters increment.

You can first verify that the port is effectively channeling using the show port lacp-channel command on both switches. The following output is shown as an example of a switch running CatOS and in LACP passive mode (as configured above):

The following output shows an example of a peer switch running CatOS and in LACP active mode. (This was not configured above.)

Note: Notice that LACP channels on one switch are in active mode while those on the other are in passive mode. If both switches were set to active, that would be indicated in the above output.

You can also verify that the channel is transmitting and receiving traffic by viewing the show lacp-channel mac command output for the channel ID corresponding to your channel. (See channel ID in the above command output.) The counters here should increase over time.

You can also verify, from the output below, that the two ports are now one unique port from the Spanning Tree Protocol (STP) point of view.

Cisco IOS Software

The following commands can be used on switches running Cisco IOS Software:

show etherchannel port-channel—Displays LACP port channel information, similar to the information provided by the show port lacp-channel command in CatOS. Details about the status of the channel, the protocol being used, and the time since the ports were bundled for all the channel groups configured are also displayed.

From the output shown on nelix above, we see that the protocol being used here is LACP, and the two gigabit ports 1/1 and 2/1 were bundled together to form the etherchannel for Port-channel 1. The channel has been in the active state for the last 15 minutes.

show etherchannel channelgroup_number detail—Displays detailed information for the channel group specified with the details of each port shown separately. It includes information about the partner details and the port channel details.

You can also verify from the outputs below that both ports Gi 1/1 and Gi 2/1 are in a forwarding state since the two ports are now one unique port from the STP point of view.

Troubleshoot

Secondary Aggregator Ports Po1A or Po2A are Created

A secondary aggregator port will be created in the LACP process when the ports you are bundling are not compatible with each other, or with their remote peers. The secondary aggregator port will have the ports which are compatible with others.

Configure all LAN ports in an EtherChannel to operate at the same speed and in the same duplex mode. LACP does not support half-duplex. Half-duplex ports in an LACP EtherChannel are put in the suspended state.

If you configure an EtherChannel from trunking LAN ports, verify that the trunking mode is the same on all the trunks. LAN ports in an EtherChannel with different trunk modes can operate unpredictably.

LAN ports with different STP port path costs can form an EtherChannel as long they are compatibly configured with each other. If you set different STP port path costs, the LAN ports are not incompatible for the formation of an EtherChannel.

Источник

Adblock
detector