Académique Documents
Professionnel Documents
Culture Documents
CONFIGURATION D’ETHERCHANNEL
PRESENTE PAR : IBRAHIMA THIAM
Topologie
Table d’adressage
Masque de
Périphérique Interface Adresse IP sous-réseau
© 2014 Cisco et/ou ses filiales. Tous droits réservés. Ceci est un document public de Cisco. Page 1 / 21
Travaux pratiques : configuration d’EtherChannel
Contexte/scénario
L’agrégation de liens permet de créer des liens logiques composés de deux liens physiques au
minimum. Cela accroît le débit au-delà de l’utilisation d’un seul lien physique. L’agrégation de liens
offre également de la redondance en cas de défaillance de l’un des liens.
Au cours de ces travaux pratiques, vous allez configurer EtherChannel, une forme d’agrégation de
liens utilisée dans les réseaux commutés. Vous allez configurer EtherChannel en utilisant les
protocoles PAgP et LACP.
Remarque : le protocole PAgP est un protocole propriétaire de Cisco que vous pouvez utiliser
uniquement sur des commutateurs Cisco et sur les commutateurs de fournisseurs sous licence
prenant en charge PAgP. LACP est un protocole de lien d’agrégation défini par l’IEEE 802.3ad qui
n’est pas associé à un fournisseur spécifique.
LACP permet aux commutateurs Cisco de gérer des canaux Ethernet entre des commutateurs
conformes au protocole 802.3ad. Vous pouvez configurer jusqu’à 16 ports pour former un canal. Huit
ports sont en mode actif et les huit autres en mode veille. En cas de défaillance de l’un des ports
actifs,un port en veille devient actif. Le mode veille fonctionne uniquement pour LACP, pas pour
PAgP.
Remarque : les commutateurs utilisés lors des travaux pratiques CCNA sont des modèles Cisco
Catalyst 2960 équipés de Cisco IOS version 15.0(2) (image lanbasek9). D’autres commutateurs et
versions de Cisco IOS peuvent être utilisés. Selon le modèle et la version de Cisco IOS, les commandes
disponibles et le résultat produit peuvent varier de ceux indiqués dans les travaux pratiques.
Remarque : assurez-vous que les commutateurs ont été réinitialisés et ne possèdent aucune
configuration initiale. En cas de doute, contactez votre instructeur.
Ressources requises
3 commutateurs (Cisco 2960 équipés de Cisco IOS version 15.0(2) image lanbasek9 ou similaire)
3 PC (Windows 7, Vista ou XP, équipés d’un programme d’émulation du terminal tel que Tera
Term)
Câbles de console pour configurer les périphériques Cisco IOS via les ports de console
Câbles Ethernet conformément à la topologie
Page 2 / 21
Travaux pratiques : configuration d’EtherChannel
Page 3 / 21
Travaux pratiques : configuration d’EtherChannel
d.
S1(config)#banner motd #
Enter TEXT message. End with the character '#'.
Unauthorized access is strictly prohibited. #
e.
S1(config)#enable secret class
S1(config)#
f.
S1(config)#line console 0
S1(config-line)#pas
S1(config-line)#password cisco
S1(config-line)#login
S1(config-line)#exit
S1(config)#line vt
S1(config)#line vty 0 5
S1(config-line)#pas
S1(config-line)#password cisco
S1(config-line)#login
S1(config-line)#exit
S1(config)#
g.
S1(config)#line console 0
S1(config-line)#logging synchronous
S1(config-line)#
i.
S1(config)#vlan 99
S1(config-vlan)#name Management
S1(config-vlan)#exit
Page 4 / 21
Travaux pratiques : configuration d’EtherChannel
S1(config)#interface vlan 99
S1(config-if)#
%LINK-5-CHANGED: Interface Vlan99, changed state to up
S1(config-if)#ip address 192.168.99.11 255.255.255.0
S1(config-if)#no shut
S1(config-if)#exit
S1(config)#interface range fa0/1-4
S1(config-if-range)#switchport mode access
S1(config-if-range)#switchport access vlan 99
S1(config-if-range)#exit
S1(config)#interface range fa0/1-4
S1(config-if-range)#switchport mode trunk
S1(config-if-range)#switchport trunk allowed vlan 99
S1(config-if-range)#
d.
S2(config)#banner motd #
Enter TEXT message. End with the character '#'.
Unauthorized access is strictly prohibited. #
e.
S2(config)#enable secret class
S2(config)#
f.
S2(config)#line console 0
S2(config-line)#pas
S2(config-line)#password cisco
S2(config-line)#login
S2(config-line)#exit
S2(config)#line vt
S2(config)#line vty 0 5
S2(config-line)#pas
S2(config-line)#password cisco
S2(config-line)#login
S2(config-line)#exit
S2(config)#
Page 5 / 21
Travaux pratiques : configuration d’EtherChannel
g.
S2(config)#line console 0
S2(config-line)#logging synchronous
S2(config-line)#
J.
S2(config)#vlan 10
S2(config-vlan)#name Staff
S2(config-vlan)#exit
S2(config)#interface vlan 10
S2(config-if)#ip address 192.168.99.12 255.255.255.0
S2(config-if)#no shutdown
S2(config-if)#exit
S2(config)#interface range fa0/1-4
S2(config-if-range)#switchport mode access
S2(config-if-range)#switchport access vlan 10
S2(config-if-range)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state
to up
spanning-tree
S2(config)#spanning-tree mode r
S2(config)#spanning-tree mode rapid-pvst
S2(config)#exit
S2#
%SYS-5-CONFIG_I: Configured from console by console
S2#sh
S2#show sp
S2#show spanning-tree
VLAN0001
Spanning tree enabled protocol rstp
Root ID Priority 32769
Address 0001.427B.19B0
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
VLAN0010
Page 6 / 21
Travaux pratiques : configuration d’EtherChannel
S2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
S2(config)#sp
S2(config)#spanning-tree vl
S2(config)#spanning-tree vlan 1-100 roo
S2(config)#spanning-tree vlan 1-100 root rp
S2(config)#spanning-tree vlan 1-100 root pri
S2(config)#spanning-tree vlan 1-100 root primary
S2(config)#exit
S2#
%SYS-5-CONFIG_I: Configured from console by console
S2#
S2#sho
S2#show sp
S2#show spanning-tree vl
S2#show spanning-tree vlan 99
Page 7 / 21
Travaux pratiques : configuration d’EtherChannel
S2#conft
Translating "conft"
% Unknown command or computer name, or unable to find computer address
S2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
S2(config)#in
S2(config)#interface fa0/2
S2(config-if)#spa
S2(config-if)#spanning-tree vla
S2(config-if)#spanning-tree vlan 1-100 po
S2(config-if)#spanning-tree vlan 1-100 port-priority 64
S2(config-if)#end
S2#
%SYS-5-CONFIG_I: Configured from console by console
S2#sh
S2#show sp
S2#show spanning-tree vl
S2#show spanning-tree vlan 10
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 24586
Address 0001.427B.19B0
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
S2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
S2(config)#int
S2(config)#interface ra
S2(config)#interface range fa0/1-4
S2(config-if-range)#sp
S2(config-if-range)#spa
S2(config-if-range)#spanning-tree po
S2(config-if-range)#spanning-tree portfast
%Warning: portfast should only be enabled on ports connected to a
single
host. Connecting hubs, concentrators, switches, bridges, etc... to
this
Page 8 / 21
Travaux pratiques : configuration d’EtherChannel
S2#sh
S2#show run int fa0/1
^
% Invalid input detected at '^' marker.
S2#show run
S2#show running-config in
S2#show running-config inter
S2#
S2#
Switch(config)#hostname S3
S3(config)#no ip domain-lookup
S1(config)#
d.
S3(config)#banner motd #
Enter TEXT message. End with the character '#'.
Unauthorized access is strictly prohibited. #
e.
S3(config)#enable secret class
S3(config)#
f.
S3(config)#line console 0
S3(config-line)#pas
S3(config-line)#password cisco
S3(config-line)#login
S3(config-line)#exit
S3(config)#line vt
S3(config)#line vty 0 5
Page 9 / 21
Travaux pratiques : configuration d’EtherChannel
S3(config-line)#pas
S3(config-line)#password cisco
S3(config-line)#login
S3(config-line)#exit
S13(config)#
g.
S3(config)#line console 0
S3(config-line)#logging synchronous
S3(config-line)#
S3(config)#vlan 99
S3(config-vlan)#exit
S3(config)#interface vlan 99
S3(config-if)#
%LINK-5-CHANGED: Interface Vlan99, changed state to up
S3(config-if)#ip address 192.168.99.13 255.255.255.0
S3(config-if)#no shutdown
S3(config-if)#exit
S3(config)#interface range fa0/1-4
S3(config-if-range)#switchport mode access
S3(config-if-range)#switchport access vlan 99
S3(config-if-range)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan99, changed state
to up
Page 10 / 21
Travaux pratiques : configuration d’EtherChannel
PC-B
PC-C
Page 11 / 21
Travaux pratiques : configuration d’EtherChannel
S1(config-if-range)# no shutdown
S3(config-if-range)# no shutdown
*Mar 1 00:09:12.792: %LINK-3-UPDOWN: Interface FastEthernet0/3,
changed state to up
*Mar 1 00:09:12.792: %LINK-3-UPDOWN: Interface FastEthernet0/4,
changed state to up
S3(config-if-range)#
*Mar 1 00:09:15.384: %LINEPROTO-5-UPDOWN: Line protocol on
Interface FastEthernet0/3, changed state to up
*Mar 1 00:09:16.265: %LINEPROTO-5-UPDOWN: Line protocol on
Interface FastEthernet0/4, changed state to up
S3(config-if-range)#
*Mar 1 00:09:16.357: %LINK-3-UPDOWN: Interface Port-channel1,
changed state to up
*Mar 1 00:09:17.364: %LINEPROTO-5-UPDOWN: Line protocol on
Interface Port-channel1, changed state to up
*Mar 1 00:09:44.383: %LINEPROTO-5-UPDOWN: Line protocol on
Interface Vlan1, changed state to up
Page 12 / 21
Travaux pratiques : configuration d’EtherChannel
S3(config-if-range)#no shut
S3(config-if-range)#no shutdown
S3(config-if-range)#
Page 13 / 21
Travaux pratiques : configuration d’EtherChannel
Protected: false
Unknown unicast blocked: disabled
Unknown multicast blocked: disabled
Appliance trust: none
Page 14 / 21
Travaux pratiques : configuration d’EtherChannel
Page 15 / 21
Travaux pratiques : configuration d’EtherChannel
S1(config)#interface port-channel 1
S1(config-if)#switchport mode trunk
S1(config-if)#switchport trunk native v
S1(config-if)#switchport trunk native vlan 99
S1(config-if)#
S3(config)#interface port-channel 1
S3(config-if)#switchport mode trunk
S3(config-if)#switchport trunk native vlan 99
S3(config-if)#
Étape 5 : Vérifions que les ports sont configurés en tant que ports trunk.
a. Exécutez les commandes show runinterface interface-id sur S1 et S3. Quelles commandes sont
répertoriées pour F0/3 et F0/4 sur les deux commutateurs ? Comparez les résultats avec la
configuration en cours pour l’interface Po1. Notez vos observations.
La commande est invalide.
b. Exécutons les commandes show interfaces trunk et show spanning-tree sur S1 et S3. Quel port
trunk est répertorié ? Quel est le VLAN natif ?
Le port trunk répertorié est : Po1
Le vlan native est : vlan 99
À partir du résultat show spanning-tree, quels sont le coût et la priorité de port pour le lien
agrégé ?
le coût et la priorité de port pour le lien agrégé sont :
la priorité 32769 et le coût (cost) 9
Page 16 / 21
Travaux pratiques : configuration d’EtherChannel
S1(config-if-range)# no shutdown
S2(config-if-range)# no shutdown
Page 17 / 21
Travaux pratiques : configuration d’EtherChannel
S3(config-if-range)# no shutdown
b. Vérifions que l’EtherChannel s’est formé.
Local information:
LACP port Admin Oper Port Port
Port Flags State Priority Key Key Number State
Fa0/1 SA down 32768 0x0 0x0 0x1
FastEthernet0/2:
Port state = 1
Page 18 / 21
Travaux pratiques : configuration d’EtherChannel
Local information:
LACP port Admin Oper Port Port
Port Flags State Priority Key Key Number State
Fa0/2 SA down 32768 0x0 0x0 0x2
----
FastEthernet0/3:
Port state = 1
Channel group = 1 Mode = Auto Gcchange = 0
Port-channel = Po1 GC = 0x00000000 Pseudo port-channel = Po1
Port index = 0 Load = 0x00 Protocol = PAgP
Local information:
Hello Partner PAgP Learning Group
Port Flags State Timers Interval Count Priority Method Ifindex
Fa0/3 d U1/S1 H30s 1 0 128 Any 0
Partner's information:
Partner Partner Partner Partner Group
Port Name Device ID Port Age Flags Cap.
Fa0/3 S1 0050.0FA3.0B38 Fa0/3 0 SC 10001
----
FastEthernet0/4:
Port state = 1
Channel group = 1 Mode = Auto Gcchange = 0
Port-channel = Po1 GC = 0x00000000 Pseudo port-channel = Po1
Page 19 / 21
Travaux pratiques : configuration d’EtherChannel
Local information:
Hello Partner PAgP Learning Group
Port Flags State Timers Interval Count Priority Method Ifindex
Fa0/4 d U1/S1 H30s 1 0 128 Any 0
Partner's information:
Partner Partner Partner Partner Group
Port Name Device ID Port Age Flags Cap.
Fa0/4 S1 0050.0FA3.0B38 Fa0/4 0 SC 10001
----
Port-channel1:Port-channel1
Age of the Port-channel = 00d:15h:46m:09s
Logical slot/port = 2/1 Number of ports = 2
GC = 0x00000000 HotStandBy port = null
Port state =
Protocol = 2
Port Security = Disabled
Page 20 / 21
Travaux pratiques : configuration d’EtherChannel
Page 21 / 21