Configuration et mise en place:
2 switchs cisco:
- cisco Catalyst 3750 : switch-3750_master
- cisco Catalyst 2950 : switch-2950
but : réaliser une connection etherchannel entre ces 2 switchs.
ports utilisés :
- ports utilisés sur le 2950 : 35 -> 39
- ports utilisés sur le 3750 : 20 -> 24 finalement 16 -> 20 : ports 21 a 24 sont "routed" et ne sais pas le changer
Protocole utilisé : PAgP : Port Aggregatopm Protocol (Cisco proprietary)
Pour qu'un groupement de ports fonctionne, il faut que tous les ports aient les mêmes caractéristiques (vitesse, full ou hallf duplex), et ce, sur les deux switch. De plus, il va de soit que tous les ports d'un groupement appartiennent au même VLAN.
commandes intéressantes :
- show etherchannel summary
- show interfaces status
Configuration du portchannel sur le 3750:
Association des ports 16 à 20 pour un etherchannel pagp :
switch-3750_master(config)#interface range GigabitEthernet 1/0/16 - 20
switch-3750_master(config-if-range)#channel-protocol pagp
switch-3750_master(config-if-range)#channel-group 4 mode desirable
Creating a port-channel interface Port-channel 4
switch-3750_master(config-if-range)#
Vérifier la configuration générale des etherchannel sur le switch :
switch-3750_master#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: 4
Number of aggregators: 4
Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
1 Po1(SD) -
2 Po2(RD) -
3 Po3(SD) PAgP Gi1/0/13(D) Gi1/0/14(D) Gi1/0/15(D)
4 Po4(SD) PAgP Gi1/0/16(D) Gi1/0/17(D) Gi1/0/18(D)
Gi1/0/19(D) Gi1/0/20(D)
switch-3750_master# Vérification du port channel 4
switch-3750_master#show etherchannel 4 port-channel
Port-channels in the group:
---------------------------
Port-channel: Po4
------------
Age of the Port-channel = 0d:00h:37m:50s
Logical slot/port = 10/4 Number of ports = 0
GC = 0x00000000 HotStandBy port = null
Port state = Port-channel Ag-Not-Inuse
Protocol = PAgP
switch-3750_master# Configuration des ports du port channel :
switch-3750_master(config)#interface range GigabitEthernet 1/0/16 - 20
switch-3750_master(config-if-range)#switchport mode dynamic desirable
switch-3750_master(config-if-range)#duplex auto
switch-3750_master(config-if-range)#speed auto
switch-3750_master(config)#interface port-channel 4
switch-3750_master(config-if)#switchport mode dynamic desirable
switch-3750_master(config-if-range)#no shutdown
configuration switch 2950 de façon similaire :
switch-2950(config)#interface range FastEthernet 0/35 - 39
switch-2950(config-if-range)#channel-group 4 mode desirable
Creating a port-channel interface Port-channel 4
switch-2950(config-if-range)#
switch-2950(config)#interface port-channel 4
switch-2950(config-if)#switchport mode dynamic desirable
switch-2950#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
------+-------------+-----------+-----------------------------------------------
4 Po4(SD) PAgP Fa0/35(D) Fa0/36(D) Fa0/37(D) Fa0/38(D)
Fa0/39(D)
switch-2950#
switch-2950(config)#interface range fastEthernet 0/35 - 39
switch-2950(config-if-range)#no shutdown
switch-3750_master#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: 4
Number of aggregators: 4
Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
1 Po1(SD) -
2 Po2(RD) -
3 Po3(SD) PAgP Gi1/0/13(D) Gi1/0/14(D) Gi1/0/15(D)
4 Po4(SU) PAgP Gi1/0/16(P) Gi1/0/17(P) Gi1/0/18(P)
Gi1/0/19(P) Gi1/0/20(P)
switch-3750_master#
switch-2950#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 - unsuitable for bundling
U - in use f - failed to allocate aggregator
d - default port
Number of channel-groups in use: 1
Number of aggregators: 1
Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
4 Po4(SU) PAgP Fa0/35(P) Fa0/36(Pd) Fa0/37(P)
Fa0/38(P) Fa0/39(P)
switch-2950#
Configurer le Load Balance : Utiliser la commande “port-channel load-balance ?” pour avoir un aperçu des méthode de distribution de charge disponibles.
Retirer les ports d'un etherchannel :
switch-3750_master#configure terminal
switch-3750_master(config)#interface range GigabitEthernet 1/0/16 - 20
switch-3750_master(config-if-range)#no channel-group
Supprimer un etherchannel : il n'y a malheureusement pas possibilité de supprimer totalement un etherchannel. La seule solution est de sauvegarder la configuration sur un serveur tftp de l'éditer pour supprimer la déclaration de l'etherchannel et ensuite de re-uploader le fichier.