From 5e1b63743f9169a0f5bfaa2b8c9560d992e40f33 Mon Sep 17 00:00:00 2001 From: jdubois Date: Tue, 26 Oct 2021 17:55:27 +0200 Subject: [PATCH] Ajout doc LACP pour 2960 --- SwitchCisco.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/SwitchCisco.md b/SwitchCisco.md index fc2710d5..391cb737 100644 --- a/SwitchCisco.md +++ b/SwitchCisco.md @@ -1342,6 +1342,40 @@ Switch(config)# monitor session 1 source interface g0/1 , g0/5 Switch(config)# monitor session 1 destination interface g0/15 ingress vlan 15 ~~~ +### LACP : Link Aggregation Control Protocol (Port-Channel) + +Le Port-Channel est une technologie qui permet d’agréger plusieurs interfaces ensemble. Le trafic est ensuite réparti sur chacune des interfaces. Cette technologie permet une meilleure redondance, ainsi qu’une augmentation de la bande passante. + +Cisco propose le protocole propriétaire PaGP, mais nous utilisons le protocole standardisé [LACP](https://fr.wikipedia.org/wiki/IEEE_802.3ad). + +Voici un schéma d'exemple : + +~~~ +┌────────┐Gi0/1 Gi0/1┌────────┐ +│ ├─────────────┤ │ +│ SW01 │ │ SW02 │ +│ ├─────────────┤ │ +└────────┘Gi0/2 Gi0/2└────────┘ +~~~ + +On veut agréger les interfaces Gi0/1 et Gi0/2 entre SW01 et SW02. + +Sur SW01 et sur SW02, on active LACP sur les ports souhaités : + +~~~ +Switch(config)# interface range GigabitEthernet0/1-2 +Switch(config-if)# channel-protocol lacp +Switch(config-if)# channel-group 1 mode active +~~~ + +La configuration des ports devra ensuite se faire sur l'interface port-channel nouvellement créé. Les interfaces physiques membres du port-channel hériteront automatiquement de la configuration. + +~~~ +Switch(config)# interface Port-channel1 +Switch(config-if)# switchport mode trunk +Switch(config-if)# switchport trunk allowed vlan X +Switch(config-if)# … +~~~ ### Cron / tâches planifiées