Dit document bevat een voorbeeldconfiguratie voor het instellen van een EtherChannel tussen een Catalyst 3550 en een Catalyst 6500/6000 met Cisco IOS®-systeemsoftware. EtherChannel kan Fast EtherChannel of Gigabit EtherChannel worden genoemd, afhankelijk van de snelheid van de interfaces of poorten die worden gebruikt om het EtherChannel te vormen.
Opmerking: De EtherChannel-opdrachten die in dit document op de switch Catalyst 3550 worden toegepast, kunnen ook worden toegepast op switches uit de Catalyst 3750-reeks.
Er zijn geen specifieke vereisten van toepassing op dit document.
De informatie in dit document is gebaseerd op de volgende software- en hardware-versies:
Catalyst 3550-switch met Cisco IOS-softwarerelease 12.1(14)EA
Catalyst 6500/6000-switch met Cisco IOS-softwarerelease 12.1(13)E1
De informatie in dit document is gebaseerd op de apparaten in een specifieke laboratoriumomgeving. Alle apparaten die in dit document worden beschreven, hadden een opgeschoonde (standaard)configuratie. Als uw netwerk live is, moet u de potentiële impact van elke opdracht begrijpen.
In dit document zijn twee Gigabit Ethernet-interfaces op een Catalyst 3550-switch - de Gigabit Ethernet-interface op de 3500 is een 10/100/1000 onderhandelde Ethernet-interface - gebundeld in een Fast EtherChannel met twee Fast Ethernet-interfaces van een Catalyst 6500/6000-switch met Cisco IOS System Software om een Layer 2 (L2) EtherChannel te vormen.
Opmerking: In dit document verwijzen Fast EtherChannel, Gigabit EtherChannel, poortkanaal en kanaalgroep allemaal naar EtherChannel.
De Catalyst switch-configuratie in dit document is van toepassing op elke Catalyst 6500/6000- of Catalyst 4500/4000-serie switch waarop Cisco IOS System Software wordt uitgevoerd.
In dit document worden alleen configuratiebestanden voor de switches weergegeven, evenals uitvoer van de bijbehorende opdrachten voor voorbeeldweergave. Raadpleeg de volgende documenten voor meer informatie over het configureren van een EtherChannel:
Layer 2 EtherChannels-gedeelte van EtherChannel configureren (switch Catalyst 3550)
Layer 3 EtherChannels-gedeelte van EtherChannel configureren (switch Catalyst 3560)
Layer 2 EtherChannels-gedeelte van EtherChannel configureren (switch Catalyst 3750)
Layer 3 en Layer 2 EtherChannel configureren (Catalyst 6500/6000 met Cisco IOS-systeemsoftware)
Layer 2 EtherChannel-gedeelte voor het begrijpen en configureren van EtherChannel (Catalyst 4500/4000 met Cisco IOS-systeemsoftware) configureren
EtherChannel kan handmatig worden geconfigureerd met de juiste opdrachten. U kunt het EtherChannel ook automatisch configureren met het Port Aggregation Protocol (PAgP) zodat de switch met de andere kant over het kanaal kan onderhandelen. Voor meer informatie over PAgP, zie deze documenten:
Het gedeelte Port Aggregation Protocol van EtherChannel configureren (Catalyst 3550-switch) begrijpen
Het gedeelte Port Aggregation Protocol van EtherChannel configureren (Catalyst 3560-switch) begrijpen
Sectie Port Aggregation Protocol van EtherChannels configureren (switch Catalyst 3750)
De sectie Port Aggregation Protocol van EtherChannel configureren (Catalyst 6500/6000 met Cisco IOS-systeemsoftware) begrijpen
Het gedeelte Port Aggregation Protocol begrijpen en configureren van EtherChannel (Catalyst 4500/4000 met Cisco IOS-systeemsoftware)
De configuraties in dit document worden geïmplementeerd met behulp van de gewenste modus. Als u van plan bent het EtherChannel handmatig te configureren, gebruikt u de stappen die u hebt opgegeven om een poortkanaal te maken. Dit voorkomt problemen met Spanning Tree Protocol (STP) tijdens het configuratieproces. STP kan sommige poorten afsluiten, met een poortstatus van error-disabled [erdisable], als de ene kant als kanaal is geconfigureerd voordat de andere kant als kanaal kan worden geconfigureerd.
Voer de volgende stappen uit om een poortkanaal te maken:
Laat de interfaces te gebruiken in de poort channeling als administratief afsluiten.
Maak het poortkanaal (kanaalgroep) op de Catalyst 6500/6000-switch.
Zorg ervoor dat u de kanaalmodus instelt op bijvoorbeeld kanaalgroep 1-modus.
Maak poortkanalen op de Catalyst 3550-, 3560- of 3750-switch.
Zorg ervoor dat u de kanaalmodus instelt op Aan.
Schakel de interfaces die eerder waren uitgeschakeld op de Catalyst 6500/6000-switch opnieuw in met de opdracht geen afsluiting.
Deze sectie bevat informatie over het configureren van de functies die in dit document worden beschreven.
Opmerking: Gebruik Command Lookup Tool (alleen voor geregistreerde klanten) voor meer informatie over de opdrachten die in dit document worden gebruikt.![]()
In dit document wordt de netwerkconfiguratie gebruikt die in dit diagram wordt weergegeven:
Opmerking: De Gigabit Ethernet-interface op de Catalyst 3550 is een 10/100/1000 Mbps onderhandelde Ethernet-interface. De Gigabit-poort op de Catalyst 3550 kan ook worden aangesloten op een FastEthernet-poort (100 Mbps) op een Catalyst 6500/6000.
Opmerking: De Catalyst 3750-serie switches ondersteunen cross-stack EtherChannel, waardoor interfaces van verschillende stack switches lid kunnen zijn van dezelfde EtherChannel-groep. Voor meer informatie over EtherChannel in een gestapelde switch-omgeving, raadpleegt u het gedeelte EtherChannel en Switch Stacks van de EtherChannels-documentatie configureren voor switches uit de Catalyst 3750-reeks.
Dit document gebruikt de volgende configuraties:
| Catalyst 3550 |
|---|
Building configuration... Current configuration : 1610 bytes ! version 12.1 no service pad service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname Cat3550 ! enable password ww ! ip subnet-zero no ip finger ! ! ! ! !--- A logical port-channel interface is automatically created !--- when ports are grouped into a channel group. interface Port-channel 1 !--- In this example, the L2 EtherChannel is configured. !--- A Layer 3 (L3) EtherChannel can also be configured on the Catalyst 3550 switches. !--- For more information, refer to the document Configuring EtherChannel. switchport mode access no ip address snmp trap link-status! !--- Note: The Gigabit Ethernet interface on the Catalyst 3550 is a !--- 10/100/1000 Mbps negotiated Ethernet interface. The Gigabit port on the Catalyst 3550 is !--- connected to a FastEthernet (100 Mbps) port on the Catalyst 6500/6000. !--- The port is a member of channel group 1. interface GigabitEthernet0/1 switchport mode access no ip address snmp trap link-status channel-group 1 mode desirable ! !--- The port is a member of channel group 1. interface GigabitEthernet0/2 switchport mode access no ip address snmp trap link-status channel-group 1 mode desirable ! interface GigabitEthernet0/3 switchport mode access no ip address snmp trap link-status ! !--- Output suppressed. interface GigabitEthernet0/12 switchport mode access no ip address snmp trap link-status !--- Interface VLAN1 is required for management purposes. interface Vlan1 ip address 10.1.1.1 255.255.255.0 ! ip classless ip http server ! ! line con 0 transport input none line vty 5 15 ! end |
| Catalyst 6500/6000 |
|---|
Building configuration... Current configuration : 5869 bytes ! version 12.1 service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname cat6500 ! boot buffersize 126968 boot bootldr bootflash:c6msfc-boot-mz.121-4.E1 enable password ww ! redundancy main-cpu auto-sync standard ip subnet-zero ! ! no ip finger ! ! ! ! !--- A logical port-channel interface is automatically created !--- when ports are grouped into a channel group. interface Port-channel 1 no ip address switchport switchport mode access ! interface GigabitEthernet1/1 no ip address shutdown ! interface GigabitEthernet1/2 no ip address shutdown ! !--- Note: The Gigabit Ethernet interface on the Catalyst 3550 is a !--- 10/100/1000 Mbps negotiated Ethernet interface. The Gigabit port on the Catalyst 3550 is !--- connected to a FastEthernet (100 Mbps) port on the Catalyst 6500/6000. interface FastEthernet3/1 no ip address !--- In this example, the L2 EtherChannel is configured. !--- An L3 EtherChannel can also be configured on the Catalyst 6500/6000 running !--- Cisco IOS System Software. For more details, refer to the document !--- Configuring EtherChannel. !--- On a Catalyst 6500/6000, you must issue the switchport !--- command once, without any keywords, in order to configure the interface as an L2 port. !--- By default, all the ports are router ports (L3 ports). !--- On a Catalyst 4500/4000 switch, all ports are L2 ports by default; !--- no additional command is required. switchport !--- This command puts the interface in VLAN1, by default. switchport mode access !--- The port is a member of channel group 1. channel-group 1 mode desirable ! interface FastEthernet3/2 no ip address !--- On a Catalyst 6500/6000, you must issue the switchport !--- command once, without any keywords, in order to configure the interface as an L2 port. !--- By default, all the ports are router ports (L3 ports). !--- On a Catalyst 4500/4000 switch, all ports are L2 ports by default; !--- no additional command is required. switchport !--- This command puts the interface in VLAN1, by default. switchport mode access !--- The port is a member of channel group 1. channel-group 1 mode desirable ! interface FastEthernet3/3 no ip address switchport switchport mode access ! !--- Output suppressed. ! interface FastEthernet3/48 no ip address switchport switchport mode access ! !--- Interface VLAN1 is required for management purposes. interface Vlan1 ip address 10.1.1.2 255.255.255.0 ! ip classless no ip http server ! ! ! line con 0 transport input none line vty 0 4 ! end |
Opmerking: Dit configuratievoorbeeld toont een EtherChannel-configuratie met toegangskoppelingen. Dezelfde configuratie is van toepassing op EtherChannel trunk-links. Geef de opdracht voor de trunk van de switchport-modus uit of laat de switches onderhandelen over de modus met de gewenste dynamische modus. Raadpleeg VLAN Trunk Protocol (VTP) configureren voor meer informatie over het configureren van trunking.
Een ander voorbeeld van het configureren van Port-Channel met subinterface in Catalyst 3560 switch met Cisco IOS Software Release 12.2(25).
| Catalyst 3560 |
|---|
Building configuration... Current configuration : 2480 bytes ! version 12.2 ! interface Port-channel5 no switchport no ip address ! interface Port-channel5.690 ! interface Port-channel10 no switchport no ip address ! interface Port-channel10.1 ! interface Port-channel10.690 ! interface Port-channel11 no switchport no ip address |
Bepaalde opdrachten met show worden ondersteund door de tool Output Interpreter (alleen voor geregistreerde klanten). Hiermee kunt u een analyse van de output van opdrachten met show genereren.
Om het poortkanaal in Catalyst 6500/6000 en Catalyst 3500-switches met Cisco IOS System Software te verifiëren, geeft u de volgende opdrachten uit:
Toon interfaces poort-kanaal-groepsnummer
Samenvatting van de etherchannel-groepsnummers weergeven
Als u de STP-status wilt controleren in Catalyst 6500/6000- en Catalyst 3500-switches met Cisco IOS System Software, geeft u deze opdracht:
Spanning-Tree VLAN-nummer details weergeven
Cat3550#show interface port-channel 1
Port-channel1 is up, line protocol is up
Hardware is EtherChannel, address is 0002.4b28.db02 (bia 0002.4b28.db02)
MTU 1500 bytes, BW 200000 Kbit, DLY 1000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s
input flow-control is off, output flow-control is off
Members in this channel: Gi0/1 Gi0/2
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:03:27, output 00:00:00, output hang never
Last clearing of "show interface" counters never
Queueing strategy: fifo
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
26 packets input, 5344 bytes, 0 no buffer
Received 17 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 input packets with dribble condition detected
59 packets output, 5050 bytes, 0 underruns
0 output errors, 0 collisions, 2 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
Cat3550#show spanning-tree vlan 1 detail
VLAN1 is executing the ieee compatible Spanning Tree protocol
Bridge Identifier has priority 32768, address 0002.4b28.db01
Configured hello time 2, max age 20, forward delay 15
We are the root of the spanning tree
Topology change flag not set, detected flag not set
Number of topology changes 1 last change occurred 00:00:38 ago
from Port-channel1
Times: hold 1, topology change 35, notification 2
hello 2, max age 20, forward delay 15
Timers: hello 0, topology change 0, notification 0, aging 0
Port 65 (Port-channel1) of VLAN1 is forwarding
Port path cost 12, Port priority 128, Port Identifier 128.65.
Designated root has priority 32768, address 0002.4b28.db01
Designated bridge has priority 32768, address 0002.4b28.db01
Designated port id is 128.65, designated path cost 0
Timers: message age 0, forward delay 0, hold 0
Number of transitions to forwarding state: 1
BPDU: sent 34, received 0
Cat3550# show etherchannel 1 summary
Flags: D - down P - in port-channel
I - stand-alone s - suspended
R - Layer3 S - Layer2
U - port-channel in use
Group Port-channel Ports
-----+------------+-----------------------------------------------------------
1 Po1(SU) Gi0/1(P) Gi0/2(P)
Cat3550# ping 10.1.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
Cat6500# show interface port-channel 1
Port-channel1 is up, line protocol is up
Hardware is EtherChannel, address is 0002.7ef1.36e1 (bia 0002.7ef1.36e1)
MTU 1500 bytes, BW 200000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Full-duplex, 100Mb/s
Members in this channel: Fa3/1 Fa3/2
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Queueing strategy: fifo
Output queue 0/40, 0 drops; input queue 0/2000, 0 drops
5 minute input rate 1000 bits/sec, 1 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
407 packets input, 34994 bytes, 0 no buffer
Received 311 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 input packets with dribble condition detected
93 packets output, 16598 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
Cat6500# show spanning-tree vlan 1 detail
VLAN1 is executing the ieee compatible Spanning Tree protocol
Bridge Identifier has priority 32768, address 00d0.024f.6001
Configured hello time 2, max age 20, forward delay 15
Current root has priority 32768, address 0002.4b28.db01
Root port is 833 (Port-channel1), cost of root path is 12
Topology change flag not set, detected flag not set
Number of topology changes 0 last change occurred 00:02:13 ago
Times: hold 1, topology change 35, notification 2
hello 2, max age 20, forward delay 15
Timers: hello 0, topology change 0, notification 0, aging 300
Port 833 (Port-channel1) of VLAN1 is forwarding
Port path cost 12, Port priority 128, Port Identifier 131.65.
Designated root has priority 32768, address 0002.4b28.db01
Designated bridge has priority 32768, address 0002.4b28.db01
Designated port id is 128.65, designated path cost 0
Timers: message age 1, forward delay 0, hold 0
Number of transitions to forwarding state: 1
BPDU: sent 0, received 66
Cat6500# show etherchannel 1 summary
Flags: D - down P - in port-channel
I - stand-alone s - suspended
R - Layer3 S - Layer2
Group Port-channel Ports
-----+------------+-----------------------------------------------------------
1 Po1(SU) Fa3/1(P) Fa3/2(P)
Cat6500# ping 10.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
Een veelvoorkomend probleem tijdens EtherChannel-configuratie is dat de interfaces in de modus Err-Disable gaan. Dit kan worden gezien wanneer Etherchannel in de ene switch wordt overgeschakeld naar de ON-modus en de andere switch niet onmiddellijk wordt geconfigureerd. Als deze status een minuut of zo wordt gelaten, denkt STP op de switch waar EtherChannel is ingeschakeld dat er een lus is. Hierdoor worden de kanaalpoorten in de staat err-disable gezet. Zie dit voorbeeld voor meer informatie over hoe u kunt bepalen of uw EtherChannel-interfaces de status err-disable hebben:
%SPANTREE-2-CHNL_MISCFG: Detected loop due to etherchannel misconfiguration of Gi0/9 %PM-4-ERR_DISABLE: channel-misconfig error detected on Po10, putting Gi0/9 in err-disable state %PM-4-ERR_DISABLE: channel-misconfig error detected on Po10, putting Gi0/10 in err-disable state
Switch1#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
------+-------------+-----------+-----------------------------------------------
10 Po10(SD) - Gi0/9(D) Gi0/10(D)
Switch1#show interfaces GigabitEthernet 0/9 status
Port Name Status Vlan Duplex Speed Type
Gi0/9 err-disabled 1 auto auto 10/100/1000BaseTX
Switch1#show interfaces GigabitEthernet 0/10 status
Port Name Status Vlan Duplex Speed Type
Gi0/10 err-disabled 1 auto auto 10/100/1000BaseTX
De foutmelding vermeldt dat het EtherChannel een omspannende boomlus heeft aangetroffen. Om het probleem op te lossen, stelt u de kanaalmodus in op wenselijk aan beide zijden van de verbinding en schakelt u vervolgens de volgende interfaces opnieuw in:
Switch1#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch1(config)#interface gi0/9 Switch1(config-if)#channel-group 10 mode desirable
Dit zorgt ervoor dat elke kant een kanaal vormt als ze allebei instemmen met het kanaal. Als ze niet akkoord gaan met het kanaal, blijven ze functioneren als normale poorten.
Nadat de kanaalmodus is ingesteld op wenselijk aan beide zijden van de verbinding, geeft u de opdrachten Uitschakelen en Uitschakelen op de bijbehorende interface uit om de poorten handmatig opnieuw in te schakelen:
Switch1(config-if)#shutdown Switch1(config-if)#no shutdown
De opdracht snelheid niet onderhandelen die is geconfigureerd op een poortkanaal, wordt niet altijd weergegeven in de actieve configuratie. Dit gebeurt omdat niet onderhandelen over de interface van het poortkanaal afhankelijk is van die van gebundelde poorten. Het wordt ingevoegd wanneer het poortkanaal actief is en is gebaseerd op de configuratie van de afzonderlijke kanaalpoorten.
| Revisie | Publicatiedatum | Opmerkingen |
|---|---|---|
1.0 |
04-Dec-2001
|
Eerste vrijgave |