Professional Documents
Culture Documents
Thomas Moegli
Ing. HES Télécommunications - Réseaux et Sécurité IT
1
Port Channeling
Thomas Moegli
2
Port Channeling
Thomas Moegli
3
Etherchannel
Thomas Moegli
4
Etherchannel
Switch Cisco Switch Cisco
Fa0/1
Fa0/2
Fa0/3
Fa0/4
Po1
๏ EtherChannel effectue de l’équilibrage de charge sur plusieurs
liens physiques
๏ Jusqu’à 8 liens peuvent être combinés en un lien logique =
๏ EtherChannel peut être configuré en couche 2 ou en couche 3
๏ Sur Cisco, une interface logique est appelée Port-Channel
Fa0/1
Fa0/2
Fa0/3
Fa0/4
Po1
Switch Cisco Switch Cisco
Thomas Moegli
5
Etherchannel
Protocoles
Thomas Moegli
6
Etherchannel
PAgP
๏ Etablissement d’un canal EtherChannel selon les ports configurés :
๏ Modes PAgP
๏ On
Pas de négociation / Force le canal sur PAgP
SW2
๏ Desirable
On Desirable Auto
Envoi de messages PAgP pour initier la négociation
On
๏ Auto
SW1
Ecoute passive des messages PAgP Desirable
Auto
Thomas Moegli
7
Etherchannel
LACP
๏ Etablissement d’un canal EtherChannel selon les ports configurés :
๏ Modes LACP
๏ On
Pas de négociation / Force le canal sur LACP
SW2
๏ Active
On Active Passive
Envoi de messages LACP pour initier la négociation
On
๏ Passive
SW1
Ecoute passive des messages LACP Active
Passive
Thomas Moegli
8
Etherchannel
Configuration : Couche 2
Etapes
๏ Configurer les ports pour qu’ils aient des paramètres identiques (Configuration d’interface)
๏ Configuration MDI-X (Medium Dependent Interface Crossover), du débit et du mode de transmission :
Switch(config-if)# duplex auto
Switch(config-if)# speed auto
Switch(config-if)# mdix auto
Thomas Moegli
9
Etherchannel
Configuration : Couche 2
๏ Configuration de plusieurs liens physiques en un seul lien logique SW1
Switch Cisco
SW1
Switch Cisco
๏ Ce lien logique sera configuré comme lien de trunk entre SW1 et SW2
SW1(config)# interface range FastEthernet0/1 - 4
Fa0/1
Fa0/2
Fa0/3
Fa0/4
SW1(config-if-range)# duplex auto
Po1
SW1(config-if-range)# speed auto
SW1(config-if-range)# mdix auto
SW1(config-if-range)# channel-group 1 mode desirable
Fa0/1
Fa0/2
Fa0/3
Fa0/4
SW2(config-if-range)# mdix auto
Po1
SW2(config-if-range)# channel-group 1 mode desirable ! Le mode Auto est également possible
SW2
SW2(config)# interface Port-Channel 1
SW2(config-if)# switchport trunk encapsulation dot1q
SW2(config-if)# switchport mode trunk Switch
SW2Cisco Switch Cisco
Thomas Moegli
10
Etherchannel
Commandes de vérification
Commande Description
show interface interface-id Affiche des informations détaillées sur l’interface (Physique ou virtuelle)
show etherchannel summary Affiche des informations globales sur la configuration EtherChannel
show etherchannel port-channel Affiche des informations détaillées sur les interfaces PortChannel configurées
Thomas Moegli
11
Etherchannel
Vérification : show ip interface brief
๏ La commande Switch# showipipinterface
Switch# show interface br permet d’afficher le status de l’interface logique EtherChannel crée
brief
๏ Pour un fonctionnement correct, Status et Protocol doivent être sur On
Thomas Moegli
12
Etherchannel
Vérification : show interface interface-id
SW1# show interface Port-Channel 1
Port-channel1 is up, line protocol is up (connected)
Hardware is Ethernet, address is aabb.cc00.0a11 (bia aabb.cc00.0a11)
MTU 1500 bytes, BW 40000 Kbit/sec, DLY 1000 usec,
reliability 255/255, txload 136/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
๏ La commande Switch#
Switch# show ip interface
show interface br
interface-id
Auto-duplex, Auto-speed, media type is unknown
permet d’afficher des informations détaillées sur input flow-control is off, output flow-control is unsupported
l’interface logique EtherChannel crée Members in this channel: Et1/0 Et1/1 Et1/2 Et1/3
ARP type: ARPA, ARP Timeout 04:00:00
๏ Permet d’afficher notamment les interfaces Last input 00:00:05, output never, output hang never
physiques liées à l’interface EtherChannel virtuelle Last clearing of "show interface" counters never
Input queue: 480/2000/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 21419000 bits/sec, 44593 packets/sec
…
Thomas Moegli
13
Etherchannel
Vérification : show etherchannel
SW1# show etherchannel summary
Flags: D - down P - bundled 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
Thomas Moegli
14
Etherchannel
Vérification : show etherchannel
SW1# show etherchannel port-channel
Channel-group listing:
----------------------
Group: 1
----------
Port-channels in the group:
---------------------------
๏ La commande :
Port-channel: Po1
Switch# show etherchannel port-channel ------------
15
Etherchannel
Misconfiguration Guard
Pas de configuration EtherChannel
Thomas Moegli
16
Etherchannel
Misconfiguration Guard
Thomas Moegli
17
Etherchannel
Misconfiguration Guard
Configuration
๏ Activation de Misconfiguration Guard :
Switch(config)# spanning-tree etherchannel guard misconfig
Thomas Moegli
18
Etherchannel
Options Load-Balancing
IP Src : 2.2.2.2
PC A PC B IP Dst : 30.0.0.3
IP : 1.1.1.1 IP : 2.2.2.2
PC A PC B PC C
IP : 1.1.1.1 IP : 2.2.2.2 IP : 3.3.3.3
๏ …
IP : 20.0.0.2 IP : 30.0.0.3
Thomas Moegli
19
Etherchannel
Options Load-Balancing
Thomas Moegli
20
Layer 3 EtherChannel
๏ Un Etherchannel Layer 3 permet de regrouper un ensemble logique de
ports en une interface virtuelle qui peut être configurée pour effectuer
du routage
Fa0/5
Fa0/6
Fa0/7
Fa0/8
SW1(config-if-range)# duplex auto
SW1(config-if-range)# speed auto
SW1(config-if-range)# mdix auto
SW1(config-if-range)# no switchport ! Ce port est de couche 3
SW1(config-if-range)# channel-group 1 mode on
Po1
SW1(config-if)# ip address 10.1.1.1 255.255.255.252
Thomas Moegli
21