Configurar Etherchannel con LACP

LCAP ( Link Aggregation Control Protocol) se utiliza para la agregación de enlaces entre múltiples nodos de red para aumentar el ancho de banda, garantizar la redundancia y la disponibilidad. 

Los modos de configuración son los siguientes:

  • Activo: Habilitado para iniciar negociaciones con otros puertos.
  • Pasivo: No puede iniciar negociaciones, pero si responde a las negociaciones generadas por otros puertos.

La siguiente tabla sirve como resumen para entender mejor de qué manera se establece un Etherchannel:

Como podemos observar, dos puertos que se encuentren en el modo de operación pasivo nunca formará un Etherchannel. En cambio, las combinaciones activo-activo y activo-pasivo si podrán formarlo.

Configuramos el switch A:

SWITCH_A(config)#interface range fastEthernet 0/1-4
SWITCH_A(config-if-range)#channel-group 1 mode active 
SWITCH_A(config-if-range)#no shutdown 
SWITCH_A(config-if-range)#exit

SWITCH_A(config)#interface port-channel 1
SWITCH_A(config-if)#switchport mode trunk 
SWITCH_A(config-if)#exit

Configuramos el switch B:

SWITCH_B(config)#interface range fastEthernet 0/1-4
SWITCH_B(config-if-range)#channel-group 1 mode active 
SWITCH_B(config-if-range)#no shutdown 
SWITCH_B(config-if-range)#exit

SWITCH_B(config)#interface port-channel 1
SWITCH_B(config-if)#switchport mode trunk 
SWITCH_B(config-if)#exit

Podemos comprobar que el Etherchannel se ha configurado correctamente introduciendo el siguiente comando en los switches: show etherchannel summary

SWITCH_A#sh 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   Fa0/1(P) Fa0/2(P) Fa0/3(P) Fa0/4(P) 
SWITCH_B#sh etherc 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   Fa0/1(P) Fa0/2(P) Fa0/3(P) Fa0/4(P) 

Con el comando anterior podemos verificar que el Etherchannel está formado con los puertos del 1 al 4 de cada switch y que están funcionando correctamente.

Otro comando interesante sería el siguiente: show etherchannel port-channel

SWITCH_A#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:11m:27s
Logical slot/port   = 2/1       Number of ports = 4
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     Fa0/2    Active             0
  0     00     Fa0/3    Active             0
  0     00     Fa0/4    Active             0
  0     00     Fa0/1    Active             0
Time since last port bundled:    00d:00h:06m:04s    Fa0/1

En la salida de dicho comando se mostrarán los port-channel que hay creados, que protocolo se está utilizando en cada uno de ellos, el estado de sus puertos….