Cisco Systems



Link Aggregation


Agrégation de liens

L'agrégation de liens est une technique utilisée dans les réseaux informatiques, permettant le regroupement de plusieurs ports réseau et de les utiliser comme s'il s'agissait d'un seul.

Le but est
  • Accroître le débit au-delà des limites d'un seul lien
  • Faire en sorte que les autres ports prennent le relai si un lien tombe en panne (redondance)
Suivant le contexte, on peut rencontrer la notion d'agrégation de liens sous d'autres appellations :
  • Shortest Path Bridging
  • trunk Ethernet
  • EtherChannel
  • NIC teaming
  • port channel
  • port teaming
  • port trunking
  • link bundling
  • multi-link trunking (MLT)
  • NIC bonding
  • network bonding
  • bonding
  • network fault tolerance (NFT)
  • …

Etherchanel

Le nom utilisee chez CISCO pour l'aggregation de liens est Etherchannel

Protocols

  • PAgP (Proprietaire CISCO)
  • LACP
LAB-S1#sh etherchannel



LAB-S1(config-if-range)#channel-group 1 mode ?




Port Aggregation Protocol (PAgP)

PAgP est un protocole propriétaire Cisco, de ce fait disponible sur les commutateurs Cisco ainsi que sur les équipements disposant de la licence adéquate. Son utilisation permet de faciliter et d'automatiser la configuration des agrégats de liens (EtherChannel chez Cisco) en échangeant les informations nécessaires entre les ports Ethernet, à la manière de LACP.

Un équipement configuré pour utiliser PAgP peut fonctionner en trois modes :

• auto : négociation passive avec le second équipement
• desirable : négociation active avec le second équipement
• on : aucun protocole n'est utilisé, on suppose que le second équipement est configuré pour utiliser l'agrégation de liens.

Configuration

EtherChannel is a port link aggregation technology developed by Cisco, which provides fault-tolerant high-speed links between Switches, Routers, and Servers. EtherChannel technology allows multiple physical Ethernet links (Fast EtherNet or Gigabit Ethernet) to combine into one logical channel.

There are two protocols used for negotiating EtherChannel and Link Aggregation. We can configure EtherChannel in three ways in Cisco Switches.

1. Port Aggregation Protocol (PAgP) - Cisco Proprietary protocol
2. IEEE Link Aggregation Control Protocol (LACP) - Industry Standard
3. Manual Etherchannel Configuration - Without using any negotiation protocol listed above

Port Aggregation Protocol (PAgP) is a Cisco proprietary protocol. Therefore Port Aggregation Protocol (PAgP) can be used to negotiate EtherChannels only between Cisco switches.

Follow these steps to configure EtherChannel using Port Aggregation Protocol (PAgP) in Cisco Switches. The ports which are going to be in EtherChannel must be in the shutdown state while configuring the EtherChannel to prevent loops and other related problems.


Switch SW1

SW1(config)#interface range gigabitEthernet 0/1 - 2
SW1(config-if-range)#channel-group 1 mode desirable
SW1(config-if-range)#channel-protocol pagp

Switch SW2

SW2(config)#interface range gigabitEthernet 0/1 - 2
SW2(config-if-range)#channel-group 1 mode desirable
SW2(config-if-range)#channel-protocol pagp

SW2# SW1(config-if-range)#channel-group 1 mode desirable specifies the EtherChannel Group Number as 1 and the Port Aggregation Protocol (PAgP) Channel mode as Desirable

Run "show ip interface brief" from Global Configuration mode to find the new EtherChannel virtual interface, Port-channel 1 as shown below.

SW2#show ip interface brief
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/1 unassigned YES unset up up
GigabitEthernet0/2 unassigned YES unset up up
Vlan1 unassigned YES unset administratively down down
Port-channel 1 unassigned YES unset up up
SW2#

SW2#sh etherchannel

SW2#sh etherchannel summary

EtherChannel sous Cisco avec LACP

I. Présentation

LACP n'est pas un protocole proprietaire il peut etre configure sur des equipements d'autres constructeurs.
Rappel concernant LACP :

Le protocole LACP permet la mise en place d’agrégat de liens qui permet de regrouper plusieurs liens physiques en un seul lien logique et ainsi améliorer les performances en termes de bande-passante, de haute disponibilité et de répartition de charge.

LACP signifie Link Aggregation Control Protocol est un protocole de niveau 2 qui a pour référence IEEE « 802.3ad« .
Il existe une alternative au protocole LACP par l’intermédiaire du protocole PAgP qui est un protocole propriétaire Cisco.

II. Conditions requises

Pour la mise en place de l’EtherChannel sous Cisco, les conditions suivantes doivent être respectées :

• Support de l’EtherChannel sur les interfaces de l’équipement
• Même mode duplex (full duplex / half duplex)
• Même vitesse
• La plage de VLANs autorisés doit être la même des deux côtés sinon l’EtherChannel passera en mode Desirable.

III. Architecture

Voici l’architecture mise en place dans cet exemple :


On partira du principe où sur chaque switch, ce sont les ports fastEthernet 0/1 et 0/2 qui sont utilisés pour l’agrégation.
Pour la réalisation de cet exemple, j’utiliserais le logiciel Cisco Packet Tracer.

IV. Configuration des switchs

La procédure de configuration des switchs est identique, il faudra saisir le jeu de commandes suivant sur les deux switchs :
# Passage en mode configuration
Sw1#configure terminal

# Sélectionner la plage d'interfaces
Sw1(config)#interface range fastEthernet 0/1 - 2

# Création d'un groupe EtherChannel n°1 avec le protocole LACP (mode active)
Sw1(config-if-range)#channel-group 1 mode active

Creating a port-channel interface Port-channel 1
Sw1(config-if-range)#exit

# Accès au paramétrage du port-channel créé
Sw1(config)#interface port-channel 1

# Passer le port-channel en mode trunk pour pouvoir faire passer plusieurs VLANs
Sw1(config-if)#switchport mode trunk

Note : A la place du mode « active » il est possible d’indiquer le mode « passive » pour le second switch, il sera alors en attente que le switch à l’autre extrémité lui envoie un signal lui indiqué qu’il est actif en LACP. Pour que l’EtherChannel fonctionne avec LACP, il faut être active/active ou active/passive. Si vous souhaitez ajouter explicitement la liste des VLANs autorisés :

# VLANs autorisés (exemple VLAN 10 et VLAN 20) - OPTIONNEL
Sw1(config-if)#switchport trunk allowed vlan 10,20

Et indiquer un VLAN natif :
# VLANs natif - OPTIONNEL
Sw1(config-if)#switchport trunk native vlan 99
Lors de la création du groupe de ports pour l’EtherChannel, les interfaces concernées seront redémarrées :
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up
Pour visualiser l’état des différents channel-group configurés, utilisez la commande suivante :
show etherchannel

L’EtherChannel est désormais opérationnel entre les deux commutateurs Cisco.

Eninam BAGNABANA     |         |     bagnadavid@outlook.fr     |