hit counter script
Cisco Catalyst 2960 series Configuration Manual

Cisco Catalyst 2960 series Configuration Manual

Vlan
Hide thumbs Also See for Catalyst 2960 series:
Table of Contents

Advertisement

Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release
15.0(2)EX
First Published: July 10, 2013
Americas Headquarters
Cisco Systems, Inc.
170 West Tasman Drive
San Jose, CA 95134-1706
USA
http://www.cisco.com
Tel: 408 526-4000
800 553-NETS (6387)
Fax: 408 527-0883
Text Part Number: OL-29065

Advertisement

Table of Contents
loading

Summary of Contents for Cisco Catalyst 2960 series

  • Page 1 Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX First Published: July 10, 2013 Americas Headquarters Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 http://www.cisco.com Tel: 408 526-4000 800 553-NETS (6387) Fax: 408 527-0883 Text Part Number: OL-29065...
  • Page 2 Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com/go/trademarks . Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company.
  • Page 3: Table Of Contents

    Searching and Filtering Output of show and more Commands Accessing the CLI through a Console Connection or through Telnet Configuring VTP C H A P T E R 2 Finding Feature Information Prerequisites for VTP Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 4 Example: Configuring Switch as VTP Server Example: Enabling VTP on the Interface Example: Creating the VTP Password Where to Go Next Additional References Feature History and Information for VTP Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 5 Additional References Feature History and Information for VLAN Configuring VLAN Trunks C H A P T E R 4 Finding Feature Information Prerequisites for VLAN Trunks Information About VLAN Trunks Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 6 Prerequisites for VMPS Restrictions for VMPS Information About VMPS Dynamic VLAN Assignments Dynamic-Access Port VLAN Membership Default VMPS Client Configuration How to Configure VMPS Entering the IP Address of the VMPS Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 7 Configuration Examples Example: Configuring Cisco IP Phone Voice Traffic Example: Configuring the Priority of Incoming Data Frames Where to Go Next Additional References Feature History and Information for Voice VLAN Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 8 Contents Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX viii OL-29065...
  • Page 9: Preface

    An ellipsis (three consecutive nonbolded periods without spaces) after a syntax element indicates that the element can be repeated. A vertical line, called a pipe, indicates a choice within a set of keywords or arguments. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 10 Means the described action saves time. You can save time by performing the action described in the Timesaver paragraph. Warning Means reader be warned. In this situation, you might perform an action that could result in bodily injury. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 11: Related Documentation

    Obtaining Documentation and Submitting a Service Request For information on obtaining documentation, submitting a service request, and gathering additional information, see the monthly What's New in Cisco Product Documentation, which also lists all new and revised Cisco technical documentation, at: http://www.cisco.com/en/US/docs/general/whatsnew/whatsnew.html...
  • Page 12 Preface Obtaining Documentation and Submitting a Service Request Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 13: Using The Command-Line Interface

    How to Use the CLI to Configure Features, page 5 Information About Using the Command-Line Interface This section describes the Cisco IOS command-line interface (CLI) and how to use it to configure your switch. Command Modes The Cisco IOS user interface is divided into many different modes. The commands available to you depend on which mode you are currently in.
  • Page 14 (with a Ethernet ports. To return to specific interface). privileged EXEC mode, press Ctrl-Z or enter end. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 15: Using The Help System

    Obtains a list of commands that begin with a particular character string. Example: Switch# di? dir disable disconnect Step 3 abbreviated-command-entry <Tab> Completes a partial command name. Example: Switch# sh conf<tab> Switch# show configuration Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 16: Understanding Abbreviated Commands

    CLI Error Messages This table lists some error messages that you might encounter while using the CLI to configure your switch. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 17: Configuration Logging

    The software provides a history or record of commands that you have entered. The command history feature is particularly useful for recalling long or complex commands or entries, including access lists. You can customize this feature to suit your needs. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 18: Changing The Command History Buffer Size

    Returns to more recent commands in the history buffer after recalling commands with Ctrl-P or the up arrow key. Repeat the key sequence to recall successively more recent commands. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 19: Disabling The Command History Feature

    DETAILED STEPS Command or Action Purpose Step 1 terminal editing Reenables the enhanced editing mode for the current terminal session in the privileged EXEC mode. Example: Switch# terminal editing Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 20: Editing Commands Through Keystrokes

    Ctrl-U or Ctrl-X Deletes all characters from the cursor to the beginning of the command line. Ctrl-W Deletes the word to the left of the cursor. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 21: Editing Command Lines That Wrap

    Note The following example shows how to wrap a command line that extend beyond a single line on the screen. SUMMARY STEPS 1. access-list 2. Ctrl-A 3. Return key Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 22: Searching And Filtering Output Of Show And More Commands

    1. {show | more} command | {begin | include | exclude} regular-expression DETAILED STEPS Command or Action Purpose Step 1 {show | more} command | {begin | include | exclude} Searches and filters the output. regular-expression Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 23: Accessing The Cli Through A Console Connection Or Through Telnet

    After you connect through the console port, through the Ethernet management port, through a Telnet session or through an SSH session, the user EXEC prompt appears on the management station. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 24 Using the Command-Line Interface Accessing the CLI through a Console Connection or through Telnet Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 25: Configuring Vtp

    Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn. An account on Cisco.com is not required.
  • Page 26: Restrictions For Vtp

    VLAN is configured by the user, the new VLAN information is communicated to all switches in the stack. When a switch joins the stack or when stacks merge, the new switches get VTP information from the active switch. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 27: Vtp Domain

    Related Topics Adding a VTP Client Switch to a VTP Domain, on page 33 Prerequisites for VTP Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 28: Vtp Modes

    A switch in VTP off mode functions in the same manner as a VTP transparent switch, except that it does not forward VTP advertisements on trunks. Related Topics Prerequisites for VTP Configuring VTP Mode, on page 25 Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 29: Vtp Advertisements

    TLVs it is not able to parse. The unrecognized TLV is saved in NVRAM when the switch is operating in VTP server mode. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 30: Vtp Version 3

    VTP instances for that port are disabled. You cannot set VTP to off for the MST database and on for the VLAN database on the same port. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 31: Vtp Pruning

    Switches C, E, and F have no ports in the Red VLAN. Figure 1: Flooding Traffic without VTP Pruning Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 32: Vtp And Switch Stacks

    VTP. • When a switch joins the stack, it inherits the VTP and VLAN properties of the active switch. • All VTP updates are carried across the stack. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 33: Vtp Configuration Guidelines

    VTP mode and configuration for VLAN IDs 1 to 1005 use the VLAN database information. Related Topics Configuring VTP on a Per-Port Basis, on page 31 Configuring a VTP Version 3 Primary Server, on page 28 Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 34: Domain Names For Configuring Vtp

    Follow these guidelines when deciding which VTP version to implement: • All switches in a VTP domain must have the same domain name, but they do not need to run the same VTP version. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 35 2. If there is a version 1-only switch, it does not exchange VTP information with switches that have version 2 enabled. • Cisco recommends placing VTP version 1 and 2 switches at the edge of the network because they do not forward VTP version 3 advertisements.
  • Page 36: Default Vtp Configuration

    The mode is the same as the mode in VTP version 1 or 2 before conversion to version 3. VTP version Version 1 MST database mode Transparent VTP version 3 server type Secondary VTP password None VTP pruning Disabled Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 37: How To Configure Vtp

    5. end 6. show vtp status 7. copy running-config startup-config DETAILED STEPS Command or Action Purpose Step 1 configure terminal Enters the global configuration mode. Example: Switch# configure terminal Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 38 (Optional) Saves the configuration in the startup configuration file. Only VTP mode and domain name are saved in the switch running Example: configuration and can be copied to the startup configuration file. Switch# copy running-config startup-config Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 39: Configuring A Vtp Version 3 Password

    Returns to privileged EXEC mode. Example: Switch(config)# end Step 4 Verifies your entries. The output appears like this: show vtp password VTP password: 89914640C8D90868B6A0D8103847A733 Example: Switch# show vtp password Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 40: Configuring A Vtp Version 3 Primary Server

    • (Optional) force—Overwrites the configuration of any conflicting servers. If you do not enter force, you are prompted for confirmation before the takeover. Related Topics VTP Settings, on page 21 Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 41: Enabling The Vtp Version

    Switch# configure terminal Step 2 vtp version {1 | 2 | 3} Enables the VTP version on the switch. The default is VTP version 1. Example: Switch(config)# vtp version 2 Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 42: Enabling Vtp Pruning

    To configure VTP pruning on an interface, use the switchport trunk pruning vlan interface configuration command. VTP pruning operates when an interface is trunking. You can set VLAN pruning-eligibility, whether Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 43: Configuring Vtp On A Per-Port Basis

    With VTP version 3, you can enable or disable VTP on a per-port basis. You can enable VTP only on ports that are in trunk mode. Incoming and outgoing VTP traffic are blocked, not forwarded. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 44 Verifies the change to the port. Example: Switch# show running-config interface gigabitethernet1/0/1 Step 6 show vtp status Verifies the configuration. Example: Switch# show vtp status Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 45: Adding A Vtp Client Switch To A Vtp Domain

    Example: If the number is greater than 0, follow these sub steps: Switch# show vtp status • Write down the domain name. • Write down the configuration revision number. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 46 Enters the original domain name on the switch Example: Switch(config)# vtp domain domain012 Step 8 Returns to privileged EXEC mode. The VLAN information on the switch is updated. Example: Switch(config)# end Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 47: Monitoring Vtp

    Displays the VTP password. The form of the password displayed depends on whether or not the hidden keyword was entered and if encryption is enabled on the switch. Displays the VTP switch configuration information. show vtp status Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 48: Configuration Examples For Vtp

    To enable VTP on the interface, use the vtp interface configuration command. To disable VTP on the interface, use the no vtp interface configuration command. Switch(config)# interface gigabitethernet 1/0/1 Switch(config-if)# vtp Switch(config-if)# end Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 49: Example: Creating The Vtp Password

    All supported MIBs for this release. To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL: http://www.cisco.com/go/mibs Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 50: Feature History And Information For Vtp

    Access to most tools on the Cisco Support website requires a Cisco.com user ID and password. Feature History and Information for VTP Release Modification Cisco IOS 15.0(2)EX This feature was introduced. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 51: Configuring Vlans

    Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn. An account on Cisco.com is not required.
  • Page 52: Restrictions For Vlans

    VLAN must be forwarded through a router or a switch supporting fallback bridging. In a switch stack, VLANs can be formed with ports across the stack. Because a VLAN is considered a separate Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 53: Supported Vlans

    VTP version 1 and version 2 support only normal-range VLANs (VLAN IDs 1 to 1005). In these versions, the switch must be in VTP transparent mode when you create VLAN IDs from 1006 to 4094. Cisco IOS Release 12.2(52)SE and later support VTP version 3. VTP version 3 supports the entire VLAN range (VLANs 1 to 4094).
  • Page 54: Vlan Port Membership Modes

    VTP pruning-eligible list to block exchanges VLAN configuration flooded traffic to VLANs on trunk messages with other switches over ports that are included in the list. trunk links. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 55: Vlan Configuration Files

    VLAN database matches that in the startup configuration file, the VLAN database is ignored (cleared), and the VTP and VLAN configurations in the startup configuration file are used. The VLAN database revision number remains unchanged in the VLAN database. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 56: Normal-Range Vlan Configuration Guidelines

    VTP over network ports or through the CLI), the VLAN information is communicated to all stack members. • When a switch joins a stack or when stacks merge, VTP information (the vlan.dat file) on the new switches will be consistent with the active switch. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 57: Extended-Range Vlan Configuration Guidelines

    Creating an Extended-Range VLAN, on page 52 Example: Creating an Extended-Range VLAN, on page 56 Default VLAN Configurations Default Ethernet VLAN Configuration The following table displays the default configuration for Ethernet VLANs. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 58: Default Vlan Configuration

    You can change only the MTU size and the remote SPAN configuration state on extended-range VLANs; all other characteristics must remain at the default state. Note The switch must be running the LAN Base image to support remote SPAN. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 59: How To Configure Vlans

    With VTP version 1 and 2, if the switch is in VTP transparent mode, you can assign VLAN IDs greater than 1006, but they are not added to the VLAN database. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 60 Step 5 (Optional) Configures the VLAN as the RSPAN VLAN for a remote-span remote SPAN session. Example: Switch(config-vlan)# remote-span Step 6 Returns to privileged EXEC mode. Example: Switch(config)# end Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 61: Deleting A Vlan

    Enters the global configuration mode. configure terminal Example: Switch# configure terminal Step 2 no vlan vlan-id Removes the VLAN by entering the VLAN ID. Example: Switch(config)# no vlan 4 Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 62: Assigning Static-Access Ports To A Vlan

    6. show running-config interface interface-id 7. show interfaces interface-id switchport DETAILED STEPS Command or Action Purpose Step 1 configure terminal Enters the global configuration mode. Example: Switch# configure terminal Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 63: How To Configure Extended-Range Vlans

    VLANs (in the range 1006 to 4094). VTP version supports extended-range VLANs in server or transparent move. Extended-range VLANs enable service providers to extend their infrastructure to Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 64: Creating An Extended-Range Vlan

    Switch# configure terminal Step 2 vtp mode transparent Configures the switch for VTP transparent mode, disabling VTP. Note This step is not required for VTP version Example: Switch(config)# vtp mode transparent Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 65 This step is not required for VTP version 3 because VLANs Note are saved in the VLAN database. Related Topics Extended-Range VLAN Configuration Guidelines, on page 45 Example: Creating an Extended-Range VLAN, on page 56 Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 66: Monitoring Vlans

    • ifindex—Displays SNMP ifIndex. • mtu—Displays VLAN MTU information. • name—Display the VTP VLAN information by specified name. • remote-span–Displays the remote SPAN VLANs. • summary—Displays a summary of VLAN information. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 67: Configuration Examples

    This example shows how to create Ethernet VLAN 20, name it test20, and add it to the VLAN database: Switch# configure terminal Switch(config)# vlan 20 Switch(config-vlan)# name test20 Switch(config-vlan)# end Related Topics Creating or Modifying an Ethernet VLAN Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 68: Example: Configuring A Port As Access Port

    Where to Go Next After configuring VLANs, you can configure the following: • VLAN Trunking Protocol (VTP) • VLAN trunks • VLAN Membership Policy Server (VMPS) • Voice VLANs Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 69: Additional References

    Product Alert Tool (accessed from Field Notices), the Cisco Technical Services Newsletter, and Really Simple Syndication (RSS) Feeds. Access to most tools on the Cisco Support website requires a Cisco.com user ID and password. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 70: Feature History And Information For Vlan

    Configuring VLANs Feature History and Information for VLAN Feature History and Information for VLAN Release Modification Cisco IOS 15.0(2)EX This feature was introduced. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 71: Configuring Vlan Trunks

    VLAN allowed on the trunks. Non-Cisco devices might support one spanning-tree instance for all VLANs. When you connect a Cisco switch to a non-Cisco device through an IEEE 802.1Q trunk, the Cisco switch combines the spanning-tree instance of the VLAN of the trunk with the spanning-tree instance of the non-Cisco IEEE 802.1Q switch.
  • Page 72: Information About Vlan Trunks

    The interface becomes a nontrunk interface regardless of whether or not the neighboring interface is a trunk interface. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 73: Allowed Vlans On A Trunk

    VLAN 1 from the allowed list. When you remove VLAN 1 from a trunk port, the interface continues to send and receive management traffic, for example, Cisco Discovery Protocol (CDP), Port Aggregation Protocol (PAgP), Link Aggregation Control Protocol (LACP), DTP, and VTP in VLAN 1.
  • Page 74: Load Sharing On Trunk Ports

    VLANs. No duplication of traffic occurs over any trunk port. Related Topics Configuring Load Sharing Using STP Port Priorities, on page 71 Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 75: Network Load Sharing Using Stp Path Cost

    ◦ STP port priority for each VLAN. ◦ STP Port Fast setting. ◦ Trunk status: If one port in a port group ceases to be a trunk, all ports cease to be trunks. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 76: Default Layer 2 Ethernet Interface Vlan Configuration

    • To enable trunking to a device that does not support DTP, use the switchport mode trunk and switchport nonegotiate interface configuration commands to cause the interface to become a trunk but to not generate DTP frames. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 77: Configuring An Ethernet Interface As A Trunk Port

    • dynamic auto—Sets the interface to a trunk link if the neighboring interface is set to trunk or desirable mode. This Switch(config-if)# switchport mode dynamic desirable is the default. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 78 Displays the trunk configuration of the interface. Example: Switch# show interfaces gigabitethernet1/0/2 trunk Step 9 (Optional) Saves your entries in the configuration file. copy running-config startup-config Example: Switch# copy running-config startup-config Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 79: Defining The Allowed Vlans On A Trunk

    Defining the Allowed VLANs on a Trunk VLAN 1 is the default VLAN on all trunk ports in all Cisco switches, and it has previously been a requirement that VLAN 1 always be enabled on every trunk link. You can use the VLAN 1 minimization feature to disable VLAN 1 on any individual VLAN trunk link so that no user traffic (including spanning-tree advertisements) is sent or received on VLAN 1.
  • Page 80: Changing The Pruning-Eligible List

    2. interface interface-id 3. switchport trunk pruning vlan {add | except | none | remove} vlan-list [,vlan [,vlan [,,,]] 4. end 5. show interfaces interface-id switchport 6. copy running-config startup-config Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 81 Verifies your entries in the Pruning VLANs Enabled field of the display. Example: Switch# show interfaces gigabitethernet2/0/1 switchport Step 6 copy running-config startup-config (Optional) Saves your entries in the configuration file. Example: Switch# copy running-config startup-config Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 82: Configuring The Native Vlan For Untagged Traffic

    Example: For vlan-id, the range is 1 to 4094. Switch(config-if)# switchport trunk native vlan Step 4 Returns to privileged EXEC mode. Example: Switch(config-if)# end Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 83: Configuring Trunk Ports For Load Sharing

    These steps describe how to configure a network with load sharing using STP port priorities. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 84 Enters global configuration mode on Switch A. Example: Switch# configure terminal Step 2 vtp domain domain-name Configures a VTP administrative domain. The domain name can be 1 to 32 characters. Example: Switch(config)# vtp domain workdomain Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 85 Switch(config-if)# switchport mode trunk Step 10 Returns to privileged EXEC mode. Example: Switch(config-if)# end Step 11 show interfaces interface-id switchport Verifies the VLAN configuration. Example: Switch# show interfaces gigabitethernet1/0/1 Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 86 Assigns the port priority for the VLAN range specified. priority-value Enter a port priority value from 0 to 240. Port priority values increment by 16. Example: Switch(config-if)# spanning-tree vlan 3-6 port-priority 16 Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 87: Configuring Load Sharing Using Stp Path Cost

    Network Load Sharing Using STP Priorities, on page 62 Configuring Load Sharing Using STP Path Cost These steps describe how to configure a network with load sharing using STP path costs. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 88 Defines the interface to be configured as a trunk, and enters interface configuration mode. Example: Switch(config)# interface gigabitethernet1/0/1 Step 3 Configures the port as a trunk port. switchport mode trunk Example: Switch(config-if)# switchport mode trunk Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 89 Example: Switch(config)# interface gigabitethernet1/0/1 Step 11 spanning-tree vlan vlan-range cost cost-value Sets the spanning-tree path cost to 30 for VLANs 2 through 4. Example: Switch(config-if)# spanning-tree vlan 2-4 cost Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 90: Configuration Examples For Vlan Trunking

    IEEE 802.1Q trunking. Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface gigabitethernet1/0/2 Switch(config-if)# switchport mode dynamic desirable Switch(config-if)# end Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 91: Example: Removing A Vlan From A Port

    All supported MIBs for this release. To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL: http://www.cisco.com/go/mibs Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 92: Feature History And Information For Vlan Trunks

    Access to most tools on the Cisco Support website requires a Cisco.com user ID and password. Feature History and Information for VLAN Trunks Release Modification Cisco IOS 15.0(2)EX This feature was introduced. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 93: Configuring Vmps

    Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn. An account on Cisco.com is not required.
  • Page 94: Restrictions For Vmps

    In open mode, the server denies the host access to the port. If the port is currently unassigned (that is, it does not yet have a VLAN assignment), the VMPS provides one of these responses: Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 95: Dynamic-Access Port Vlan Membership

    20 MAC addresses are allowed per port on the switch. A dynamic-access port can belong to only one VLAN at a time, but the VLAN can change over time, depending on the MAC addresses seen. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 96: Default Vmps Client Configuration

    You must first enter the IP address of the server to configure the switch as a client. SUMMARY STEPS 1. configure terminal 2. vmps server ipaddress primary 3. vmps server ipaddress 4. end 5. show vmps 6. copy running-config startup-config Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 97: Configuring Dynamic-Access Ports On Vmps Clients

    Configuring Dynamic-Access Ports on VMPS Clients Dynamic-access port VLAN membership is for end stations or hubs connected to end stations. Connecting Caution dynamic-access ports to other switches can cause a loss of connectivity. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 98 Specifies the switch port that is connected to the end station, and enters interface configuration mode. Example: Switch(config)# interface gigabitethernet 1/0/1 Step 3 switchport mode access Sets the port to access mode. Example: Switch(config-if)# switchport mode access Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 99: Reconfirming Vlan Memberships

    Example: VMPS Configuration, on page 91 Reconfirming VLAN Memberships This task confirms the dynamic-access port VLAN membership assignments that the switch has received from the VMPS. SUMMARY STEPS 1. vmps reconfirm 2. show vmps Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 100: Changing The Reconfirmation Interval

    2. vmps reconfirm minutes 3. end 4. show vmps 5. copy running-config startup-config DETAILED STEPS Command or Action Purpose Step 1 configure terminal Enters the global configuration mode. Example: Switch# configure terminal Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 101: Changing The Retry Count

    Beginning in privileged EXEC mode, follow these steps to change the number of times that the switch attempts to contact the VMPS before querying the next server. SUMMARY STEPS 1. configure terminal 2. vmps retry count 3. end 4. show vmps 5. copy running-config startup-config Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 102: Troubleshooting Dynamic-Access Port Vlan Membership

    More than 20 active hosts reside on a dynamic-access port. Problem To reenable a disabled dynamic-access port, enter the shutdown interface configuration command Solution followed by the no shutdown interface configuration command. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 103: Monitoring The Vmps

    • End stations are connected to the clients, Switch B and Switch I. • The database configuration file is stored on the TFTP server with the IP address 172.20.22.7. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 104: Where To Go Next

    Configuring Dynamic-Access Ports on VMPS Clients, on page 85 Dynamic VLAN Assignments, on page 82 Dynamic-Access Port VLAN Membership, on page 83 Where to Go Next You can configure the following: • VTP Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 105: Additional References

    Product Alert Tool (accessed from Field Notices), the Cisco Technical Services Newsletter, and Really Simple Syndication (RSS) Feeds. Access to most tools on the Cisco Support website requires a Cisco.com user ID and password. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 106: Feature History And Information For Vmps

    Configuring VMPS Feature History and Information for VMPS Feature History and Information for VMPS Release Modification Cisco IOS 15.0(2)EX This feature was introduced. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 107: Configuring Voice Vlans

    Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn. An account on Cisco.com is not required.
  • Page 108: Restrictions For Voice Vlans

    If you use the auto-QoS feature, these settings are automatically configured. • You must enable CDP on the switch port connected to the Cisco IP Phone to send the configuration to the phone. (CDP is globally enabled by default on all switch interfaces.) Restrictions for Voice VLANs You cannot configure static secure MAC addresses in the voice VLAN.
  • Page 109: Cisco Ip Phone Voice Traffic

    The switch can also process tagged data traffic (traffic in IEEE 802.1Q or IEEE 802.1p frame types) from the device attached to the access port on the Cisco IP Phone. You can configure Layer 2 access ports on the switch to send CDP packets that instruct the attached phone to configure the phone access port in one of these modes: •...
  • Page 110: Voice Vlan Configuration Guidelines

    VLAN, the Port Fast feature is not automatically disabled. • If the Cisco IP Phone and a device attached to the phone are in the same VLAN, they must be in the same IP subnet. These conditions indicate that they are in the same VLAN: ◦...
  • Page 111: Default Voice Vlan Configuration

    Configuring Cisco IP Phone Voice Traffic You can configure a port connected to the Cisco IP Phone to send CDP packets to the phone to configure the way in which the phone sends voice traffic. The phone can carry voice traffic in IEEE 802.1Q frames for a specified voice VLAN with a Layer 2 CoS value.
  • Page 112 802.1p priority frames tagged with VLAN ID 0 (the native VLAN). By default, the switch drops all voice and data traffic tagged with VLAN 0. If configured for 802.1p the Cisco IP Phone forwards the traffic with an IEEE 802.1p priority of 5.
  • Page 113: Configuring The Priority Of Incoming Data Frames

    Configuring the Priority of Incoming Data Frames You can connect a PC or other data device to a Cisco IP Phone port. To process tagged data traffic (in IEEE 802.1Q or IEEE 802.1p frames), you can configure the switch to send CDP packets to instruct the phone how to send data packets from the device attached to the access port on the Cisco IP Phone.
  • Page 114 Switch(config)# interface gigabitethernet1/0/1 Step 3 switchport priority extend {cos value | trust} Sets the priority of data traffic received from the Cisco IP Phone access port: Example: • cos value—Configures the phone to override the priority received from the PC or the attached device with the...
  • Page 115: Monitoring Voice Vlan

    Example: Configuring Cisco IP Phone Voice Traffic This example shows how to configure a port connected to a Cisco IP Phone to use the CoS value to classify incoming traffic and to accept voice and data priority traffic tagged with VLAN ID 0: Switch# configure terminal Enter configuration commands, one per line.
  • Page 116: Where To Go Next

    All supported MIBs for this release. To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL: http://www.cisco.com/go/mibs Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 117: Feature History And Information For Voice Vlan

    Access to most tools on the Cisco Support website requires a Cisco.com user ID and password. Feature History and Information for Voice VLAN Release Modification Cisco IOS 15.0(2)EX This feature was introduced. Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 118 Configuring Voice VLANs Feature History and Information for Voice VLAN Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065...
  • Page 119 87, 88 troubleshooting MST mode types of connections dynamic VLAN assignments native VLAN Network Load Sharing 62, 63 entering server address STP path cost Ethernet VLAN STP priorities Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29065 IN-1...
  • Page 120 VTP modes VTP password VTP primary VTP pruning Token Rings VTP settings troubleshooting VTP version trunk 64, 67 VTP version 2 configuration VTP version 3 trunk port trunking Catalyst 2960-X Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX IN-2 OL-29065...

Table of Contents