Este documento proporciona configuraciones de ejemplo de ISL (InterSwitch Link Protocol) y trunking IEEE 802.1Q entre un switch Cisco Catalyst 5500 y Catalyst 3500XL. El documento visualiza los resultados de cada comando mientras se publica el comando. Puede utilizar cualquiera de estos switches en los escenarios de este documento para obtener los mismos resultados:
Catalyst 4500/4000 y 6500/6000 Series Switches que ejecutan Catalyst OS (CatOS)
Otros miembros de la serie Catalyst 5500/5000
Cualquiera de los switches de configuración fija de Capa 2 de Catalyst
Los switches de configuración fija Catalyst de capa 2 incluyen los modelos 2900/3500XL, 2940, 2950/2955 y 2970.
Antes de continuar con este documento, refiérase a Soporte de VLAN Trunking Protocols.
No hay requisitos específicos para este documento.
Para crear los ejemplos de este documento, estos switches se utilizaron en un entorno de laboratorio con configuraciones despejadas:
Switch Catalyst 3524XL que ejecuta Cisco IOS® Software Release 12.0(5)WC7
Switch Catalyst 5500 que ejecuta el software CatOS 6.4(2)
Las configuraciones de este documento fueron implementadas en un entorno aislado de laboratorio. Asegúrese de comprender el impacto potencial de cualquier configuración o comando en su red. Las configuraciones en todos los dispositivos se borraron con el comando clear config all en el switch Catalyst 5500 y el comando write erase en el switch Catalyst 3524XL para garantizar una configuración predeterminada.
For more information on document conventions, refer to the Cisco Technical Tips Conventions.
Trunking es una forma de llevar el tráfico de varias VLAN a través de un link punto a punto entre dos dispositivos. Dos de las formas en que puede implementar los enlaces troncales Ethernet son las siguientes:
ISL, un protocolo propiedad de Cisco
Estándar IEEE 802.1Q
Este documento crea un trunk que transporta el tráfico de dos VLAN a través de un solo link entre un Catalyst 3500 y un switch Catalyst 5500. La información sobre cómo rutear entre las dos VLAN está fuera del alcance de este documento.
Para switches Catalyst 2940/2950/2955/2970
Los switches Catalyst de las series 2940 y 2950/2955 soportan solamente el trunking 802.1Q. Estos switches no soportan ISL trunking.
Los switches Catalyst serie 2970 admiten ISL y enlaces troncales 802.1Q.
Para los switches de Catalyst 2900XL/3500XL
Los switches Catalyst 2900XL/3500XL no admiten el protocolo de enlace troncal dinámico (DTP). Utilice la opción nonegotiate para el comando switchport trunk en el otro lado del link troncal. El uso de la opción nonegotiate evita la recepción de tramas DTP del peer que el switch XL no puede procesar.
Nota: En un switch Catalyst 2900XL de 4 MB de DRAM, existe soporte de trunking sólo con estos módulos compatibles con trunking:
WS-X2914-XL-V
WS-X2922-XL-V
WS-X2924-XL-V
WS-C2924-XL
WS-X2932-XL
Consulte esta tabla para ver la lista actual de modelos de switch que admiten trunking:
Modelos de Switches | Versión mínima del software del IOS de Cisco necesaria para la conexión troncal ISL | Versión mínima del software del IOS de Cisco necesaria para el enlace troncal 802.1Q | Versión actual del software del IOS de Cisco necesaria para la conexión troncal (ISL/802.1Q ) |
---|---|---|---|
WS-C2916M-XL (switch de 4 MB) | Software Cisco IOS versión 11.2(8)SA4, Enterprise Edition | Software Cisco IOS versión 11.2(8)SA5, edición original | Software Cisco IOS versión 11.2(8.6)SA6, edición original |
WS-C2912-XL WS-C2924-XL WS-C2924C-XL WS-C2924M-XL WS-C2912MF-XL | Software Cisco IOS versión 11.2(8)SA4, Enterprise Edition | Software Cisco IOS versión 11.2(8)SA5, edición original | Software Cisco IOS versión 12.0(5)WC(1) o posterior |
WS-C2924M-XL-DC | Versión 12.0(5)XU del software del IOS de Cisco | Versión 12.0(5)XU del software del IOS de Cisco | Software Cisco IOS versión 12.0(5)WC(1) o posterior |
WS-C3508G-XL WS-C3512-XL WS-C3524-XL | Software Cisco IOS versión 11.2(8)SA4, Enterprise Edition | Software Cisco IOS versión 11.2(8)SA5, edición original | Software Cisco IOS versión 12.0(5)WC(1) o posterior |
WS-C3548-XL | Software Cisco IOS versión 12.0(5)XP, Enterprise Edition | Software Cisco IOS versión 12.0(5)XP, Enterprise Edition | Software Cisco IOS versión 12.0(5)WC(1) o posterior |
WS-C3524-PWR-XL WS-C3524-PWR-XL | Versión 12.0(5)XU del software del IOS de Cisco | Versión 12.0(5)XU del software del IOS de Cisco | Software Cisco IOS versión 12.0(5)WC(1) o posterior |
WS-C2940-8TF-S WS-C2940-8TT-S | Sin compatibilidad con ISL | Software Cisco IOS versión 12.1(13)AY | Cisco IOS Software Release 12.1(13)AY o posterior para 802.1Q Sin soporte para ISL |
WS-C2950-12 WS-C2950-24 WS-C2950C-24 WS-C2950T-24 WS-C2955T-12 WS-C2955C-12 WS-C2955S-12 | Sin compatibilidad con ISL | Software Cisco IOS versión 12.0(5)WC(1) | Cisco IOS Software Release 12.0(5)WC(1) o posterior para 802.1Q Sin soporte para ISL |
WS-C2970G-24T-E | Software Cisco IOS versión 12.1(11)AX | Software Cisco IOS versión 12.1(11)AX | Software Cisco IOS versión 12.1(11)AX o posterior |
Nota: En esta tabla, solo WS-C2916M-XL es un switch DRAM de 4 MB. Todos los demás switches de la lista son switches DRAM de 8 MB. Para determinar si su switch tiene 4 MB u 8 MB de DRAM, ejecute el comando user-level show version. Para obtener más información, consulte la sección Cómo Determinar la Cantidad de Memoria del Switch Usando la Interfaz de Línea de Comandos de Actualización de Software en Catalyst 2900XL y 3500XL Switches Usando la Interfaz de Línea de Comandos.
Para switches Catalyst 4500/4000, 5500/5000 y 6500/6000
El Catalyst serie 4500/4000, que incluye el Catalyst 2948G y el Catalyst 2980G, sólo admite enlaces troncales 802.1Q. La serie no admite el enlace troncal ISL.
Cualquier puerto Ethernet en un switch Catalyst 6500/6000 Series soporta la encapsulación 802.1Q o ISL.
Los puertos con capacidad troncal de Catalyst 5500/5000 admiten únicamente encapsulación ISL o ISL o 802.1Q. Este escenario de soporte depende del módulo. Ejecute el comando show port capabilities para determinar el soporte. El resultado del comando indica explícitamente la capacidad de conexión troncal. Aquí tiene un ejemplo:
cat5509 show port capabilities 3 Model WS-X5234 Port 3/1 Type 10/100BaseTX Speed auto,10,100 Duplex half,full Trunk encap type 802.1Q,ISL !--- This port supports both 802.1Q and ISL. Trunk mode on,off,desirable,auto,nonegotiate Channel 3/1-2,3/1-4 Broadcast suppression percentage(0-100) Flow control receive-(off,on),send-(off,on) Security yes Membership static,dynamic Fast start yes QOS scheduling rx-(none),tx-(1q4t) CoS rewrite yes ToS rewrite IP-Precedence Rewrite yes UDLD yes AuxiliaryVlan 1..1000,untagged,dot1p,none SPAN source,destination
Asegúrese de que los modos troncales coincidan con el link troncal. Si ha configurado un lado del link como troncal ISL, configure el otro lado del link como ISL. De manera similar, si ha configurado un lado del link como 802.1Q, configure el otro lado del link como 802.1Q.
En esta sección encontrará la información para configurar las funciones descritas en este documento.
Nota: Utilice la herramienta de búsqueda de comandos (solo para clientes registrados) para obtener más información sobre los comandos utilizados en este documento.
En este documento, se utiliza esta configuración de red:
Este documento utiliza estas configuraciones de switch:
Este documento aplica esta configuración a los switches:
Establezca los modos de VLAN Trunk Protocol (VTP) en los switches.
Agregue una segunda VLAN, VLAN 2, en los switches.
Nota: Usted agrega puertos en esas VLAN.
Habilite el trunking con el uso de ISL o 802.1Q en el link Fast Ethernet que interconecta los switches.
Esto permite que el trunk transporte el tráfico para todas las VLAN.
Habilite spanning tree PortFast en los puertos, donde las estaciones de trabajo tienen conexión.
Según la topología, se habilita el spanning tree PortFast en los puertos 3/2 y 3/3 en el Catalyst 5500 y en los puertos FastEthernet0/2 y FastEthernet0/3 en el switch Catalyst 3524XL.
Este procedimiento proporciona los comandos necesarios para configurar el trunking. Cada paso incluye el software Cisco IOS y los comandos CatOS. Base la elección del comando a utilizar en el software que se ejecuta en el switch.
Configure VTP en los dos switches.
En este ejemplo, usted configura el modo VTP como transparente. También puede configurar los switches como cliente o servidor. Para obtener más información, consulte Creación y Mantenimiento de VLANs.
Cisco IOS Software
IOSSwitch#vlan database 3524xl(vlan)#vtp transparent Setting device to VTP TRANSPARENT mode.
CatOS
CatOSSwitch> (enable) set vtp mode transparent VTP domain modified
Cree las VLAN adicionales.
Debe completar este paso en ambos switches si el modo VTP es transparente, como en el ejemplo. De lo contrario, sólo necesita definir las VLAN adicionales en el switch del servidor VTP.
Cisco IOS Software
IOSSwitch(vlan)#vlan 2 VLAN 2 added: Name: VLAN0002 IOSSwitch(vlan)#exit APPLY completed. Exiting....
CatOS
CatOSSwitch(enable) set vlan 2 VTP advertisements transmitting temporarily stopped, and will resume after the command finishes. Vlan 2 configuration successful
Asigne algunos puertos a las VLAN y, al mismo tiempo, habilite PortFast en esos puertos si es necesario.
Cisco IOS Software
IOSSwitch(config)#interface fastethernet 0/2 IOSSwitch(config-if)#switchport access vlan 2 IOSSwitch(config-if)#spanning-tree portfast %Warning: portfast enabled on FastEthernet0/2. !--- Usually, you need to enable PortFast on ports that connect !--- to a single host. When you have enabled PortFast, !--- hubs, concentrators, switches, and bridges that connect to this !--- interface can cause temporary spanning tree loops. !--- Use PortFast with CAUTION. IOSSwitch(config-if)#exit
CatOS
CatOSSwitch> (enable) set vlan 2 3/2 Vlan 2 configuration successful VLAN 2 modified. VLAN 1 modified. VLAN Mod/Ports ---- ----------------------- 2 3/2 CatOSSwitch> (enable) set spantree portfast 3/2 enable
Habilite el enlace troncal en el puerto.
Cisco IOS Software
IOSSwitch(config)#interface fastethernet 0/1 IOSSwitch(config-if)#switchport mode trunk
CatOS
Omita este paso para los switches CatOS. En el Paso 5, designe un puerto como trunk y, al mismo tiempo, defina la encapsulación.
Ingrese la encapsulación troncal como ISL o 802.1Q (dot1q).
Cisco IOS Software
IOSSwitch(config-if)#switchport trunk encapsulation isl OR IOSSwitch(config-if)#switchport trunk encapsulation dot1q
Nota: En el caso de los switches 2940/2950, no utilice estos comandos switchport. Los switches Catalyst 2940/2950 sólo admiten la encapsulación 802.1Q. Cuando habilita el trunking en la interfaz con el comando switchport mode trunk, configura automáticamente la encapsulación 802.1Q.
CatOS
CatOSSwitch> (enable) set trunk 3/1 nonegotiate isl Port(s) 3/1 trunk mode set to nonegotiate. Port(s) 3/1 trunk type set to Isl. !--- This switch connects to a 2900XL. !--- Therefore, you must use the nonegotiate option. CatOSSwitch> (enable)
O
!--- If you want to configure 802.1Q trunking instead, !--- issue this command: CatOSSwitch>(enable) set trunk 3/1 nonegotiate dot1q
Existen varias opciones para los modos de trunking, tales como: on, off, auto, desirable, auto y nonegotiate. Para obtener más información sobre cada uno, consulte la página de configuración de software CatOS correspondiente al producto de switch que esté configurando.
En el caso de 802.1Q, asegúrese de que la VLAN nativa coincida en el link. De forma predeterminada, la VLAN nativa es 1 o la VLAN que ha configurado en el puerto. Si su red requiere que la VLAN nativa sea distinta de VLAN 1, puede cambiar la VLAN nativa. Si cambia la VLAN nativa predeterminada, debe cambiar también la VLAN nativa del otro lado del link. Para cambiar la VLAN nativa, ejecute uno de estos comandos:
Cisco IOS Software
switchport trunk native vlan vlan-ID
CatOS
set vlan vlan-ID module/port
Nota: El módulo/puerto en este comando es el puerto trunk.
Nota: Este resultado muestra el problema de los comandos en el switch 3524XL. Los comentarios en cursiva azul explican ciertos comandos y pasos:
Catalyst 3524XL |
---|
3524xl#show running-config Building configuration... Current configuration: ! version 12.0 no service pad service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname 3524xl ! no logging console enable password mysecret ! ! ! ! ! ip subnet-zero ! ! ! interface fastethernet0/1 switchport mode trunk ! !--- If you have configured 802.1Q, !--- you instead see this output !--- under interface fastethernet0/1: !--- interface fastethernet0/1 !--- switchport trunk encapsulation dot1q !--- switchport mode trunk ! interface fastethernet0/2 switchport access vlan 2 spanning-tree portfast ! interface fastethernet0/3 spanning-tree portfast ! interface fastethernet0/4 ! !--- Output suppressed. ! interface VLAN1 ip address 10.10.10.2 255.255.255.0 no ip directed-broadcast no ip route-cache ! ! line con 0 transport input none stopbits 1 line vty 0 4 password mysecret login line vty 5 15 login ! end |
Nota: Este resultado muestra el problema de los comandos en el switch 5500. Los comentarios en cursiva azul explican ciertos comandos y pasos:
Catalyst 5500 |
---|
cat5509> (enable) show config This command shows non-default configurations only. Use 'show config all' to show both default and non-default configurations. ........ .................. .. begin ! # ***** NON-DEFAULT CONFIGURATION ***** ! ! ! set enablepass $2$FNl3$8MSzcpVMg1H2aWfll13aZ. ! #system set system name cat5509 ! #frame distribution method set port channel all distribution mac both ! #vtp set vtp mode transparent set vlan 1 name default type ethernet mtu 1500 said 100001 state active set vlan 2 set vlan 1002 name fddi-default type fddi mtu 1500 said 101002 state active set vlan 1004 name fddinet-default type fddinet mtu 1500 said 101004 state active stp ieee set vlan 1005 name trnet-default type trbrf mtu 1500 said 101005 state active stp ibm set vlan 1003 name token-ring-default type trcrf mtu 1500 said 101003 state active mode srb aremaxhop 7 stemaxhop 7 backupcrf off ! #ip set interface sc0 1 10.10.10.3/255.255.255.0 10.10.10.255 ! ! # default port status is enable ! ! #module 1 : 4-port 10/100BaseTX Supervisor ! #module 2 : 3-port 1000BaseX Ethernet ! #module 3 : 24-port 10/100BaseTX Ethernet set vlan 2 3/2 set trunk 3/1 nonegotiate isl 1-1005 !--- If you have configured 802.1Q trunk, !--- this line displays as: !--- set trunk 3/1 nonegotiate dot1q 1-1005 set spantree portfast 3/2-3 enable ! #module 4 empty ! #module 5 empty ! #module 6 : 24-port 10BaseF Ethernet ! #module 7 empty ! #module 8 : 24-port 10/100BaseTX Ethernet ! #module 9 empty end cat5509> (enable) |
Esta sección proporciona información que puede utilizar para confirmar que su configuración funciona correctamente.
La herramienta Output Interpreter (sólo para clientes registrados) permite utilizar algunos comandos “show” y ver un análisis del resultado de estos comandos.
En los switches Catalyst 2900XL/3500XL/2950:
show interfaces {fastethernet | gigabitethernet} module/port switchport
show vlan
show vtp status
En el switch Catalyst 5500/5000:
show port capabilities module/port
show port module/port
show trunk module/port
show vtp domain
show interfaces {fastethernet | gigabitethernet} module/port switchport
Utilice este comando para verificar el estado administrativo y operativo del puerto. Además, utilice este comando para asegurarse de que la VLAN nativa coincida en ambos lados del trunk. La VLAN nativa maneja el tráfico sin etiqueta cuando el puerto está en el modo de trunking 802.1Q. Consulte Creación y Mantenimiento de VLAN para obtener detalles sobre las VLAN nativas.
3524xl#show interfaces fastethernet 0/1 switchport Name: Fa0/1 Switchport: Enabled Administrative mode: trunk Operational Mode: trunk Administrative Trunking Encapsulation: isl Operational Trunking Encapsulation: isl Negotiation of Trunking: Disabled Access Mode VLAN: 0 ((Inactive)) Trunking Native Mode VLAN: 1 (default) Trunking VLANs Enabled: ALL Trunking VLANs Active: 1,2 Pruning VLANs Enabled: 2-1001 Priority for untagged frames: 0 Override vlan tag priority: FALSE Voice VLAN: none Appliance trust: none Self Loopback: No
Nota: Para 802.1Q trunking, la salida de show interfaces {fastethernet | gigabitethernet} module/port switchport cambia de esta manera:
3524xl#show interfaces fastethernet 0/1 switchport Name: Fa0/1 Switchport: Enabled Administrative mode: trunk Operational Mode: trunk Administrative Trunking Encapsulation: dot1q Operational Trunking Encapsulation: dot1q Negotiation of Trunking: Disabled Access Mode VLAN: 0 ((Inactive)) Trunking Native Mode VLAN: 1 (default) Trunking VLANs Enabled: ALL Trunking VLANs Active: 1,2 Pruning VLANs Enabled: 2-1001 Priority for untagged frames: 0 Override vlan tag priority: FALSE Voice VLAN: none Appliance trust: none Self Loopback: No
show vlan
Utilice este comando para verificar que las interfaces, o los puertos, pertenecen a la VLAN correcta. En este ejemplo, solamente la interfaz Fa0/2 pertenece a la VLAN 2. El resto de las interfaces son miembros de la VLAN 1:
3524xl#show vlan VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default active Fa0/3, Fa0/4, Fa0/5, Fa0/6, Fa0/7, Fa0/8, Fa0/9, Fa0/10, Fa0/11, Fa0/12, Fa0/13, Fa0/14, Fa0/15, Fa0/16, Fa0/17, Fa0/18, Fa0/19, Fa0/20, Fa0/21, Fa0/22, Fa0/23, Fa0/24, Gi0/1, Gi0/2 2 VLAN0002 active Fa0/2 1002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active !--- Output suppressed.
show vtp status
Utilice este comando para verificar la configuración VTP en el switch. En este ejemplo, el modo VTP es Transparente. El modo VTP correcto depende de la topología de su red. Para obtener detalles sobre VTP, consulte Creación y Mantenimiento de VLANs.
3524xl#show vtp status VTP Version : 2 Configuration Revision : 0 Maximum VLANs supported locally : 254 Number of existing VLANs : 6 VTP Operating Mode : Transparent VTP Domain Name : VTP Pruning Mode : Disabled VTP V2 Mode : Disabled VTP Traps Generation : Disabled MD5 digest : 0x74 0x79 0xD3 0x08 0xC0 0x82 0x68 0x63 Configuration last modified by 10.10.10.2 at 3-1-93 00:05:30
show port capabilities module/port
Utilice este comando para verificar si el puerto es capaz de trunking:
cat5509 show port capabilities 3/1 Model WS-X5234 Port 3/1 Type 10/100BaseTX Speed auto,10,100 Duplex half,full Trunk encap type 802.1Q,ISL Trunk mode on,off,desirable,auto,nonegotiate Channel 3/1-2,3/1-4 Broadcast suppression percentage(0-100) Flow control receive-(off,on),send-(off,on) Security yes Membership static,dynamic Fast start yes QOS scheduling rx-(none),TX(1q4t) COs rewrite yes ToS rewrite IP-Precedence Rewrite yes UDLD yes AuxiliaryVlan 1..1000,untagged,dot1p,none SPAN source,destination
show port module/port
cat5509> (enable) show port 3/1 Port Name Status Vlan Level Duplex Speed Type ----- ------------------ ---------- ---------- ------ ------ ----- ------------ 3/1 connected trunk normal a-full a-100 10/100BaseTX Port AuxiliaryVlan AuxVlan-Status ----- ------------- -------------- 3/1 none none Port Security Violation Shutdown-Time Age-Time Max-Addr Trap IfIndex ----- -------- --------- ------------- -------- -------- -------- ------- 3/1 disabled shutdown 0 0 1 disabled 12 Port Num-Addr Secure-Src-Addr Age-Left Last-Src-Addr Shutdown/Time-Left ----- -------- ----------------- -------- ----------------- ------------------ 3/1 0 - - - - - !--- Output suppressed.
show trunk module/port
Utilice este comando para verificar el estado y la configuración del enlace troncal.
cat5509> (enable) show trunk * - indicates vtp domain mismatch Port Mode Encapsulation Status Native vlan -------- ----------- ------------- ------------ ----------- 3/1 nonegotiate isl trunking 1 Port Vlans allowed on trunk -------- --------------------------------------------------------------------- 3/1 1-1005 Port Vlans allowed and active in management domain -------- --------------------------------------------------------------------- 3/1 1-2 Port Vlans in spanning tree forwarding state and not pruned -------- --------------------------------------------------------------------- 3/1 1-2
Nota: Para el trunking 802.1Q, el resultado de este comando cambia de esta manera:
cat5509> (enable) show trunk * - indicates vtp domain mismatch Port Mode Encapsulation Status Native vlan -------- ----------- ------------- ------------ ----------- 3/1 nonegotiate dot1q trunking 1 Port Vlans allowed on trunk -------- --------------------------------------------------------------------- 3/1 1-1005 Port Vlans allowed and active in management domain -------- --------------------------------------------------------------------- 3/1 1-2 Port Vlans in spanning tree forwarding state and not pruned -------- --------------------------------------------------------------------- 3/1 1-2
show vtp domain
cat5509> (enable) show vtp domain DomainName Domain Index VTP Version Local Mode Password -------------------------------- ------------ ----------- ----------- ---------- 1 2 Transparent - Vlan-count Max-vlan-storage Config Revision Notifications ---------- ---------------- --------------- ------------- 6 1023 0 disabled Last Updater V2 Mode Pruning PruneEligible on Vlans --------------- -------- -------- ------------------------- 10.10.10.3 disabled disabled 2-1000
Actualmente, no hay información específica de troubleshooting disponible para esta configuración.
Revisión | Fecha de publicación | Comentarios |
---|---|---|
1.0 |
14-Nov-2001
|
Versión inicial |