Vous êtes sur la page 1sur 21

DEVOIR 1 :

CONFIGURATION D’ETHERCHANNEL
PRESENTE PAR : IBRAHIMA THIAM

Topologie

Table d’adressage

Masque de
Périphérique Interface Adresse IP sous-réseau

S1 VLAN 99 192.168.99.11 255.255.255.0


S2 VLAN 99 192.168.99.12 255.255.255.0
S3 VLAN 99 192.168.99.13 255.255.255.0
PC-A NIC 192.168.10.1 255.255.255.0
PC-B NIC 192.168.10.2 255.255.255.0
PC-C NIC 192.168.10.3 255.255.255.0

© 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

Partie 1 : Configuration des paramètres de base du commutateur


Dans la Partie 1, nous allons configurer la topologie du réseau et les paramètres de base, tels que les
adresses IP de l’interface, le routage statique, l’accès des périphériques et les mots de passe.

Étape 1 : Câblons le réseau conformément à la topologie.


Fixons les périphériques conformément au schéma de topologie, ainsi que les câbles, le cas échéant.

Page 2 / 21
Travaux pratiques : configuration d’EtherChannel

Étape 2 : Initialisons et redémarrons les commutateurs.

Étape 3 : Configurons les paramètres de base pour chaque commutateur.


a. Désactivez la recherche DNS.
b. Configurez le nom du périphérique conformément à la topologie.
c. Chiffrez les mots de passe en clair.
d. Créez une bannière MOTD avertissant les utilisateurs de l’interdiction de tout accès non autorisé.
e. Attribuez class comme mot de passe chiffré du mode d’exécution privilégié.
f. Attribuez cisco comme mot de passe pour la console et vty et activez la connexion.
g. Configurez logging synchronous pour empêcher les messages de console d’interrompre la saisie
de la commande.
h. Désactivez tous les ports de commutation excepté les ports connectés à des PC.
i. Configurez le VLAN 99 et nommez-le Management.

Page 3 / 21
Travaux pratiques : configuration d’EtherChannel

j. Configurez le VLAN 10 et nommez-le Staff.


k. Configurez les ports de commutation avec des hôtes connectés en tant que ports d’accès au VLAN
10.
l. Attribuez les adresses IP conformément à la table d’adressage.
m. Copiez la configuration en cours en tant que configuration de démarrage.
Configurons les parmetres de base pour le commutateur1
Switch(config)#hostname S1
S1(config)#no ip domain-lookup
S1(config)#

 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)#

Configurons les parmetres de base pour le commutateur2


Switch(config)#hostname S2
S2(config)#no ip domain-lookup
S1(config)#

 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

Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)


Address 0001.427B.19B0
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20

Interface Role Sts Cost Prio.Nbr Type


---------------- ---- --- --------- -------- --------------------------------
Fa0/1 Desg FWD 19 128.1 P2p
Fa0/3 Desg FWD 19 128.3 P2p
Fa0/4 Desg FWD 19 128.4 P2p
Fa0/2 Desg FWD 19 128.2 P2p
Fa0/18 Desg FWD 19 128.18 P2p

VLAN0010

Page 6 / 21
Travaux pratiques : configuration d’EtherChannel

Spanning tree enabled protocol rstp


Root ID Priority 32778
Address 0001.427B.19B0
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Bridge ID Priority 32778 (priority 32768 sys-id-ext 10)


Address 0001.427B.19B0
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20

Interface Role Sts Cost Prio.Nbr Type


---------------- ---- --- --------- -------- --------------------------------
Fa0/1 Desg FWD 19 128.1 P2p
Fa0/3 Desg FWD 19 128.3 P2p
Fa0/4 Desg FWD 19 128.4 P2p
Fa0/2 Desg FWD 19 128.2 P2p

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

No spanning tree instance exists.

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

Bridge ID Priority 24586 (priority 24576 sys-id-ext 10)


Address 0001.427B.19B0
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20

Interface Role Sts Cost Prio.Nbr Type


---------------- ---- --- --------- -------- --------------------------------
Fa0/1 Desg FWD 19 128.1 P2p
Fa0/3 Desg FWD 19 128.3 P2p
Fa0/4 Desg FWD 19 128.4 P2p
Fa0/2 Desg FWD 19 128.2 P2p

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

Bridge ID Priority 24586 (priority 24576 sys-id-ext 10)


Address 0001.427B.19B0
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20

Interface Role Sts Cost Prio.Nbr Type


---------------- ---- --- --------- -------- --------------------------------
Fa0/1 Desg FWD 19 128.1 P2p
Fa0/3 Desg FWD 19 128.3 P2p
Fa0/4 Desg FWD 19 128.4 P2p
Fa0/2 Desg FWD 19 64.2 P2p

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

interface when portfast is enabled, can cause temporary bridging


loops.
Use with CAUTION

%Portfast will be configured in 4 interfaces due to the range command


but will only have effect when the interfaces are in a non-trunking
mode.
S2(config-if-range)#exit
S2(config)#exit
S2#
%SYS-5-CONFIG_I: Configured from console by console

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#

Configurons les parmetres de base pour le commutateur3

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

Étape 4 : Configurons les ordinateurs.


Attribuons les adresses IP aux PC conformément à la table d’adressage.
 PC-A

Page 10 / 21
Travaux pratiques : configuration d’EtherChannel

 PC-B

 PC-C

Partie 2 : Configuration de PAgP


PAgP est un protocole propriétaire de Cisco pour l’agrégation de liens. Dans la Partie 2, un lien entre
S1 et S3 sera configuré à l’aide de PAgP.

Étape 1 : Configurons PAgP sur S1 et S3.


Pour un lien entre S1 et S3, configurons les ports sur S1 avec le mode PAgP desirable (PAgP
souhaitable) et les ports sur S3 avec le mode PAgP auto. Activons les ports après avoir configuré les
modes PAgP.
S1(config)# interface range f0/3-4
S1(config-if-range)# channel-group 1 mode desirable
Creating a port-channel interface Port-channel 1

Page 11 / 21
Travaux pratiques : configuration d’EtherChannel

S1(config-if-range)# no shutdown

S3(config)# interface range f0/3-4


S3(config-if-range)# channel-group 1 mode auto
Creating a port-channel interface Port-channel 1

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

Configurons PAgP sur S1


S1(config)#interface range fa0/3-4
S1(config-if-range)#channel-group 1 mode desirable
S1(config-if-range)#
Creating a port-channel interface Port-channel 1
S1(config-if-range)#no shutdown
Configurons PAgP sur S3
S3(config)#interface range fa0/3-4
S3(config-if-range)#chan
S3(config-if-range)#channel-gr
S3(config-if-range)#channel-group 1 mode auto
S3(config-if-range)#
Creating a port-channel interface Port-channel 1

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3,


changed state to down

Page 12 / 21
Travaux pratiques : configuration d’EtherChannel

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3,


changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4,


changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4,


changed state to up

S3(config-if-range)#no shut
S3(config-if-range)#no shutdown
S3(config-if-range)#

Étape 2 : Examinons la configuration sur les ports.


Actuellement, les interfaces F0/3, F0/4 et Po1 (Port-channel 1) sur S1 et S3 sont en mode Access
operational (Accès opérationnel) avec le mode Administrative (Administratif) configuré sur Dynamic
auto (Dynamique automatique). Vérifiez la configuration en utilisant respectivement les commandes
show run interface interface-id et show interfaces interface-idswitchport. Les résultats de l’exemple
de configuration pour F0/3 sur S1 sont les suivants :
La commande show run interface est invalide dans pack tracert
Nous utilisons les l’affichage de base.
S1# show run interface f0/3
Building configuration...

Current configuration : 103 bytes


!
interface FastEthernet0/3
channel-group 1 mode desirable

S1# show interfaces f0/3 switchport


Name: Fa0/3
Switchport: Enabled
Administrative Mode: dynamic auto
Operational Mode: static access (member of bundle Po1)
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: native
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Administrative Native VLAN tagging: enabled

Page 13 / 21
Travaux pratiques : configuration d’EtherChannel

Voice VLAN: none


Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk Native VLAN tagging: enabled
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk associations: none
Administrative private-vlan trunk mappings: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL

Protected: false
Unknown unicast blocked: disabled
Unknown multicast blocked: disabled
Appliance trust: none

Examinons la configuration sur les ports

S1#show interfaces fa0/3 switchport


Name: Fa0/3
Switchport: Enabled
Administrative Mode: static access
Operational Mode: static access
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: native
Negotiation of Trunking: Off
Access Mode VLAN: 99 (Management)
Trunking Native Mode VLAN: 1 (default)
Voice VLAN: none
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk private VLANs: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001

Page 14 / 21
Travaux pratiques : configuration d’EtherChannel

Capture Mode Disabled


Capture VLANs Allowed: ALL
Protected: false
Appliance trust: none
S1#

Étape 3 : Assurez-vous que les ports ont été agrégés.


S1# show etherchannel summary

Assurons que les ports ont été agrégés


Que signifient les indicateurs SU et P dans le récapitulatif
Ethernet :
1#show etherchannel su
S1#show 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) PAgP Fa0/3(P) Fa0/4(P)


S1#
Que signifient les indicateurs SU et P dans le récapitulatif Ethernet :

Étape 4 : Configurons les ports trunk.


Une fois les ports agrégés, les commandes appliquées sur l’interface du canal de port affectent tous
les liens qui ont été regroupés. Configurez manuellement les ports Po1 sur S1 et S3 en tant que ports
trunk et attribuez-les au VLAN 99 natif.
S1(config)# interface port-channel 1

Page 15 / 21
Travaux pratiques : configuration d’EtherChannel

S1(config-if)# switchport mode trunk


S1(config-if)# switchport trunk native vlan 99

S3(config)# interface port-channel 1


S3(config-if)# switchport mode trunk
S3(config-if)# switchport trunk native vlan 99
Configurons les ports trunk

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

Partie 3 : Configuration de LACP


LACP est un protocole libre pour l’agrégation de liens développé par l’IEEE. Dans la Partie 3, le lien
entre S1 et S2 et le lien entre S2 et S3 sera configuré à l’aide de LACP. En outre, chaque lien sera
configuré en tant que trunk avant un regroupement en tant qu’EtherChannel.

Page 16 / 21
Travaux pratiques : configuration d’EtherChannel

Étape 1 : Configurons LACP entre S1 et S2.


S1(config)# interface range f0/1-2
S1(config-if-range)# switchport mode trunk
S1(config-if-range)# switchport trunk native vlan 99
S1(config-if-range)# channel-group 2 mode active
Creating a port-channel interface Port-channel 2

S1(config-if-range)# no shutdown

S2(config)# interface range f0/1-2


S2(config-if-range)# switchport mode trunk
S2(config-if-range)# switchport trunk native vlan 99
S2(config-if-range)# channel-group 2 mode passive
Creating a port-channel interface Port-channel 2

S2(config-if-range)# no shutdown

Configurons LACP entre S1 et S2

S1(config)#interface range fa0/1-2


S1(config-if-range)#switchport mode trunk
S1(config-if-range)#switchport trunk native vlan 99
S1(config-if-range)#channel-group 2 mode active
S1(config-if-range)#
S1(config-if-range)#no shutdown

S2(config)#interface range fa0/1-2


S2(config-if-range)#switchport mode trunk
S2(config-if-range)#switchport trunk native vlan 99
S2(config-if-range)#channel-group 2 mode passive
S2(config-if-range)#
S2(config-if-range)#no shutdown

Étape 2 : Assurons-nous que les ports ont été agrégés.


Quel protocole Po2 utilise-t-il pour l’agrégation de liens ? Quels ports sont agrégés pour former Po2 ?
Notez la commande utilisée pour la vérification.
 Le protocole PO2 utilise pour l’agrégation de liens est : le protocole LACP
 Les ports agrégés pour former Po2 sont : fa0/1,fa0/2,fa0/3, fa0/4

Page 17 / 21
Travaux pratiques : configuration d’EtherChannel

 la commande utilisée pour la vérification : S1#show interfaces etherchannel

Étape 3 : Configurons LACP entre S2 et S3.


a. Configurez le lien entre S2 et S3 en tant que Po3 et utilisez LACP en tant que protocole de lien
d’agrégation.
S2(config)# interface range f0/3-4
S2(config-if-range)# switchport mode trunk
S2(config-if-range)# switchport trunk native vlan 99
S2(config-if-range)# channel-group 3 mode active
Creating a port-channel interface Port-channel 3
S2(config-if-range)# no shutdown

S3(config)# interface range f0/1-2


S3(config-if-range)# switchport mode trunk
S3(config-if-range)# switchport trunk native vlan 99
S3(config-if-range)# channel-group 3 mode passive
Creating a port-channel interface Port-channel 3

S3(config-if-range)# no shutdown
b. Vérifions que l’EtherChannel s’est formé.

S3#show interfaces etherchannel


FastEthernet0/1:
Port state = 1
Channel group = 3 Mode = Passive Gcchange = -
Port-channel = Po3 GC = - Pseudo port-channel = Po3
Port index = 0 Load = 0x00 Protocol = LACP

Flags: S - Device is sending Slow LACPDUs F - Device is sending fast


LACPDUs

A - Device is in active mode. P - Device is in passive mode.

Local information:
LACP port Admin Oper Port Port
Port Flags State Priority Key Key Number State
Fa0/1 SA down 32768 0x0 0x0 0x1

Age of the port in the current state: 13245d:10h:31m:08s

FastEthernet0/2:
Port state = 1

Page 18 / 21
Travaux pratiques : configuration d’EtherChannel

Channel group = 3 Mode = Passive Gcchange = -


Port-channel = Po3 GC = - Pseudo port-channel = Po3
Port index = 0 Load = 0x00 Protocol = LACP

Flags: S - Device is sending Slow LACPDUs F - Device is sending fast


LACPDUs

A - Device is in active mode. P - Device is in passive mode.

Local information:
LACP port Admin Oper Port Port
Port Flags State Priority Key Key Number State
Fa0/2 SA down 32768 0x0 0x0 0x2

Age of the port in the current state: 13245d:10h:31m:08s

----
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

Flags: S - Device is sending Slow hello. C - Device is in Consistent


state.
A - Device is in Auto mode. P - Device learns on physical port.
d - PAgP is down.
Timers: H - Hello timer is running. Q - Quit timer is running.
S - Switching timer is running. I - Interface timer is running.

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

Age of the port in the current state: 00d:01h:12m:50s

----
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

Port index = 0 Load = 0x00 Protocol = PAgP

Flags: S - Device is sending Slow hello. C - Device is in Consistent


state.
A - Device is in Auto mode. P - Device learns on physical port.
d - PAgP is down.
Timers: H - Hello timer is running. Q - Quit timer is running.
S - Switching timer is running. I - Interface timer is running.

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

Age of the port in the current state: 00d:01h:12m:50s

----
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

Ports in the Port-channel:

Index Load Port EC state No of bits


------+------+------+------------------+-----------
0 00 Fa0/4 Automatic 0
0 00 Fa0/3 Automatic 0
Time since last port bundled: 00d:01h:12m:50s Fa0/3
----
Port-channel3:Port-channel3 (Primary aggregator)
Age of the Port-channel = 00d:00h:00m:37s
Logical slot/port = 2/3 Number of ports = 0
HotStandBy port = null
Port state =
Protocol = 1
Port Security = Disabled

Page 20 / 21
Travaux pratiques : configuration d’EtherChannel

Page 21 / 21

Vous aimerez peut-être aussi