Dit document biedt een voorbeeldconfiguratie en een opdrachtstructuur voor het instellen van een EtherChannel-link die een trunklink is tussen een Catalyst Layer 2 (L2) vaste configuratie-switch, die de 2950/2955/2970/2940/2900XL/3500XL switches bevat, en een Catalyst 4500/4000 switch die Catalyst OS (CatOS) uitvoert. U kunt de Catalyst L2 vaste configuratie switch configureren met elke Catalyst 4500/4000, 5500/5000 of 6500/6000 Series switch die in dit scenario CatOS draait om dezelfde resultaten te verkrijgen. Met de populariteit van Fast Ethernet in huidige netwerken, gebruikt de voorbeeldconfiguratie Fast Ethernet. De steekproef bundelt twee Fast Ethernet-poorten van elk van de switches in een Fast EtherChannel (FEC) en configureert IEEE 802.1Q (dot1q)-trunking bovenop de FEC.
Dit document gebruikt dezelfde term, EtherChannel, om te verwijzen naar FEC, Gigabit EtherChannel (GEC), poortkanaal, kanaal en poortgroep. Raadpleeg deze documenten voor meer informatie over het configureren van EtherChannel op de switches:
Fast EtherChannel en Gigabit EtherChannel configureren op Catalyst 4000 switches
EtherChannel configureren op Catalyst 2950 switches
EtherChannel configureren op Catalyst 2950/2955 switches
EtherChannel configureren op Catalyst 2970 switches
EtherChannel configureren op Catalyst 2940 switches
EtherChannel configureren tussen Catalyst 2900XL/3500XL Switches en CatOS-Switches
De informatie in dit document is gebaseerd op de volgende software- en hardware-versies:
Catalyst 2950 Series met Cisco IOS®-softwarerelease 12.1(6)EA2c
Catalyst 2955 Series met Cisco IOS-softwarerelease 12.1(12c)EA1
Catalyst 2940 Series met Cisco IOS-softwarerelease 12.1(22)EA1
Catalyst 2970 Series met Cisco IOS-softwarerelease 12.1(19)EA1c
Catalyst 2900XL/3500XL switch die Cisco IOS-softwarerelease 12.0(5)WIC9 gebruikt
Catalyst 4000 die CatOS versie 8.4.1 uitvoert
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.
Raadpleeg Cisco Technical Tips Conventions (Conventies voor technische tips van Cisco) voor meer informatie over documentconventies.
Wanneer u een Catalyst L2 vaste configuratie switch en een Catalyst 4500/4000 familie product dat loopt CatOS (Catalyst 4003/4006/2948G/2980G), houd in gedachten dat de switches alleen ondersteunen dot1q trunking inkapseling. Andere Catalyst-platforms ondersteunen zowel dot1q als Inter-Switch Link Protocol (ISL). Hoewel dot1q een IEEE-standaard is, is ISL eigendom van Cisco. Alleen Cisco-hardware kan ISL-trunkinginsluiting ondersteunen. Als u andere Cisco-switchingplatforms gebruikt, zoals Catalyst 5500/5000 of Catalyst 6500/6000, en u moet bepalen welke trunkingmethode ondersteuning heeft, geeft u deze opdracht uit:
mod/poort tonen van poortmogelijkheden
Voor meer informatie over een specifieke poort en over de mogelijkheden van de specifieke poort (zoals dot1q, ISL en poortkanaal) raadpleegt u:
EtherChannel heeft automatische configuratie met ofwel Port Aggregation Protocol (PAgP) of Link Aggregation Control Protocol (LACP). U kunt EtherChannel ook handmatig configureren. PAgP is een bedrijfseigen Cisco-protocol dat u alleen kunt uitvoeren op Cisco-switches en op switches waarvoor een licentie is verleend aan leveranciers en die PAgP ondersteunen. IEEE 802.3ad definieert LACP. Met LACP kunnen Cisco-switches Ethernet-kanalen beheren tussen switches die voldoen aan het 802.3ad-protocol. U kunt maximaal 16 poorten configureren om een kanaal te vormen. Acht van de poorten zijn in de actieve modus en de andere acht in de stand-by modus. Wanneer een van de actieve poorten uitvalt, wordt een stand-by poort actief. De stand-by modus werkt alleen voor LACP, niet voor PAgP.
Als u een van deze protocollen gebruikt, leert een switch de identiteit van partners die PAgP of LACP kunnen ondersteunen en leert hij de mogelijkheden van elke interface. De switch groepeert dan dynamisch interfaces met gelijkaardige configuraties in één enkele logische verbinding (kanaal of gezamenlijke haven); de switch baseert deze interfacegroepen op hardware, beheerdersbeperkingen en poortparameterbeperkingen. PAgP groepeert bijvoorbeeld de interfaces met dezelfde snelheid, duplexmodus, native VLAN, VLAN-bereik en trunkingstatus en -type. Nadat PAgP de koppelingen in een EtherChannel groepeert, voegt PAgP de groep als één switch poort toe aan de overspanningsstructuur.
Switch | LACS-ondersteuning | Minimale LACP-versie met ondersteuning | Ondersteuning van PAgP | Minimale PAgP versie met ondersteuning |
---|---|---|---|---|
Catalyst 2940 | Ja | Cisco IOS-softwarerelease 12.1(19)EA1 | Ja | Cisco IOS-softwarerelease 12.1(13)YA |
Catalyst 2950 | Ja | Cisco IOS-softwarerelease 12.1(14)EA1 | Ja | Cisco IOS-softwarerelease 12.0(5.2)WIC(1) |
Catalyst 2955 | Ja | Cisco IOS-softwarerelease 12.1(14)EA1 | Ja | Cisco IOS-softwarerelease 12.1(12c)EA1 |
Catalyst 2970 | Ja | Cisco IOS-softwarerelease 12.2(18)SE | Ja | Cisco IOS-softwarerelease 12.1(11)AX |
Catalyst 2900XL switch | Nee | — | Nee | — |
Catalyst 3500XL switch | Nee | — | Nee | — |
In deze sectie worden de door de gebruiker configureerbare EtherChannel-modi vermeld voor de opdracht voor interfaceconfiguratie van kanaalgroepen. Switch interfaces ruilen PAgP-pakketten alleen met partner interfaces met de auto of gewenste mode configuratie. Switch interfaces ruilen LACP-pakketten alleen met partner interfaces met de actieve of passieve modemconfiguratie. Interfaces met de configuratie aan mode wisselen geen PAgP- of LACP-pakketten uit.
actief—plaatst een interface in een actieve onderhandelingsstaat, waarin de interface onderhandelingen met andere interfaces begint door het verzenden van pakketten LACP.
auto-Plaatst een interface in een passieve onderhandelingsstaat, waarin de interface aan PAgP pakketten antwoordt die de interface ontvangt maar niet PAgP pakketonderhandeling begint. Deze instelling minimaliseert de transmissie van PAgP-pakketten.
wenselijk-plaatst een interface in een actieve onderhandelingsstaat, waarin de interface onderhandelingen met andere interfaces door het verzenden van pakketten PAgP begint.
on—Forceert de interface naar een EtherChannel zonder PAgP of LACP. Met de aan-modus, bestaat een bruikbare EtherChannel alleen wanneer een interfacegroep in de aan-modus een verbinding heeft met een andere interfacegroep in de aan-modus.
passief—plaatst een interface in een passieve onderhandelingsstaat, waarin de interface reageert op LACP-pakketten die de interface ontvangt, maar LACP-pakketonderhandeling niet start. Deze instelling minimaliseert de transmissie van LACP-pakketten.
Er zijn slechts drie geldige combinaties om het LACP-koppelingsaggregaat te gebruiken, zoals uit deze tabel blijkt:
Switch | Switch | Opmerkingen |
---|---|---|
active | active | Aanbevolen. |
active | passief | Koppelingsaggregatie treedt op als onderhandeling succesvol is. |
on | on | Koppelaggregatie vindt plaats zonder LACP. Hoewel dit werkt, wordt deze combinatie niet aanbevolen. |
Opmerking: Bij de configuratie van een LACP-kanaal is de LACP-kanaalmodus standaard passief.
PAgP helpt bij de automatische creatie van FEC-links. PAgP-pakketten verzenden tussen poorten die met FEC compatibel zijn, zodat u kunt onderhandelen over de vorming van een kanaal. Er zijn bewust bepaalde beperkingen in PAgP ingevoerd. De beperkingen zijn:
PAgP vormt geen bundel op poorten met configuratie voor dynamische VLAN’s. PAgP vereist dat alle poorten in het kanaal tot hetzelfde VLAN behoren of dat de poorten trunkpoortconfiguraties hebben. Wanneer er al een bundel bestaat en u het VLAN van een poort aanpast, veranderen alle poorten in de bundel om dat VLAN aan te passen.
PAgP groepeert geen poorten die op verschillende snelheden of poortduplex werken. Als u snelheid en duplex verandert wanneer een bundel bestaat, verandert PAgP de poortsnelheid en duplex voor alle poorten in de bundel.
De modi van de PAgP zijn uitgeschakeld, automatisch, gewenst en ingeschakeld. Alleen de combinaties auto-wenselijk, wenselijk-wenselijk, en on-on-on staan de vorming van een kanaal toe. Als een apparaat aan de ene kant van het kanaal geen PAgP ondersteunt, zoals een router, moet het apparaat aan de andere kant PAgP hebben ingesteld op. Catalyst 2950 switches ondersteunen PAgP voor kanaalonderhandeling met Cisco IOS-softwarerelease 12.1(6)EA2 of hoger. Cisco IOS-softwarerelease 12.0 ondersteunt alleen statische configuratie. Alle Catalyst switches die CatOS uitvoeren ondersteunen PAgP-protocolkanaalonderhandeling.
Er zijn verschillende typen trunkingprotocollen. Als een poort een trunk kan worden, kan het ook de mogelijkheid hebben om automatisch te trunken. In sommige gevallen kan de haven zelfs onderhandelen over het soort trunking dat op de haven moet worden gebruikt. Deze capaciteit om de trunkingmethode met het andere apparaat te bespreken heeft de naam Dynamic Trunking Protocol (DTP).
Catalyst 2950 switches ondersteunen DTP voor dynamische trunking met Cisco IOS-softwarerelease 12.1(6)EA2 of hoger. Cisco IOS-softwarerelease 12.0 ondersteunt alleen statische configuratie. Alle Catalyst switches die CatOS uitvoeren ondersteunen DTP.
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.
Het netwerk in dit document is als volgt opgebouwd:
Dit document gebruikt de volgende configuraties:
LACS op Catalyst L2 switch voor vaste configuratie waarin Cisco IOS-software wordt uitgevoerd
PAgP op Catalyst L2 switch voor vaste configuratie die Cisco IOS-software gebruikt
Catalyst 4000 |
---|
Cat4003 (enable) show channelprotocol Channel Module Protocol ------- -------- 2 PAGP Cat4003 (enable) !--- By default, all ports on a Catalyst 4500/4000 use channel protocol PAgP. !--- So, to run LACP, you must change the channel protocol to LACP. On switches !--- that run CatOS, you can only change the channel mode per module. In this !--- example, the command set channelprotocol lacp module_number !--- changes the channel mode for slot 2. Use the show channelprotocol command to !--- verify the changes. Cat4003 (enable) set channelprotocol lacp 2 Mod 2 is set to LACP protocol. Cat4003 (enable) Cat4003 (enable) set port lacp-channel 2/1-2 Port(s) 2/1-2 are assigned to admin key 80. Cat4003 (enable) !--- There is a parameter exchange in the LACP packet. The parameter is !--- the admin key. A channel can only form between ports that have !--- the same admin key. In this example, both ports have assignment to the same group. !--- (The random assignment is admin key 80.) !--- Keep in mind that the admin key is only locally significant. In other words, !--- the admin key must be the same only for ports within the switch and is not a factor !--- between different switches. Cat4003 (enable) set port lacp-channel 2/1-2 mode active Port(s) 2/1-2 channel mode set to active. Cat4003 (enable) To form the channel change the LACP channel mode to active state on one or both of the sides. Cat4003 (enable) set trunk 2/1 desirable dot1q Port(s) 2/1-2 trunk mode set to desirable. Port(s) 2/1-2 trunk type set to dot1q. Cat4003 (enable) !--- Configure the ports to the desirable trunk mode that makes the ports actively !--- attempt to convert the link to a trunk link. The ports become trunk ports if !--- the neighbor ports are in on, desirable, or auto mode. Cat4003 (enable) show config This command shows non-default configurations only. Use 'show config all' to show both default and non-default configurations. ................. ............................. .. begin !--- Output suppressed. #channelprotocol set channelprotocol lacp 2 ! #port channel set port lacp-channel 2/1-2 80 ! !--- Output suppressed. #module 2 : 48-port 10/100/1000 Ethernet set trunk 2/1 desirable dot1q 1-1005,1025-4094 set trunk 2/2 desirable dot1q 1-1005,1025-4094 ! !--- Output suppressed. |
De configuratieopdrachten voor de vaste configuratie Catalyst L2 switch-platforms zijn hetzelfde. Om de documentlengte redelijk te houden, toont dit document de configuratie voor slechts één van de platforms (Catalyst 2955). Maar tests van alle opdrachten vonden plaats op alle Catalyst L2 vaste configuratie switch platforms.
Catalyst L2 Switch voor vaste configuratie |
---|
CAT2955# configure terminal Enter configuration commands, one per line. End with CNTL/Z. CAT2955(config)# interface fastethernet 0/9 CAT2955(config-if)# channel-group 1 mode active Creating a port-channel interface Port-channel 1 Assign the interface to a channel group, and specify the LACP mode. CAT2955(config-if)# 6d08h: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/9,changed state to down 6d08h: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/9,changed state to up 6d08h: %LINK-3-UPDOWN: Interface Port-channel1, changed state to up 6d08h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1,changed state to up CAT2955(config-if)# interface fastethernet 0/10 CAT2955(config-if)# channel-group 1 mode active CAT2955(config-if)# 6d08h: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/10,changed state to down 6d08h: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/10,changed state to up CAT2955(config-if)# interface port-channel 1 CAT2955(config-if)# switchport mode trunk Configuring the port channel interface to be a trunk pulls fa 0/9-10 in. CAT2955(config-if)# ^Z CAT2955# show run 6d08h: %SYS-5-CONFIG_I: Configured from console by consolerun Building configuration... !--- Output suppressed. ! interface Port-channel1 switchport mode trunk no ip address flowcontrol send off fcs-threshold 0 ! !--- Output suppressed. interface FastEthernet0/9 switchport mode trunk no ip address channel-group 1 mode active ! interface FastEthernet0/10 switchport mode trunk no ip address channel-group 1 mode active ! !--- Output suppressed. end CAT2955# |
Catalyst L2 Switch voor vaste configuratie |
---|
5-2950# configure terminal Enter configuration commands, one per line. End with CNTL/Z. 5-2950(config)# interface fastethernet0/1 5-2950(config-if)# channel-group 1 mode desirable Creating a port-channel interface Port-channel1 !--- The software dynamically creates the port channel interface. 5-2950(config-if)# *Mar 16 13:50:56.185: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down *Mar 16 13:50:57.013: %EC-5-BUNDLE: Interface Fa0/1 joined port-channel Po1 *Mar 16 13:50:58.053: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up *Mar 16 13:50:59.021: %LINK-3-UPDOWN: Interface Port-channel1, changed state to up *Mar 16 13:51:00.021: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed state to up 5-2950(config-if)# 5-2950(config)# interface fastethernet0/2 5-2950(config-if)# channel-group 1 mode desirable 5-2950(config-if)# 5-2950(config-if)# interface port-channel 1 !--- Configuration of the port channel interface to be a trunk !--- pulls in Fast Ethernet 0/1 and 0/2. 5-2950(config-if)# switchport mode trunk *Mar 14 15:31:13.428: %DTP-5-TRUNKPORTON: Port Fa0/1 has become dot1q trunk *Mar 14 15:31:14.880: %EC-5-BUNDLE: Interface Fa0/1 joined port-channel Po1 *Mar 14 15:31:14.908: %EC-5-UNBUNDLE: Interface Fa0/2 left the port-channel Po1 *Mar 14 15:31:14.944: %EC-5-BUNDLE: Interface Fa0/2 joined port-channel Po1 *Mar 14 15:31:15.908: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up 5-2950# show run Building configuration... Current configuration : 1608 bytes ! version 12.1 no service pad service timestamps debug uptime service timestamps log datetime msec localtime no service password-encryption ! hostname 5-2950 ! ! clock timezone PST -8 ip subnet-zero no ip finger no ip domain-lookup cluster enable SWITCH 0 ! ! ! interface Port-channel 1 !--- This is the port channel interface where you configure trunking that !--- the members of the channel group inherit. switchport mode trunk ! interface FastEthernet0/1 switchport mode trunk channel-group 1 mode desirable !--- Here, the channel group corresponds with interface port-channel 1. ! interface FastEthernet0/2 switchport mode trunk channel-group 1 mode desirable !--- Here, the channel group corresponds with interface port-channel 1. ! interface FastEthernet0/3 ! interface FastEthernet0/4 ! interface FastEthernet0/5 ! interface FastEthernet0/6 ! interface FastEthernet0/7 ! |
Catalyst 4000 Switch |
---|
Console> (enable) set port channel 2/19-20 mode desirable Port(s) 2/19-20 channel mode set to desirable. Console> (enable) 2003 Jan 08 11:40:14 %PAGP-5-PORTFROMSTP:Port 2/19 left bridge port 2/19 2003 Jan 08 11:40:14 %PAGP-5-PORTFROMSTP:Port 2/20 left bridge port 2/20 2003 Jan 08 11:40:18 %PAGP-5-PORTTOSTP:Port 2/19 joined bridge port 2/19 2003 Jan 08 11:40:18 %PAGP-5-PORTTOSTP:Port 2/20 joined bridge port 2/20 Console> (enable) set trunk 2/19 desirable !--- The set of the trunk on the first port of the channel !--- dynamically trunks all channel ports. Port(s) 2/19-20 trunk mode set to desirable. ! Console> (enable) !--- The dot1q trunk adopts the port VLAN assignment (VLAN 1 by default) !--- as the native VLAN. If this switch were a Catalyst 5500/5000 or 6500/6000 switch !--- (which also supports ISL trunking), you would specify dot1q encapsulation here. !--- The Catalyst 2950 only supports dot1q. |
Deze sectie bevat informatie die u kunt gebruiken om te controleren of uw configuratie correct werkt.
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. De show commando's op de L2 vaste configuratie switch platformen zijn hetzelfde, maar het uitvoerformaat kan variëren.
CAT2955# 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 ------+-------------+-----------+----------------------------------------------- 1 Po1(SU) LACP Fa0/9(P) Fa0/10(Pd) CAT2955# CAT2955# show interfaces fastethernet 0/9 switchport Name: Fa0/9 Switchport: Enabled Administrative Mode: trunk Operational Mode: trunk (member of bundle Po1) Administrative Trunking Encapsulation: dot1q Operational Trunking Encapsulation: dot1q Negotiation of Trunking: On Access Mode VLAN: 1 (default) Trunking Native Mode VLAN: 1 (default) Administrative private-vlan host-association: none Administrative private-vlan mapping: none Operational private-vlan: none Trunking VLANs Enabled: ALL Pruning VLANs Enabled: 2-1001 Protected: false Voice VLAN: none (Inactive) Appliance trust: none
Cat4003 (enable) show lacp Channel Id Ports ----------- ----------------------------------------------- 417 2/1-2 Cat4003 (enable) show lacp-channel 417 Channel Ports Status Channel id Mode ------- ---------------------------------------------- ---------- -------------- 417 2/1-2 connected active Cat4003 (enable) Cat4003 (enable) show trunk * - indicates vtp domain mismatch # - indicates dot1q-all-tagged enabled on the port Port Mode Encapsulation Status Native vlan -------- ----------- ------------- ------------ ----------- 2/1 desirable dot1q trunking 1 2/2 desirable dot1q trunking 1 Port Vlans allowed on trunk -------- --------------------------------------------------------------------- 2/1 1-1005,1025-4094 2/2 1-1005,1025-4094 Port Vlans allowed and active in management domain -------- --------------------------------------------------------------------- 2/1 1,10 2/2 1,10 Port Vlans in spanning tree forwarding state and not pruned -------- --------------------------------------------------------------------- 2/1 1,10 2/2 1,10 Cat4003 (enable)
5-2950# show etherchannel 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 Po6(SU) Fa0/1(P) Fa0/2(P) 5-2950# show interface fastethernet0/1 switchport Name: Fa0/1 Switchport: Enabled Administrative Mode: trunk Operational Mode: trunk (member of bundle Po6) Administrative Trunking Encapsulation: dot1q Operational Trunking Encapsulation: dot1q Negotiation of Trunking: On Access Mode VLAN: 1 (default) Trunking Native Mode VLAN: 1 (default) !--- This line shows that the trunk link is up. Trunking VLANs Enabled: ALL !--- This line shows that all VLANs trunk. Pruning VLANs Enabled: 2-1001 Protected: false Voice VLAN: none (Inactive) Appliance trust: none
Console> show port channel Port Status Channel Admin Ch Mode Group Id ----- ---------- -------------------- ----- ----- 2/19 connected desirable silent 174 815 2/20 connected desirable silent 174 815 ----- ---------- -------------------- ----- ----- Port Device-ID Port-ID Platform ----- ------------------------------- ------------------------- ---------------- 2/19 5-2950 Fa0/1 cisco WS-C2950-24 2/20 5-2950 Fa0/2 cisco WS-C2950-24 ----- ------------------------------- ------------------------- ---------------- Console> (enable) show trunk * - indicates vtp domain mismatch Port Mode Encapsulation Status Native vlan -------- ----------- ------------- ------------ ----------- 2/19 desirable dot1q trunking 1 2/20 desirable dot1q trunking 1 Port Vlans allowed on trunk -------- --------------------------------------------------------------------- 2/19 1-1005 2/20 1-1005 Port Vlans allowed and active in management domain -------- --------------------------------------------------------------------- 2/19 1,100,300,350,450 2/20 1,100,300,350,450 Port Vlans in spanning tree forwarding state and not pruned -------- --------------------------------------------------------------------- 2/19 1,100,300,350,450 2/20 1,100,300,350,450 Console> (enable)
Er is momenteel geen specifieke troubleshooting-informatie beschikbaar voor deze configuratie.
Revisie | Publicatiedatum | Opmerkingen |
---|---|---|
1.0 |
06-May-2002
|
Eerste vrijgave |