You are on page 1of 24

Cisco − Creating Ethernet VLANs on Catalyst Switches

Table of Contents
Creating Ethernet VLANs on Catalyst Switches.............................................................................................1
Document ID: 10023................................................................................................................................1
Introduction..........................................................................................................................................................1
Prerequisites.........................................................................................................................................................1
Requirements..........................................................................................................................................1
Components Used...................................................................................................................................2
Related Products.....................................................................................................................................2
Conventions............................................................................................................................................3
Configuring the VLAN on Catalyst Switches Running CatOS...........................................................................3
Create VLANs and Ports........................................................................................................................3
Remove Ports or VLANs........................................................................................................................6
Troubleshooting Tips..............................................................................................................................7
Configuring the VLAN on Catalyst 2900 XL, 3500 XL, 2950, 2970, and 2940 Series Switches......................8
Create VLANS and Ports........................................................................................................................8
Remove Ports or VLANS.....................................................................................................................12
Configuring Multi−VLAN Port on Catalyst 2900 XL/3500 XL.......................................................................14
Configuring the VLAN on Catalyst 3550, 3750, 4000/4500, and 6000/6500 Switches Running Integrated
Cisco IOS Software (Native Mode)...................................................................................................................17
Create VLANs and Ports......................................................................................................................17
Remove VLANs....................................................................................................................................22
Troubleshooting Tips............................................................................................................................22
NetPro Discussion Forums − Featured Conversations......................................................................................22
Related Information...........................................................................................................................................23

i

Creating Ethernet VLANs on Catalyst Switches
Document ID: 10023

Introduction
Prerequisites
Requirements
Components Used
Related Products
Conventions
Configuring the VLAN on Catalyst Switches Running CatOS
Create VLANs and Ports
Remove Ports or VLANs
Troubleshooting Tips
Configuring the VLAN on Catalyst 2900 XL, 3500 XL, 2950, 2970, and 2940 Series
Switches
Create VLANS and Ports
Remove Ports or VLANS
Configuring Multi−VLAN Port on Catalyst 2900 XL/3500 XL
Configuring the VLAN on Catalyst 3550, 3750, 4000/4500, and 6000/6500 Switches
Running Integrated Cisco IOS Software (Native Mode)
Create VLANs and Ports
Remove VLANs
Troubleshooting Tips
NetPro Discussion Forums − Featured Conversations
Related Information

Introduction
This document provides basic information on how to create VLANs on Catalyst switches running Catalyst OS
(CatOS) and Integrated Cisco IOS® Software (Native Mode). The sample commands for each section use one
Catalyst switch from each configuration section.

Prerequisites
Requirements
Readers of this document should have knowledge of the information in this section.

VLANs are a mechanism to allow network administrators to create logical broadcast domains that can span
across a single switch or multiple switches, regardless of physical proximity. This is useful to reduce the size
of broadcast domains or to allow groups or users to be logically grouped without the need to be physically
located in the same place.

To create VLANs, you must decide how to configure these items:

• What VLAN Trunk Protocol (VTP) domain name and VTP mode will be used on this switch?
• What ports on the switch will belong to which VLAN?
• Will you need to have communication between VLANs, or will they be isolated? If you require
communication between VLANs, you will need to use a Layer 3 (L3) routing device, such as an

Cisco − Creating Ethernet VLANs on Catalyst Switches

external Cisco router or an internal router module: ♦ WS−X4232−L3 card for Catalyst 4000 with Supervisor Engine I (SUPI) and SUPII ♦ Route Switch Module (RSM) or Route Switch Feature Card (RSFC) for Catalyst 5000 ♦ Multilayer Switch Module (MSM) or Multilayer Switch Feature Card (MSFC) for Catalyst 6000 Some of the switches have built−in support in software and hardware to do InterVLAN routing (no external device. RSFC. either through the console or through Telnet access. RSM. refer to these documents: • Configuring InterVLAN Routing with Catalyst 3750/3560/3550 Series Switches • Configuring InterVLAN Routing on the MSFC • Configuring InterVLAN Routing on the RSM • Configuring InterVLAN Routing on the RSFC • Configuring InterVLAN Routing on an External Cisco Router • Configuring InterVLAN Routing Using an Internal Router (Layer 3 Card) on Catalyst 5500/5000 and 6500/6000 Switches That Run CatOS System Software • Configuring InterVLAN Routing and ISL/802. or external router.0(5. or daughter cards are required): ♦ Catalyst 3550/3750/6500 with SUP720 ♦ Catalyst 4000/4500 with SUPII+.5(x) software • Catalyst 3524XL switch running Cisco IOS Software Release 12. and SUPIV For details on InterVLAN routing configuration on an MSFC.1Q Trunking on a Catalyst 2900 XL/3500 XL/2950 Switch Using An External Router Note: This document assumes that you have basic connectivity to the switch.1(13)EW1 The information in this document was created from the devices in a specific lab environment. refer to these documents: • Catalyst 6000 family switchesBasic Software Configuration • XL series switchesQuick Start Guide Components Used The information in this document is based on these hardware and software versions: • Catalyst 6009 switch running Catalyst OS 5.x)XU • Catalyst 4507 switch with SUPIV (WS−X4515) running Cisco IOS Software Release 12. make sure that you understand the potential impact of any command. Related Products The information in this document can also be used with the these switches: • Catalyst 4000/4500/2948G/2980G/4912G switches • Catalyst 5000/2926G family switches • Catalyst 6000/6500 family switches • Catalyst 2900 XL/3500 XL/2950/3550/3750 switches Cisco − Creating Ethernet VLANs on Catalyst Switches . All of the devices used in this document started with a cleared (default) configuration. For details on how to get basic connectivity to the switches. SUPIII. modules. If your network is live.

If the switch is a VTP server. Cisco − Creating Ethernet VLANs on Catalyst Switches . refer to Understanding and Configuring VLAN Trunk Protocol (VTP). Configuring the VLAN on Catalyst Switches Running CatOS Create VLANs and Ports Follow these steps: 1. This is the default VTP configuration on the switch: CatosSwitch> (enable) show vtp domain Domain Name Domain Index VTP Version Local Mode Password −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− −−−−−−−−−−−− −−−−−−−−−−− −−−−−−−−−−− −−−−−−−−−− 1 2 server − Vlan−count Max−vlan−storage Config Revision Notifications −−−−−−−−−− −−−−−−−−−−−−−−−− −−−−−−−−−−−−−−− −−−−−−−−−−−−− 5 1023 0 disabled Last Updater V2 Mode Pruning PruneEligible on Vlans −−−−−−−−−−−−−−− −−−−−−−− −−−−−−−− −−−−−−−−−−−−−−−−−−−−−−−−− 0. you must define a VTP domain name before you can add any VLANs.0. refer to the Cisco Technical Tips Conventions.0. regardless of the number of switches in the network (one or many) and regardless of whether you will use VTP to propagate VLANs to other switches in the network. the switch must be in VTP server mode or VTP transparent mode. to set the domain name and mode. This must be defined. Before you can create a VLAN. CatosSwitch> (enable) set vtp domain ? <name> Domain name CatosSwitch> (enable) set vtp domain cisco ? mode Set VTP mode passwd Set VTP password pruning Set VTP pruning v2 Set VTP version 2 CatosSwitch> (enable) set vtp domain cisco mode ? client VTP client mode server VTP server mode transparent VTP transparent mode CatosSwitch> (enable) set vtp domain cisco mode server VTP domain cisco modified Note: For details on VTP.Conventions For more information on document conventions.0 disabled disabled 2−1000 Issue the set vtp command.

to create VLANs. Issue the show vlan command. CatosSwitch> (enable) show vtp domain Domain Name Domain Index VTP Version Local Mode Password −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− −−−−−−−−−−−− −−−−−−−−−−− −−−−−−−−−−− −−−−−−−−−− cisco 1 2 server − Vlan−count Max−vlan−storage Config Revision Notifications −−−−−−−−−− −−−−−−−−−−−−−−−− −−−−−−−−−−−−−−− −−−−−−−−−−−−− 5 1023 1 disabled Last Updater V2 Mode Pruning PruneEligible on Vlans −−−−−−−−−−−−−−− −−−−−−−− −−−−−−−− −−−−−−−−−−−−−−−−−−−−−−−−− 0. CatosSwitch> (enable) show vlan VLAN Name Status IfIndex Mod/Ports. you can use Output Interpreter ( registered customers only) to display potential issues and fixes. Once the VTP domain has been set and verified. VLAN 1 can not be renamed or deleted. Issue the set vlan command. By default. you can begin to create VLANs on the switch.0 disabled disabled 2−1000 Note: If you have the output of a show vtp domain command from your Cisco device. to display the parameters for all configured VLANs in the administrative domain.0. CatosSwitch> (enable) set vlan Cisco − Creating Ethernet VLANs on Catalyst Switches . Vlans −−−− −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− −−−−−−−−− −−−−−−− −−−−−−−−−−−−−−−−−−−−−−−− 1 default active 5 1/1−2 3/1−48 4/1−16 1002 fddi−default active 6 1003 token−ring−default active 9 1004 fddinet−default active 7 1005 trnet−default active 8 VLAN Type SAID MTU Parent RingNo BrdgNo Stp BrdgMode Trans1 Trans2 −−−− −−−−− −−−−−−−−−− −−−−− −−−−−− −−−−−− −−−−−− −−−− −−−−−−−− −−−−−− −−−−−− 1 enet 100001 1500 − − − − − 0 0 1002 fddi 101002 1500 − − − − − 0 0 1003 trcrf 101003 1500 − − − − − 0 0 1004 fdnet 101004 1500 − − − − − 0 0 1005 trbrf 101005 1500 − − − ibm − 0 0 VLAN DynCreated RSPAN −−−− −−−−−−−−−− −−−−−−−− 1 static disabled 1002 static disabled 1003 static disabled 1004 static disabled 1005 static disabled VLAN AREHops STEHops Backup CRF 1q VLAN −−−− −−−−−−− −−−−−−− −−−−−−−−−− −−−−−−− 1003 7 7 off a. there is only a single VLAN for all ports. and this VLAN is called default. Issue the show vtp domain command.0. to verify VTP configuration. 3. 2.

18190 pvlan−type = (primary. to verify the VLAN configuration.0xf.. state = (active. translation = 1.none) hex_ring_number = 0x1.4/1−12) set vlan <vlan_num> [name <name>] [type <type>] [state <state>] [pvlan−type <pvlan_type>] [said <said>] [mtu <mtu>] [ring <hex_ring_number>] [decring <decimal_ring_number>] [bridge <bridge_number>] [parent <vlan_num>] [mode <bridge_mode>] [stp <stp_type>] [translation <vlan_num>] [backupcrf <off|on>] [aremaxhop <hopcount>] [stemaxhop <hopcount>] [rspan] (name = 1. mtu = 576. IBM... c.. Vlans −−−− −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− −−−−−−−−− −−−−−−− −−−−−−−−−−−−−−−−−−−− 1 default active 5 1/1−2 3/1−48 4/1−16 2 cisco_vlan_2 active 75 1002 fddi−default active 6 1003 token−ring−default active 9 1004 fddinet−default active 7 1005 trnet−default active 8 VLAN Type SAID MTU Parent RingNo BrdgNo Stp BrdgMode Trans1 Trans2 −−−− −−−−− −−−−−−−−−− −−−−− −−−−−− −−−−−− −−−−−− −−−− −−−−−−−− −−−−−− −−−−−− 1 enet 100001 1500 − − − − − 0 0 2 enet 100002 1500 − − − − − 0 0 1002 fddi 101002 1500 − − − − − 0 0 1003 trcrf 101003 1500 − − − − − 0 0 1004 fdnet 101004 1500 − − − − − 0 0 1005 trbrf 101005 1500 − − − IBM − 0 0 !−−− Output suppressed.2/1−12..community.3/1−2.1q vlan to an Ethernet vlan CatosSwitch> (enable) set vlan 2 name cisco_vlan_2 Vlan 2 configuration successful b.. srb) stp = (ieee.1005 hopcount = 1.4294967294. mode = (srt. auto).32 characters. decimal_ring_number = 1.13) Set vlan commands: −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− set vlan Set vlan information set vlan mapping Map an 802.. VLAN 1 modified.4095 bridge_number = 0x1. Issue the show vlan command. trbrf) said = 1. If you want to add ports to the VLAN. trcrf.isolated. suspend) type = (ethernet. parent = 2. CatosSwitch> (enable) set vlan 2 3/1−12 VLAN 2 modified.. issue the set vlan vlan_number mod/ports command.1005. Usage: set vlan <vlan> <mod/port> (An example of mod/port is 1/1. VLAN Mod/Ports Cisco − Creating Ethernet VLANs on Catalyst Switches . fddinet. CatosSwitch> (enable) show vlan VLAN Name Status IfIndex Mod/Ports.0xfff.. fddi.

For example. This is essentially what happens when you assign a port to any VLAN. because they remain a part of that VLAN and it no longer exists. You can also create the VLAN and add the ports to that VLAN with all the information in a single command. CatosSwitch> (enable) clear vlan 3 This command will deactivate all ports on vlan 3 Cisco − Creating Ethernet VLANs on Catalyst Switches . issue this command: CatosSwitch> (enable) set vlan 3 3/13−15 Vlan 3 configuration successful VLAN 3 modified. VLAN 1 modified. To delete a VLAN. VLAN Mod/Ports −−−− −−−−−−−−−−−−−−−−−−−−−−− 3 3/13−15 15/1 4. Remove Ports or VLANs To remove ports from a VLAN. The switch displays a warning and gives you the opportunity to cancel the current request. −−−− −−−−−−−−−−−−−−−−−−−−−−− 2 3/1−12 15/1 d. CatosSwitch> (enable) show vlan VLAN Name Status IfIndex Mod/Ports. Issue the show vlan command. if you want to create the third VLAN and then assign ports 3/13 through 3/15 to that VLAN. Vlans −−−− −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− −−−−−−−−− −−−−−−− −−−−−−−−−−−−−−−−−−−−−−−− 1 default active 5 1/1−2 3/16−48 4/1−16 2 cisco_vlan_2 active 75 3/1−12 3 VLAN0003 active 76 3/13−15 1002 fddi−default active 6 1003 token−ring−default active 9 1004 fddinet−default active 7 1005 trnet−default active 8 VLAN Type SAID MTU Parent RingNo BrdgNo Stp BrdgMode Trans1 Trans2 −−−− −−−−− −−−−−−−−−− −−−−− −−−−−− −−−−−− −−−−−− −−−− −−−−−−−− −−−−−− −−−−−− 1 enet 100001 1500 − − − − − 0 0 2 enet 100002 1500 − − − − − 0 0 3 enet 100003 1500 − − − − − 0 0 1002 fddi 101002 1500 − − − − − 0 0 1003 trcrf 101003 1500 − − − − − 0 0 1004 fdnet 101004 1500 − − − − − 0 0 1005 trbrf 101005 1500 − − − IBM − 0 0 !−−− Output suppressed. to verify the VLAN configuration. issue the clear vlan command. because all ports initially belonged to VLAN 1. issue the set vlan vlan_number mod/ports command and place the ports in a different VLAN. The ports are deactivated.

Do you want to continue(y/n) [n]? y Vlan 3 deleted CatosSwitch> (enable) show vlan VLAN Name Status IfIndex Mod/Ports. Note: A switch is only allowed to create VLANs if it is in VTP server or VTP transparent modes. as they are deactivated by the removal of VLAN 3. create a VTP domain name on the switch. To correct this. you receive this error message: Cannot add/modify VLANs on a VTP server without a domain name. refer to Understanding and Configuring VLAN Trunk Protocol (VTP). You can either recreate that VLAN or correct the VTP configuration so that the VLAN is re−established in the VTP domain. Note: Ports 3/13 through 3/15 are not displayed in that show vlan command. • If you create a VLAN on a switch that is in VTP client mode. usually because of VTP. This is sample show port mod/port command output: CatosSwitch> (enable) show port 3/1 Port Name Status Vlan Duplex Speed Type −−−−− −−−−−−−−−−−−−−−−−− −−−−−−−−−− −−−−−−−−−− −−−−−− −−−−− −−−−−−−−−−−− Cisco − Creating Ethernet VLANs on Catalyst Switches . • Ports are in inactive state in show port mod/port command output. Troubleshooting Tips This section provides troubleshooting tips for common problems that you might encounter while you are creating VLANs on Catalyst switches running CatOS: • If you create a VLAN when there is no VTP domain name defined. For details on VTP. in the entire management domain. They will not be displayed until you add them back in another VLAN. Vlans −−−− −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− −−−−−−−−− −−−−−−− −−−−−−−−−−−−−−−−−−−−−−−− 1 default active 5 1/1−2 3/16−48 4/1−16 2 cisco_vlan_2 active 75 3/1−12 1002 fddi−default active 6 1003 token−ring−default active 9 1004 fddinet−default active 7 1005 trnet−default active 8 VLAN Type SAID MTU Parent RingNo BrdgNo Stp BrdgMode Trans1 Trans2 −−−− −−−−− −−−−−−−−−− −−−−− −−−−−− −−−−−− −−−−−− −−−− −−−−−−−− −−−−−− −−−−−− 1 enet 100001 1500 − − − − − 0 0 2 enet 100002 1500 − − − − − 0 0 1002 fddi 101002 1500 − − − − − 0 0 1003 trcrf 101003 1500 − − − − − 0 0 1004 fdnet 101004 1500 − − − − − 0 0 1005 trbrf 101005 1500 − − − IBM − 0 0 !−−− Output suppressed. as shown in the Create VLANs and Ports section. you receive this error message: Cannot add/modify VLANs on a VTP client. This means that the VLAN to which the ports originally belonged was deleted.

Vlans −−−− −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− −−−−−−−−− −−−−−−− −−−−−−−−−−−−−−−−−−−−−−−− Unable to access VTP Vlan 2 information. VLAN Type SAID MTU Parent RingNo BrdgNo Stp BrdgMode Trans1 Trans2 −−−− −−−−− −−−−−−−−−− −−−−− −−−−−− −−−−−− −−−−−− −−−− −−−−−−−− −−−−−− −−−−−− Unable to access VTP Vlan 2 information. 2950. and you can automatically communicate those changes to all of the other switches in the network. you must decide whether to use VTP in your network. 3/1 inactive 2 auto auto 10/100BaseTX Port AuxiliaryVlan AuxVlan−Status InlinePowered PowerAllocated Admin Oper Detected mWatt mA @42V −−−−− −−−−−−−−−−−−− −−−−−−−−−−−−−− −−−−− −−−−−− −−−−−−−− −−−−− −−−−−−−− 3/1 none none − − − − − !−−− Output suppressed. VLAN DynCreated RSPAN −−−− −−−−−−−−−− −−−−−−−− Unable to access VTP Vlan 2 information. With VTP. Before you create VLANs. 2970. on the switches mentioned in this section. Note: Issue the show vtp status command. VLAN AREHops STEHops Backup CRF 1q VLAN −−−− −−−−−−− −−−−−−− −−−−−−−−−− −−−−−−− Configuring the VLAN on Catalyst 2900 XL. Follow these steps: 1. CatosSwitch> (enable) show vlan 2 VLAN Name Status IfIndex Mod/Ports. For details on VTP. 3500 XL. and 2940 Series Switches Create VLANS and Ports Note: Depending on your model of switch. you can use Output Interpreter ( registered customers only) to display potential issues and fixes. you may see output different from some of commands that are displayed in this section. If you have the output of a show−tech support command from your Cisco device. you can make configuration changes centrally on a single switch. 3524XL# show vtp status VTP Version : 2 Configuration Revision : 0 Maximum VLANs supported locally : 254 Cisco − Creating Ethernet VLANs on Catalyst Switches . The default VTP mode is the server mode. refer to Understanding and Configuring VLAN Trunk Protocol (VTP). to check the VTP status on XL series switches.

!−−− You may skip this command. and this VLAN is called default. Fa0/6. Number of existing VLANs : 5 VTP Operating Mode : Server !−−− This is the default mode. Fa0/24. Fa0/5. Note: A switch is only allowed to create VLANs if it is in VTP server or VTP transparent modes. Fa0/16. VTP Domain Name : VTP Pruning Mode : Disabled VTP V2 Mode : Disabled VTP Traps Generation : Disabled MD5 digest : 0xBF 0x86 0x94 0x45 0xFC 0xDF 0xB5 0x70 Configuration last modified by 0. Fa0/9. 524XL(vlan)# vlan ? Cisco − Creating Ethernet VLANs on Catalyst Switches . Fa0/10. Fa0/22. Fa0/20. 3524XL# show vlan VLAN Name Status Ports −−−− −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− −−−−−−−−− −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− 1 default active Fa0/1. Fa0/4. For details on VTP. Fa0/17. Fa0/18. to check the VLAN information. Fa0/23. Fa0/14. Fa0/2. By default. VLAN 1 can not be renamed or deleted. Gi0/2 1002 fddi−default active 1003 token−ring−default active 1004 fddinet−default active 1005 trnet−default active VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 −−−− −−−−− −−−−−−−−−− −−−−− −−−−−− −−−−−− −−−−−−−− −−−− −−−−−−−− −−−−−− −−−−−− 1 enet 100001 1500 − − − − − 1002 1003 1002 fddi 101002 1500 − − − − − 1 1003 1003 tr 101003 1500 1005 0 − − srb 1 1002 1004 fdnet 101004 1500 − − 1 IBM − 0 0 1005 trnet 101005 1500 − − 1 IBM − 0 0 Issue this set of commands in privileged mode. you can begin to create VLANs on the switch. to configure any VLAN. Fa0/3. 3524XL(vlan)# vtp server Device mode already VTP SERVER. Fa0/15. refer to Understanding and Configuring VLAN Trunk Protocol (VTP). Fa0/8. Fa0/13.0. Fa0/12. if the switch is already in server mode and you !−−− want the switch to be in server mode. there is only a single VLAN for all ports. Fa0/7. to create another VLAN: 3524XL# vlan database !−−− You must enter into VLAN database. Once the VTP domain has been set and verified. Fa0/21. Fa0/19. Gi0/1. Fa0/11.0.0 at 0−0−00 00:00:00 2. Issue the show vlan command.

. Fa0/11. 3524XL# show vlan VLAN Name Status Ports −−−− −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− −−−−−−−−− −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− 1 default active Fa0/1. to ensure that the VLAN is created. Fa0/13. Fa0/21. Fa0/3. Fa0/20. Fa0/18. Fa0/22. 3524XL# 3. Fa0/12.10 SAID state Operational state of the VLAN ste Maximum number of Spanning Tree Explorer hops for this VLAN stp Spanning tree characteristics of the VLAN tb−vlan1 ID number of the first translational VLAN for this VLAN (or zero if none) tb−vlan2 ID number of the second translational VLAN for this VLAN (or zero if none) 3524XL(vlan)# vlan 2 name ? WORD The ASCII name for the VLAN 3524XL(vlan)# vlan 2 name cisco_vlan_2 VLAN 2 added: Name: cisco_vlan_2 3524XL(vlan)# exit !−−− You have to exit from the VLAN database. Fa0/6. Fa0/9. APPLY completed. Fa0/2. Fa0/5. Fa0/10. Fa0/24. for the changes to be committed. Fa0/23. Issue the show vlan command. Fa0/14. Gi0/1. Gi0/2 2 cisco_vlan_2 active 1002 fddi−default active 1003 token−ring−default active 1004 fddinet−default active 1005 trnet−default active VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 −−−− −−−−− −−−−−−−−−− −−−−− −−−−−− −−−−−− −−−−−−−− −−−− −−−−−−−− −−−−−− −−−−−− 1 enet 100001 1500 − − − − − 1002 1003 2 enet 100002 1500 − − − − − 0 0 1002 fddi 101002 1500 − − − − − 1 1003 1003 tr 101003 1500 1005 0 − − srb 1 1002 1004 fdnet 101004 1500 − − 1 IBM − 0 0 1005 trnet 101005 1500 − − 1 Cisco − Creating Ethernet VLANs on Catalyst Switches . Fa0/19. Fa0/15... Fa0/8. Fa0/17. Fa0/16. <1−1005> ISL VLAN index 3524XL(vlan)# vlan 2 ? are Maximum number of All Route Explorer hops for this VLAN backupcrf Backup CRF mode of the VLAN bridge Bridging characteristics of the VLAN media Media type of the VLAN mtu VLAN Maximum Transmission Unit name Ascii name of the VLAN parent ID number of the Parent VLAN of FDDI or Token Ring type VLANs ring Ring number of FDDI or Token Ring type VLANs said IEEE 802. Fa0/4. Fa0/7. Exiting.

. Fa0/16. Gi0/1. but they support only one active VLAN interface at a time. Fa0/22. to verify the VLAN configuration. 3524XL(config−if)# end 3524XL# 00:55:26: %SYS−5−CONFIG_I: Configured from console by console 3524XL# write memory !−−− Saves the configuration. Fa0/24. Fa0/4. Issue this set of commands in privileged mode. 5. Fa0/3 1002 fddi−default active 1003 token−ring−default active 1004 fddinet−default active 1005 trnet−default active Cisco − Creating Ethernet VLANs on Catalyst Switches . Fa0/21. You have to go to interface configuration mode for each of the interfaces that you want to add into the new VLAN. Fa0/7. this interfaces VLAN is controlled by VMPS 3524XL(config−if)# switchport access vlan 2 !−−− Those two commands assign interface Fa0/2 to VLAN 2. 3524XL(config)# interface fastEthernet 0/2 3524XL(config−if)# switchport access ? vlan Set VLAN when interface is in access mode 3524XL(config−if)# switchport access vlan ? <1−1001> VLAN ID of the VLAN when this port is in access mode dynamic When in access mode. to add a particular interface in the VLAN: 3524XL# configure terminal Enter configuration commands. Fa0/18. 3524XL(config−if)# exit 3524XL(config)# interface fastEthernet 0/3 3524XL(config−if)# switchport access vlan 2 !−−− Those two commands assign interface Fa0/3 to VLAN 2. Fa0/6.. 3524XL# show vlan VLAN Name Status Ports −−−− −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− −−−−−−−−− −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− 1 default active Fa0/1. Fa0/19. End with CNTL/Z. Fa0/8. Fa0/9. Fa0/13. Fa0/12. Note: The ports of Layer 2 XL series switches can be assigned to multiple VLANs. Fa0/15. Fa0/23. 4. Fa0/14. Fa0/20. Fa0/10. You may want to add ports (interfaces) in the newly created VLAN. Gi0/2 2 cisco_vlan_2 active Fa0/2. Fa0/17. Building configuration. Issue the show vlan command. Fa0/5. Fa0/11. one per line.

End with CNTL/Z. Fa0/7. Once the port is removed from a VLAN that is not VLAN 1 (the default VLAN). Fa0/17. VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 −−−− −−−−− −−−−−−−−−− −−−−− −−−−−− −−−−−− −−−−−−−− −−−− −−−−−−−− −−−−−− −−−−−− 1 enet 100001 1500 − − − − − 1002 1003 2 enet 100002 1500 − − − − − 0 0 1002 fddi 101002 1500 − − − − − 1 1003 1003 tr 101003 1500 1005 0 − − srb 1 1002 1004 fdnet 101004 1500 − − 1 IBM − 0 0 1005 trnet 101005 1500 − − 1 IBM − 0 0 Remove Ports or VLANS To remove ports from the VLAN. Gi0/2 2 cisco_vlan_2 active Fa0/3 1002 fddi−default active 1003 token−ring−default active 1004 fddinet−default active 1005 trnet−default active VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 −−−− −−−−− −−−−−−−−−− −−−−− −−−−−− −−−−−− −−−−−−−− −−−− −−−−−−−− −−−−−− −−−−−− 1 enet 100001 1500 − − − − − 1002 1003 2 enet 100002 1500 − − − − − 0 0 1002 fddi 101002 1500 − − − − − 1 1003 1003 tr 101003 1500 1005 0 − − srb 1 1002 1004 fdnet 101004 1500 − − 1 IBM − 0 0 1005 trnet 101005 1500 − − 1 IBM − 0 0 Cisco − Creating Ethernet VLANs on Catalyst Switches . that port is automatically added back to the default VLAN. !−−− Note that Fa0/2 is added back to the default VLAN. issue the no switchport access vlan vlan_number command in interface configuration mode. Fa0/24. Fa0/11. Fa0/2. Fa0/9. Fa0/8. Fa0/4. Fa0/21. For example. Fa0/19. Fa0/13. Fa0/12. Fa0/14. 3524XL(config−if)# end 3524XL# show vlan VLAN Name Status Ports −−−− −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− −−−−−−−−− −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− 1 default active Fa0/1. Fa0/20. Fa0/23. Fa0/10. Fa0/22. Fa0/18. Gi0/1. issue this set of commands in privileged mode: 3524XL# configure terminal Enter configuration commands. Fa0/15. one per line. Fa0/6. if you want to remove interface Fa0/2 from cisco_vlan_2 (VLAN 2). Fa0/5. Fa0/16. 3524XL(config)# interface fastEthernet 0/2 3524XL(config−if)# no switchport access vlan 2 !−−− Those two commands remove interface Fa0/2 from VLAN 2.

. Fa0/20. if you want to delete cisco_vlan_2 from the switch. Fa0/17. Fa0/9. 3524XL# show interfaces fastEthernet 0/3 FastEthernet0/3 is down. Fa0/16. Gi0/1. to make this interface usable. Fa0/12. Fa0/6. you have to add interface Fa0/3 to the default VLAN (VLAN 1). 3524XL(vlan)# exit APPLY completed. Interfaces that were in that VLAN will remain a part of that VLAN and be deactivated. as it is deactivated by the removal of VLAN 2. 3524XL# show vlan VLAN Name Status Ports −−−− −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− −−−−−−−−− −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− 1 default active Fa0/1. In the previous case. issue the no vlan vlan_number command in VLAN database mode. Notice that port Fa0/3 is not displayed in that show vlan command output. you can still use the interface without adding it to a VLAN. Fa0/7. Fa0/14. Fa0/5. refer Cisco − Creating Ethernet VLANs on Catalyst Switches . it will neither be displayed nor usable. To make the interface usable.. Fa0/22. Fa0/13.To delete the VLAN. Fa0/21. For further details on L3 interfaces on Catalyst 3550 Switches. Gi0/2 1002 fddi−default active 1003 token−ring−default active 1004 fddinet−default active 1005 trnet−default active !−−− Output suppressed. Fa0/2. Fa0/4. Fa0/11. because they no longer belong to any VLAN. 3524XL(vlan)# no vlan 2 !−−− Removes the VLAN from the database. Fa0/18. Fa0/24. Fa0/19. Fa0/8. Fa0/23.. Unless you add it back in another VLAN.. For example. Note: In the case of Catalyst 3550 switches. you must ensure that it belongs to some VLAN. issue this set of commands in privileged mode: 3524XL# vlan database !−−− Enters the VLAN database mode. If you have the output of a show−tech support command from your Cisco device. you can use Output Interpreter ( registered customers only) to display potential issues and fixes. Deleting VLAN 2. Fa0/10. Exiting.. if you make that interface an L3 interface. Fa0/15. line protocol is down !−−− Output suppressed.

3 Cisco − Creating Ethernet VLANs on Catalyst Switches .2. Fa0/10. and 2940 Series Switches section of this document. • The multi−VLAN port feature is supported only on Catalyst 2900 XL/3500 XL series switches. Fa0/7. 2950. one per line. Fa0/3. 1. 6−3512xl# configure terminal Enter configuration commands. 2970. refer to the Configuring the VLAN on Catalyst 2900 XL. To show how the multi−VLAN port is configured. Gi0/2 2 VLAN0002 active Fa0/2. 3500 XL. The switch automatically transitions to VTP transparent mode when the multi−VLAN port feature is enabled. Fa0/8. This feature allows users from different VLANs to access a server or router without the implementation of InterVLAN routing capability. 2. End with CNTL/Z. and one port of the switch is connected to an external router. Configure the Fa0/1 port in multi−VLAN mode. Fa0/6. Fa0/12. Note: These are the limitations to the implementation of multi−VLAN port features: • You can not configure a multi−VLAN port when a trunk is configured on the switch. 6−3512xl(config)# interface fa0/1 6−3512xl(config−if)# switchport mode multi !−−− Changes port Fa0/1 mode to multi. which makes the VTP disabled.to the Configuring Layer 3 Interfaces section of Configuring Interface Characteristics. three VLANs are created on a Catalyst 3512 XL switch. Configuring Multi−VLAN Port on Catalyst 2900 XL/3500 XL The multi−VLAN port feature on Catalyst 2900 XL/3500 XL switches allows you to configure a single port in two or more VLANs. 6−3512xl# show vlan VLAN Name Status Ports −−−− −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− −−−−−−−−− −−−−−−−−−−−−−−−−−−−−−−−−−−−−− 1 default active Fa0/1. port Fa0/1 is connected to an external router. You must connect the multi−VLAN port only to a router or server. and add assigned VLANs to the multi−VLAN port. VLAN traffic on the multi−VLAN port is not encapsulated as it is in trunking. For more information about how to create VLANs and assign ports to VLANs. 6−3512xl(config−if)# switchport multi vlan ? LINE VLAN IDs of VLANs to be used in multi−VLAN mode add add VLANs to the current list remove remove VLANs from the current list 6−3512xl(config−if)# switchport multi vlan 1. The port connected to the router will be configured as a multi−VLAN port. Fa0/9. Fa0/11. A multi−VLAN port performs normal switching functions in all of its assigned VLANs. No VTP configuration is required. This feature is not supported on Catalyst 4000/5000/6000 series or any other Cisco Catalyst switches. Gi0/1. Fa0/4 3 VLAN0003 active Fa0/5 4 VLAN0004 active 5 VLAN0005 active 6 VLAN0006 active In that example.

and 3 to multi−VLAN port Fa0/1.1.255. End with CNTL/Z. Gi0/1. 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: NONE Pruning VLANs Enabled: NONE Priority for untagged frames: 0 Override vlan tag priority: FALSE Voice VLAN: none Appliance trust: none 6−3512xl# show vlan brief VLAN Name Status Ports −−−− −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− −−−−−−−−− −−−−−−−−−−−−−−−−−−−−−−−−−−−− 1 default active Fa0/1. 6−3512xl(config−if)# ^Z 6−3512xl# 3. Fa0/9. to verify the configuration. Fa0/5 4 VLAN0004 active 5 VLAN0005 active 4. Fa0/4 !−−− Note: Previously.1 255. now it is assigned to !−−− multiple VLANs 1. Gi0/2 2 VLAN0002 active Fa0/1. Issue the show interface interface−id switchport and show vlan commands. port Fa0/1 was only in VLAN 1.168. Fa0/3. to verify the multi−VLAN operation. and 3.0 !−−− The management IP address is assigned to VLAN 1. Fa0/6. 2. 6−3512xl# show interface fa0/1 switchport Name: Fa0/1 Operational Mode: multi !−−− The port is in multi−VLAN mode. !−−− Assigns VLANs 1. 2.255. Issue the ping command from switch to router. The ping command should get a reply from the router every time the management IP address is assigned to any of the VLANs 1. 2. Fa0/2. Fa0/10. Fa0/1 Fa0/12. 6−3512xl(config)# interface vlan 1 6−3512xl(config−if)# ip address 192. one per line. 3 VLAN0003 active Fa0/1. 6−3512xl(config−if)# ^Z Cisco − Creating Ethernet VLANs on Catalyst Switches . 6−3512xl# configure terminal Enter configuration commands. Fa0/7. Fa0/8. or 3.

Type escape sequence to abort.1.1.168. timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5). Sending 5.1.255.168. round−trip min/avg/max = 1/202/1004 ms 6−3512xl# configure terminal Enter configuration commands.2.1. End with CNTL/Z.1 255. round−trip min/avg/max = 1/1/3 ms 6−3512xl# ping 192. 100−byte ICMP Echos to 192.1 Type escape sequence to abort. 100−byte ICMP Echos to 192.1.168. End with CNTL/Z. timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5). 100−byte ICMP Echos to 192. 6−3512xl(config−if)# shutdown 6−3512xl(config−if)# exit 6−3512xl(config)# interface vlan 2 6−3512xl(config−subif)# ip address 192. 100−byte ICMP Echos to 192.168. 6−3512xl(config)# interface vlan 1 6−3512xl(config−if)# no ip address !−−− The management IP address is removed from VLAN 1. timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5). Sending 5. Sending 5. 6−3512xl(config−subif)# exit 6−3512xl(config)# exit 6−3512xl# ping 192.168.2 !−−− You can ping the router from VLAN 1.1. Type escape sequence to abort.1.1. 6−3512xl# 23:56:54: %SYS−5−CONFIG_I: Configured from console by console 6−3512xl# ping 192. Sending 5.168.255. timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5).1. Cisco − Creating Ethernet VLANs on Catalyst Switches .0 6−3512xl(config−subif)# no shutdown !−−− The management IP address is assigned to VLAN 2. one per line. one per line.2 !−−− You can ping the router from VLAN 2.1.168.168.168.1 Type escape sequence to abort. round−trip min/avg/max = 1/1/3 ms 6−3512xl# configure terminal Enter configuration commands. round−trip min/avg/max = 1/2/3 ms 6−3512xl# ping 192.2.1.

timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5). but the configuration tasks also apply to other switches that run L3 (or Integrated Cisco Software IOS (Native Mode)). refer to the Software Configuration Guide for the switch platform under consideration.168.1 255. regardless of the number of switches in the network (one or many) and regardless of whether you will use VTP to propagate VLANs to other switches in the network. 6−3512xl(config−subif)# shutdown 6−3512xl(config−subif)# exit 6−3512xl(config)# interface vlan 3 6−3512xl(config−subif)# ip address 192.168.1.255. This must be defined. 3750. timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5).1.1.1.255. Sending 5.168. round−trip min/avg/max = 1/1/3 ms 6−3512xl# ping 192. 6−3512xl(config)# interface vlan 2 6−3512xl(config−subif)# no ip address !−−− The management IP address is removed from VLAN 2. If the switch is a VTP server. and 6000/6500 Switches Running Integrated Cisco IOS Software (Native Mode) Create VLANs and Ports This section uses the Catalyst 4500 for sample configuration commands. This includes the Catalyst 3550. round−trip min/avg/max = 1/205/1004 ms Configuring the VLAN on Catalyst 3550. For more information on configuring VTP on Catalyst 4000/4500 Cisco IOS−based Supervisor modules. VLANs numbered higher than Cisco − Creating Ethernet VLANs on Catalyst Switches . 3570.0 6−3512xl(config−subif)# no shut !−−− The management IP address is assigned to VLAN 3.2. refer to Understanding and Configuring VTP.1 Type escape sequence to abort. you must define a VTP domain name before you add any VLANs. and 6500 series switches that run Integrated Cisco IOS Software (Native Mode).1. 4000/4500.168. Type escape sequence to abort. 100−byte ICMP Echos to 192. the switch must be in VTP server mode or VTP transparent mode. 100−byte ICMP Echos to 192. Before you can create a VLAN. VLANs can be created in either VLAN database or global configuration mode. Sending 5. 6−3512xl(config−subif)# exit 6−3512xl(config)# exit 6−3512xl# ping 192.1.168.2 !−−− You can ping the router from VLAN 3. For VTP configuration information for other Catalyst switch platforms.

Gi3/9.10. Gi3/14 Gi3/15. Gi3/4. The show vtp status command shows the VTP information in the switch. Gi3/16. The default location of the VLAN . VLANs numbered higher than 1005 will not be advertised by VTP. Gi3/2 Gi3/3. Gi3/13. to check the VLAN information. Issue the show vlan command.dat file in Catalyst 4000 switches with SUPIV is the cat4000_flash directory. Gi3/5.1005 have to be created in global configuration mode. Switch# show vlan VLAN Name Status Ports −−−− −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− −−−−−−−−− −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− 1 default active Gi1/1. VLAN Name Status Ports −−−− −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− −−−−−−−−− −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− 1002 fddi−default act/unsup 1003 token−ring−default act/unsup 1004 fddinet−default act/unsup 1005 trnet−default act/unsup VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 −−−− −−−−− −−−−−−−−−− −−−−− −−−−−− −−−−−− −−−−−−−− −−−− −−−−−−−− −−−−−− −−−−−− 1 enet 100001 1500 − − − − − 0 0 1002 fddi 101002 1500 − − − − − 0 0 1003 tr 101003 1500 − − − − − 0 0 1004 fdnet 101004 1500 − − − ieee − 0 0 Cisco − Creating Ethernet VLANs on Catalyst Switches .10. Gi3/8. Gi3/6 Gi3/7. Switch# show vtp status VTP Version : 2 Configuration Revision : 0 Maximum VLANs supported locally : 1005 Number of existing VLANs : 8 VTP Operating Mode : Server VTP Domain Name : cisco VTP Pruning Mode : Enabled VTP V2 Mode : Disabled VTP Traps Generation : Disabled MD5 digest : 0xA4 0x18 0x78 0x52 0x5A 0x1B 0x2E 0x14 Configuration last modified by 0.0.dat file. Switch# dir cat4000_flash: Directory of cat4000_flash:/ 1 −rw− 676 <no date> vlan. Furthermore.0.dat 524260 bytes total (523584 bytes free) Note: A Catalyst 6500 switch running Integrated Cisco IOS Software (Native Mode) allows you to create VLANs in server mode without a VTP domain name.1 on interface Vl1 (lowest numbered VLAN interface) 1. Gi3/12. and the VTP mode needs to be set to transparent to create these VLANs. VLANs numbered higher than 1005 are stored in the switch configuration file and not in the VLAN . Gi3/1. Gi1/2. Gi3/10 Gi3/11. Gi3/17.0 at 5−28−01 05:17:02 Local updater ID is 10. Gi3/18 !−−− Output suppressed.

Note: You can either issue the apply command or exit out of VLAN database mode. Issue the vlan vlan_number command. Switch# vlan database Switch(vlan)# 3. Current configuration : 2975 bytes ! version 12.) Issue the exit command to exit out of VLAN database mode.. Switch(vlan)# vlan 2 VLAN 2 added: Name: VLAN0002 Switch(vlan)# apply APPLY completed. issue the vlan database command in privileged mode. VLAN configuration in global configuration mode is done in this manner: Switch(config)# vlan 3 Switch(config−vlan)# exit Switch(config)# 4. (The end keyword and Ctrl−Z exit methods do not work in VLAN database mode.1 no service pad service timestamps debug uptime service timestamps log uptime no service password−encryption service compress−config ! hostname Switch ! ! ip subnet−zero ! spanning−tree extend system−id ! redundancy mode rpr main−cpu auto−sync standard ! Cisco − Creating Ethernet VLANs on Catalyst Switches . to configure a VLAN. Switch# show running−config Building configuration.. 1005 trnet 101005 1500 − − − ibm − 0 0 Primary Secondary Type Ports −−−−−−− −−−−−−−−− −−−−−−−−−−−−−−−−− −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− 2. To enter VLAN database mode. VLANs in Integrated Cisco IOS Software (Native Mode) can be created in either VLAN database mode or global configuration mode. to view VLANs numbered higher than 1005 in the running configuration. Issue the show run command. for the configuration to take effect.

In order to associate the ports to VLANs in Integrated Cisco IOS Software (Native Mode). 3750. interfaces are in the shutdown state by default. ! vlan 2000 ! interface GigabitEthernet1/1 ! interface GigabitEthernet1/2 ! !−−− Output suppressed. unlike in CatOS−based switches. Integrated Cisco IOS Software (Native Mode) interfaces are Layer 2 (L2) interfaces on Catalyst 3550. and they are L3 interfaces on Catalyst 6000/6500 series switches. The command to assign an interface to a VLAN is switchport access vlan vlan_number . to check the L2 interface status. This command must be entered prior to the assignment of a VLAN. it can not be assigned to a VLAN. You can configure the interface as a L2 interface with the switchport command in interface configuration mode. and 4500 series switches. if the interface is in L3 mode. In Integrated Cisco IOS Software (Native Mode). Switch(config−if)# switchport access vlan 2 Switch(config−if)# no shutdown Issue the show interface gigabitEthernet module/interface switchport command. Note: If the interface is configured as a L3 interface (the no switchport command is configured). By default. the port becomes active if it senses the presence of a physical link. In CatOS. this minimum configuration is required: Switch(config)# interface gigabitEthernet 3/1 Switch(config−if)# switchport !−−− This command is required if the interface is in L3 mode. Switch# show interface gigabitEthernet 3/1 switchport Name: Gi3/1 Switchport: Enabled Administrative Mode: dynamic auto Operational Mode: static access Administrative Trunking Encapsulation: negotiate Operational Trunking Encapsulation: native Negotiation of Trunking: On Access Mode VLAN: 2 (VLAN0002) 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 Cisco − Creating Ethernet VLANs on Catalyst Switches .

2000. There is a way to change the Native VLAN on the interface that is trunking: the switchport trunk native vlan vlan_number command. VLAN 1 becomes the Native VLAN by default. but the neighboring switch has Native VLAN 1. Native VLAN is set to 1. Switch# show interfaces gigabitEthernet 3/1 trunk Port Mode Encapsulation Status Native vlan Gi3/1 on 802. Mismatch in Native VLANs can cause InterVLAN routing issues. Switch(config)# interface gigabitethernet 3/1 Switch(config−if)# switchport trunk native vlan 2 It can be verified with this command: Switch# show interfaces gigabitEthernet 3/1 trunk Port Mode Encapsulation Status Native vlan Gi3/1 on 802. Capture Mode Disabled Capture VLANs Allowed: ALL Voice VLAN: none (Inactive) Appliance trust: none If the port is setup as a trunk (a port that can carry more than one VLAN). If you do not explicitly define a Native VLAN. encapsulation.1q trunking 2 Port Vlans allowed on trunk Gi3/1 1−4094 Port Vlans allowed and active in management domain Gi3/1 1−4. and trunking VLAN information. with D−R3550−9B GigabitEthernet0/1 (1) In that example message. Ensure that the trunk ports on both of the connected devices have the same Native VLAN.2000. This message appears when the Native VLAN is mismatched on the two Cisco switches: %CDP−4−NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on GigabitEhernet1/1 (2). Issue the show interfaces module/interface trunk command to see the Native VLAN. Be aware that an 802.1q trunking 1 Port Vlans allowed on trunk Gi3/1 1−4094 Port Vlans allowed and active in management domain Gi3/1 1−4. among other things. the Native VLAN is 2 on one of the switches.3000 Port Vlans in spanning tree forwarding state and not pruned Gi3/1 none If you use the default configuration.3000 Port Vlans in spanning tree forwarding state and not pruned Gi3/1 none Cisco − Creating Ethernet VLANs on Catalyst Switches . then the switchport trunk native vlan command is useful if the Native VLAN of the interface has been changed or needs to be changed from its defaults.1Q header is not added when data is sent on the Native VLAN. The Native VLAN is the one that is used if the interface will become a L2 interface.

products.dat). Troubleshooting Tips This section provides troubleshooting tips for common problems that you might encounter while you are creating VLANs on Catalyst switches running Integrated Cisco IOS Software (Native Mode).. NetPro Discussion Forums − Featured Conversations for LAN Network Infrastructure: LAN Routing and Switching Network Infrastructure: Getting Started with LANs Cisco − Creating Ethernet VLANs on Catalyst Switches . You must also replace the VLAN database file (vlan. Copying the configuration from another switch does not copy the VLAN database. it does not automatically create a VLAN in the L2 database. when the configuration is applied to the switch.. When a Switch Virtual Interface (SVI) is created. The featured links are some of the most recent conversations available in this technology. Ensure that all previous VLANs that were created in VLAN database mode or global configuration mode still exist after the configuration is copied to the switch. suggestions. and information about networking solutions.Remove VLANs To remove a VLAN from the VLAN database. If the L2 VLAN has not been created on the switch then. Switch(vlan)# apply APPLY completed. or you must recreate the VLANs as shown in the previous procedure. NetPro Discussion Forums − Featured Conversations Networking Professionals Connection is a forum for networking professionals to share questions. The global configuration mode does not log any message on the console that the VLAN has been deleted. However. On switches running Integrated Cisco IOS Software (Native Mode). and technologies. the switch itself can be used for InterVLAN routing (instead of using an external router). a VLAN has to be created in VLAN database mode or (in later Cisco IOS software releases) in global configuration mode. issue the no vlan vlan_number command in either VLAN database or global configuration mode. At least one port should be a member of that VLAN and have an active device connected to it. you can issue the show vlan command to ensure that the VLAN has been deleted. This same issue applies when you are copying configurations from a different switch or restoring configurations with VLANs that were created in VLAN database mode. (This example uses the VLAN database mode to remove VLAN 2. SVI interfaces show as UP/DOWN in the show ip interface brief command.) Switch# vlan database Switch(vlan)# no vlan 2 Deleting VLAN 2. in order for the SVI to be fully active (administratively up and line protocol up). For an SVI to come up.

5.Related Information • Configuring InterVLAN Routing Using an Internal Router (Layer 3 Card) on Catalyst 5500/5000 and 6500/6000 Switches That Run CatOS System Software • Configuring InterVLAN Routing and ISL/802. 2005 Document ID: 10023 Cisco − Creating Ethernet VLANs on Catalyst Switches . All rights reserved.5 • Understanding and Configuring VLAN Trunk Protocol (VTP) • LAN Product Support Pages • LAN Switching Support Page • Technical Support & Documentation − Cisco Systems All contents are Copyright © 1992−2005 Cisco Systems. Updated: Sep 02. Important Notices and Privacy Statement.1Q Trunking on a Catalyst 2900XL/3500XL/2950 Switch Using an External Router • Cisco IOS Desktop Switching Command Reference • Index − Catalyst 6500 Series Command Reference. Inc.