Table Of Contents
Configuring VLANs
Overview
Management VLANs
Changing the Management VLAN for a New Switch
Changing the Management VLAN Through a Telnet Connection
Assigning VLAN Port Membership Modes
VLAN Membership Combinations
Assigning Static-Access Ports to a VLAN
Overlapping VLANs and Multi-VLAN Ports
Using VTP
The VTP Domain
VTP Modes and Mode Transitions
VTP Advertisements
VTP Version 2
VTP Pruning
VTP Configuration Guidelines
Domain Names
VTP Version Numbers
Passwords
Upgrading from Previous Software Releases
VTP Version
Default VTP Configuration
Configuring VTP
Configuring VTP Server Mode
Configuring VTP Client Mode
Disabling VTP (VTP Transparent Mode)
Enabling VTP Version 2
Disabling VTP Version 2
Enabling VTP Pruning
Monitoring VTP
VLANs in the VTP Database
Token Ring VLANs
VLAN Configuration Guidelines
Default VLAN Configuration
Configuring VLANs in the VTP Database
Adding a VLAN
Modifying a VLAN
Deleting a VLAN from the Database
Assigning Static-Access Ports to a VLAN
How VLAN Trunks Work
IEEE 802.1Q Configuration Considerations
Trunks Interacting with Other Features
Configuring a Trunk Port
Disabling a Trunk Port
Defining the Allowed VLANs on a Trunk
Changing the Pruning-Eligible List
Configuring the Native VLAN for Untagged Traffic
Configuring 802.1p Class of Service
How Class of Service Works
Port Priority
Port Scheduling
Configuring the CoS Port Priorities
Load Sharing Using STP
Load Sharing Using STP Port Priorities
Configuring STP Port Priorities and Load Sharing
Load Sharing Using STP Path Cost
How the VMPS Works
Dynamic Port VLAN Membership
VMPS Database Configuration File
VMPS Configuration Guidelines
Default VMPS Configuration
Configuring Dynamic VLAN Membership
Configuring Dynamic Ports on VMPS Clients
Reconfirming VLAN Memberships
Changing the Reconfirmation Interval
Changing the Retry Count
Administering and Monitoring the VMPS
Troubleshooting Dynamic Port VLAN Membership
Dynamic Port VLAN Membership Configuration Example
Configuring VLANs
This chapter provides these topics about configuring virtual LANs (VLANs):
•
Overview
•
Management VLANs
•
Assigning VLAN Port Membership Modes
•
Assigning Static-Access Ports to a VLAN
•
Overlapping VLANs and Multi-VLAN Ports
•
Using VTP
•
VLANs in the VTP Database
•
How VLAN Trunks Work
•
Configuring 802.1p Class of Service
•
Load Sharing Using STP
•
How the VMPS Works
Note
Certain port features can conflict with one another. Review the "Avoiding Configuration Conflicts" section before you change the port settings.
For information about configuring these settings from Cluster Management Suite (CMS), refer to the online help.
This switch software release is based on Cisco IOS Release 12.0. It has been enhanced to support a set of features for the Catalyst 2900 XL and Catalyst 3500 XL switches. This chapter provides procedures for using only the commands that have been created or changed for these switches. The switch command reference provides complete descriptions of these commands. This guide does not provide Cisco IOS Release 12.0 commands and information already documented in the Cisco IOS Release 12.0 documentation on Cisco.com.
For information about configuring these settings from Cluster Management Suite (CMS), refer to the online help.
Overview
A virtual LAN (VLAN) is a switched network that is logically segmented by function, project team, or application, without regard to the physical locations of the users. Any switch port can belong to a VLAN, and unicast, broadcast, and multicast packets are forwarded and flooded only to stations in the VLAN. Each VLAN is considered a logical network, and packets destined for stations that do not belong to the VLAN must be forwarded through a router or bridge as shown in Figure 8-1. VLANs are identified with a number of 1 to 1001.
Because a VLAN is considered a separate logical network, it contains its own bridge Management Information Base (MIB) information and can support its own implementation of the Spanning Tree Protocol (STP). For information about managing VLAN STP instances, see the "Supported STP Instances" section.
Table 8-1 lists the number of supported VLANs and STP instances on the switches.
Table 8-1 Maximum Number of Supported VLANs
Switch
|
Maximum Number of VLANs
|
Maximum Number of STP Instances
|
Trunking Supported?
|
Catalyst 2912 XL, Catalyst 2924 XL, and Catalyst 2924C XL switches
|
64
|
64
|
Yes
|
Catalyst 2900 LRE XL switches
|
250
|
64
|
Yes
|
Catalyst 2912M and Catalyst 2924M modular switches
|
250
|
64
|
Yes
|
Catalyst 3500 XL switches
|
250
|
64
|
Yes
|
Figure 8-1 VLANs as Logically Defined Networks
The switches in Table 8-1 support both Inter-Switch Link (ISL) and IEEE 802.1Q trunking methods for sending VLAN traffic over 100BASE-T and Gigabit Ethernet ports.
The GigaStack GBIC also supports both trunking methods. When you are configuring a cascaded stack of Catalyst 3500 XL switches using the GigaStack GBIC and want to include more than one VLAN in the stack, be sure to configure all of the GigaStack GBIC interfaces as trunk ports by using the switchport mode trunk interface configuration command and to use the same encapsulation method by using the switchport encapsulation {isl | dot1q} interface configuration command. For more information on these commands, refer to the switch command reference.
Trunking is supported on all 8-MB switches running Release 12.0(5)XP and later. Trunking is not supported on some older software releases and on some older Catalyst 2900 XL switches and modules. For information about which older devices and software releases support trunking, refer to the release notes for Release 11.2(8)SA6 or earlier (http://www.cisco.com/univercd/cc/td/doc/product/lan/c2900xl/index.htm).
Management VLANs
Communication with the switch management interfaces is through the switch IP address. The IP address is associated with the management VLAN, which by default is VLAN 1.
The management VLAN has these characteristics:
•
It is created from CMS or through the CLI on static-access, multi-VLAN, and dynamic-access and trunk ports. You cannot create or remove the management VLAN through Simple Network Management Protocol (SNMP).
•
Only one management VLAN can be administratively active at a time.
•
With the exception of VLAN 1, the management VLAN can be deleted.
•
When created, the management VLAN is administratively down.
Before changing the management VLAN on your switch network, make sure you follow these guidelines:
•
The new management VLAN should not have an Hot Standby Router Protocol (HSRP) standby group configured on it.
•
You must be able to move your network management station to a switch port assigned to the same VLAN as the new management VLAN.
•
Connectivity through the network must exist from the network management station to all switches involved in the management VLAN change.
•
If your cluster includes members that are running a software release earlier than Release 12.0(5)XP, you cannot change the management VLAN of the cluster. If your cluster includes member switches that are running Release 12.0(5)XP, you need to change their management VLANs before you use the Management VLAN window.
•
Switches running Release 12.0(5)XP should be upgraded to the current software release as described in the release notes (http://www.cisco.com/univercd/cc/td/doc/product/lan/c2900xl/index.htm).
If you are using SNMP or CMS to manage the switch, ensure that the port through which you are connected to a switch is in the management VLAN.
For information about the roles management VLANs play in switch clusters, see the "Management VLAN" section.
Changing the Management VLAN for a New Switch
If you add a new switch to an existing cluster and the cluster is using a management VLAN other than the default VLAN 1, the command switch automatically senses that the new switch has a different management VLAN and has not been configured. The command switch issues commands to change the management VLAN on the new switch to match the one in use by the cluster. This automatic change of the VLAN only occurs for new, out-of-box switches that do not have a config.text file and for which there have been no changes to the running configuration.
Before a new switch can be added to a cluster, it must be connected to a port that belongs to the cluster management VLAN. If the cluster is configured with a management VLAN other than the default, the command switch changes the management VLAN for new switches when they are connected to the cluster. In this way, the new switch can exchange CDP messages with the command switch and be proposed as a cluster candidate.
Note
For the command switch to change the management VLAN on a new switch, there must have been no changes to the new switch configuration, and there must be no config.text file.
Because the switch is new and unconfigured, its management VLAN is changed to the cluster management VLAN when it is first added to the cluster. All ports that have an active link at the time of this change become members of the new management VLAN.
For information about the roles management VLANs play in switch clusters, see the "Management VLAN" section.
Changing the Management VLAN Through a Telnet Connection
Before you start, review the "Management VLANs" section. Beginning in privileged EXEC mode on the command switch, follow these steps to configure the management VLAN interface through a Telnet connection:
| |
Command
|
Purpose
|
Step 1
|
configure terminal
|
Enter global configuration mode.
|
Step 2
|
cluster management-vlan vlanid
|
Change the management VLAN for the cluster. This ends your Telnet session. Move the port through which you are connected to the switch to a port in the new management VLAN.
|
Step 3
|
show running-config
|
Verify the change.
|
Assigning VLAN Port Membership Modes
You configure a port to belong to a VLAN by assigning a membership mode that determines the kind of traffic the port carries and the number of VLANs it can belong to. Table 8-2 lists the membership modes and characteristics.
Table 8-2 Port Membership Modes
Membership Mode
|
VLAN Membership Characteristics
|
Static-access
|
A static-access port can belong to one VLAN and is manually assigned. By default, all ports are static-access ports assigned to VLAN 1.
|
Multi-VLAN
|
A multi-VLAN port can belong to up to 250 VLANs (some models only support 64 VLANs) and is manually assigned. You cannot configure a multi-VLAN port when a trunk is configured on the switch. VLAN traffic on the multi-VLAN port is not encapsulated.
|
Trunk (ISL, ATM, or IEEE 802.1Q)
|
A trunk is a member of all VLANs in the VLAN database by default, but membership can be limited by configuring the allowed-VLAN list. You can also modify the pruning-eligible list to block flooded traffic to VLANs on trunk ports that are included in the list.
VLAN Trunking Protocol (VTP) maintains VLAN configuration consistency by managing the addition, deletion, and renaming of VLANs on a network-wide basis. VTP exchanges VLAN configuration messages with other switches over trunk links.
Note By using the Asynchronous Transfer Mode (ATM) module CLI, you can map the LAN emulation (LANE) client to a VLAN or bind one or more permanent virtual connections (PVCs) to a VLAN. The VLAN ID is then displayed in the Assigned VLANs column of the VLAN Membership window. An ATM port can only be a trunk port. For more information, refer to the Catalyst 2900 Series XL ATM Modules Installation and Configuration Guide.
|
Dynamic access
|
A dynamic-access port can belong to one VLAN and is dynamically assigned by a VLAN Membership Policy Server (VMPS). The VMPS can be a Catalyst 5000 series switch but never a Catalyst 2900 XL or Catalyst 3500 XL switch.
|
When a port belongs to a VLAN, the switch learns and manages the addresses associated with the port on a per-VLAN basis. For more information, see the "Managing the MAC Address Tables" section.
VLAN Membership Combinations
You can configure your switch ports in various VLAN membership combinations as listed in Table 8-3.
Assigning Static-Access Ports to a VLAN
By default, all ports are static-access ports assigned to the management VLAN, VLAN 1.
You can assign a static-access port to a VLAN without having VTP globally propagate VLAN configuration information (VTP is disabled). Configuring the switch for VTP transparent mode disables VTP.
Beginning in privileged EXEC mode, follow these steps to assign ports for multi-VLAN membership:
| |
Command
|
Purpose
|
Step 1
|
configure terminal
|
Enter global configuration mode.
|
Step 2
|
interface interface
|
Enter interface configuration mode, and enter the port to be added to the VLAN.
|
Step 3
|
switchport mode multi
|
Enter the VLAN membership mode for multi-VLAN ports.
|
Step 4
|
switchport multi vlan vlan-list
|
Assign the port to more than one VLAN. Separate nonconsecutive VLAN IDs with a comma; use a hyphen to designate a range of IDs.
Configuring a switch port for multi-VLAN mode causes VTP to transition to transparent mode, which disables VTP.
|
Step 5
|
end
|
Return to privileged EXEC mode.
|
Step 6
|
show interface interface-id switchport
|
Verify your entries.
|
Overlapping VLANs and Multi-VLAN Ports
A multi-VLAN port connected to a router can link two or more VLANs. Intra-VLAN traffic stays within the boundaries of the respective VLANs as shown in Figure 8-2. Connectivity between VLANs is through the router connected to the multi-VLAN port.
A multi-VLAN port performs normal switching functions in all its assigned VLANs. For example, when a multi-VLAN port receives an unknown Media Access Control (MAC) address, all the VLANs to which the port belongs learn the address. Multi-VLAN ports also respond to the STP messages generated by the different instances of STP in each VLAN.
For the restrictions that apply to multi-VLAN ports, see the "Avoiding Configuration Conflicts" section.
Figure 8-2 Two VLANs Sharing a Port Connected to a Router
Caution 
To avoid unpredictable STP behavior and a loss of connectivity, do not connect multi-VLAN ports to hubs or switches. Connect multi-VLAN ports to routers or servers.
Beginning in privileged EXEC mode, follow these steps to assign ports for multi-VLAN membership:
| |
Command
|
Purpose
|
Step 1
|
configure terminal
|
Enter global configuration mode.
|
Step 2
|
interface interface
|
Enter interface configuration mode, and enter the port to be added to the VLAN.
|
Step 3
|
switchport mode multi
|
Enter the VLAN membership mode for multi-VLAN ports.
|
Step 4
|
switchport multi vlan vlan-list
|
Assign the port to more than one VLAN. Separate nonconsecutive VLAN IDs with a comma; use a hyphen to designate a range of IDs.
Configuring a switch port for multi-VLAN mode causes VTP to transition to transparent mode, which disables VTP.
|
Step 5
|
end
|
Return to privileged EXEC mode.
|
Step 6
|
show interface interface-id switchport
|
Verify your entries.
|
Using VTP
VTP is a Layer 2 messaging protocol that maintains VLAN configuration consistency by managing the addition, deletion, and renaming of VLANs on a network-wide basis. VTP minimizes misconfigurations and configuration inconsistencies that can cause several problems, such as duplicate VLAN names, incorrect VLAN-type specifications, and security violations.
Before you create VLANs, you must decide whether to use VTP in your network. Using VTP, you can make configuration changes centrally on a single switch, such as a Catalyst 2900 XL or Catalyst 3500 XL switch, and have those changes automatically communicated to all the other switches in the network. Without VTP, you cannot send information about VLANs to other switches.
The VTP Domain
A VTP domain (also called a VLAN management domain) consists of one switch or several interconnected switches under the same administrative responsibility. A switch can be in only one VTP domain. You make global VLAN configuration changes for the domain by using the CLI, Cluster Management software, or SNMP.
By default, a Catalyst 2900 XL or Catalyst 3500 XL switch is in the no-management-domain state until it receives an advertisement for a domain over a trunk link (a link that carries the traffic of multiple VLANs) or until you configure a domain name. The default VTP mode is server mode, but VLAN information is not propagated over the network until a domain name is specified or learned.
If the switch receives a VTP advertisement over a trunk link, it inherits the domain name and configuration revision number. The switch then ignores advertisements with a different domain name or an earlier configuration revision number.
When you make a change to the VLAN configuration on a VTP server, the change is propagated to all switches in the VTP domain. VTP advertisements are sent over all trunk connections, including Inter-Switch Link (ISL), IEEE 802.1Q, IEEE 802.10, and ATM LANE.
If you configure a switch for VTP transparent mode, you can create and modify VLANs, but the changes are not sent to other switches in the domain, and they affect only the individual switch.
For domain name and password configuration guidelines, see the "Domain Names" section.
VTP Modes and Mode Transitions
You can configure a supported switch to be in one of the VTP modes listed in Table 8-4.
Table 8-4 VTP Modes
VTP Mode
|
Description
|
VTP server
|
In this mode, you can create, modify, and delete VLANs and specify other configuration parameters (such as VTP version) for the entire VTP domain. VTP servers advertise their VLAN configurations to other switches in the same VTP domain and synchronize their VLAN configurations with other switches based on advertisements received over trunk links.
In VTP server mode, VLAN configurations are saved in nonvolatile RAM. VTP server is the default mode.
|
VTP client
|
In this mode, a VTP client behaves like a VTP server, but you cannot create, change, or delete VLANs on a VTP client.
In VTP client mode, VLAN configurations are saved in nonvolatile RAM.
|
VTP transparent
|
In this mode, VTP transparent switches do not participate in VTP. A VTP transparent switch does not advertise its VLAN configuration and does not synchronize its VLAN configuration based on received advertisements. However, transparent switches do forward VTP advertisements that they receive from other switches. You can create, modify, and delete VLANs on a switch in VTP transparent mode.
In VTP transparent mode, VLAN configurations are saved in nonvolatile RAM, but they are not advertised to other switches.
|
Two configurations can cause a switch to automatically change its VTP mode:
•
When the network is configured with more than the maximum 250 VLANs (some models support a maximum of 64 VLANs), the switch automatically changes from VTP server or client mode to VTP transparent mode. The switch then operates with the VLAN configuration that preceded the one that sent it into transparent mode.
•
When a multi-VLAN port is configured on a supported switch in VTP server mode or client mode, the switch automatically changes to transparent mode.
The "VTP Configuration Guidelines" section provides tips and caveats for configuring VTP.
VTP Advertisements
Each switch in the VTP domain sends periodic global configuration advertisements from each trunk port to a reserved multicast address. Neighboring switches receive these advertisements and update their VTP and VLAN configurations as necessary.
Note
Because trunk ports send and receive VTP advertisements, you must ensure that at least one trunk port is configured on the switch and that this trunk port is connected to the trunk port of a second switch. Otherwise, the switch cannot receive any VTP advertisements.
VTP advertisements distribute this global domain information in VTP advertisements:
•
VTP domain name
•
VTP configuration revision number
•
Update identity and update timestamp
•
MD5 digest
VTP advertisements distribute this VLAN information for each configured VLAN:
•
VLAN ID
•
VLAN name
•
VLAN type
•
VLAN state
•
Additional VLAN configuration information specific to the VLAN type
VTP Version 2
VTP version 2 supports these features not supported in version 1:
•
Token Ring support—VTP version 2 supports Token Ring LAN switching and VLANs (Token Ring Bridge Relay Function [TRBRF] and Token Ring Concentrator Relay Function [TRCRF]). For more information about Token Ring VLANs, see the "VLANs in the VTP Database" section.
•
Unrecognized Type-Length-Value (TLV) support—A VTP server or client propagates configuration changes to its other trunks, even for TLVs it is not able to parse. The unrecognized TLV is saved in nonvolatile RAM when the switch is operating in VTP server mode.
•
Version-Dependent Transparent Mode—In VTP version 1, a VTP transparent switch inspects VTP messages for the domain name and version and forwards a message only if the version and domain name match. Because only one domain is supported, VTP version 2 forwards VTP messages in transparent mode without checking the version and domain name.
•
Consistency Checks—In VTP version 2, VLAN consistency checks (such as VLAN names and values) are performed only when you enter new information through the CLI, the Cluster Management software, or SNMP. Consistency checks are not performed when new information is obtained from a VTP message or when information is read from nonvolatile RAM. If the digest on a received VTP message is correct, its information is accepted without consistency checks.
VTP Pruning
Pruning increases available bandwidth by restricting flooded traffic to those trunk links that the traffic must use to reach the destination devices. Without VTP pruning, a switch floods broadcast, multicast, and unknown unicast traffic across all trunk links within a VTP domain even though receiving switches might discard them.
VTP pruning blocks unneeded flooded traffic to VLANs on trunk ports that are included in the pruning-eligible list. Only VLANs included in the pruning-eligible list can be pruned. By default, VLANs 2 through 1001 are pruning eligible on Catalyst 2900 XL and Catalyst 3500 XL trunk ports. If the VLANs are configured as pruning-ineligible, the flooding continues. VTP pruning is also supported with VTP version 1 and version 2.
Figure 8-3 shows a switched network with VTP pruning enabled. The broadcast traffic from Switch 1 is not forwarded to Switches 3, 5, and 6 because traffic for the Red VLAN has been pruned on the links indicated (port 5 on Switch 2 and port 4 on Switch 4).
Figure 8-3 Optimized Flooded Traffic with VTP Pruning
VTP Configuration Guidelines
Domain Names
When configuring VTP for the first time, you must always assign a domain name. All switches in the VTP domain must also be configured with the same domain name. Switches in VTP transparent mode do not exchange VTP messages with other switches, and you do not need to configure a VTP domain name for them.
Caution 
Do not configure a VTP domain if all switches are operating in VTP client mode. If you configure the domain, it is impossible to make changes to the VLAN configuration of that domain. Therefore, make sure you configure at least one switch in the VTP domain for VTP server mode.
VTP Version Numbers
When you add a VTP client, follow this caution and procedure:
Caution 
Before adding a VTP client to a VTP domain, always verify that its VTP configuration revision number is lower than the configuration revision number of the other switches in the VTP domain. If necessary, reset the switch configuration revision number to 0. Switches in a VTP domain always use the VLAN configuration of the switch with the highest VTP configuration revision number. If you add a switch that has a revision number higher than the revision number in the VTP domain, it can erase all VLAN information from the VTP server and VTP domain.
Beginning in user EXEC mode, follow these steps to verify and reset the VTP configuration revision number on a switch before adding it to a VTP domain:
| |
Command
|
Purpose
|
Step 1
|
show vtp status
|
Check the VTP configuration revision number.
If the number is 0, add the switch to the VTP domain.
If the number is greater than 0, follow these steps:
a. Write down the domain name.
b. Write down the configuration revision number.
Continue with the next steps to reset the configuration revision number on the switch.
|
Step 2
|
enable
|
Enter privileged EXEC mode.
|
Step 3
|
vlan database
|
Enter VLAN database mode.
|
Step 4
|
vtp domain domain-name
|
Change the domain name from the original one displayed in Step 1 to a new name.
|
Step 5
|
exit
|
The VLAN information on the switch is updated, and the configuration revision number is reset to 0. You return to privileged EXEC mode.
|
Step 6
|
show vtp status
|
Verify that the configuration revision number has been reset to 0.
|
Step 7
|
vlan database
|
Enter VLAN database mode.
|
Step 8
|
vtp domain domain-name
|
Enter the original domain name on the switch.
|
Step 9
|
exit
|
Update the VLAN information on the switch and return to privileged EXEC mode.
|
Step 10
|
show vtp status
|
(Optional) Verify that the domain name is the same as in Step 1 and that the configuration revision number is 0.
|
After resetting the configuration revision number, add the switch to the VTP domain.
Note
You can use the vtp transparent vlan database command to disable VTP on the switch and then change its VLAN information without affecting the other switches in the VTP domain. For more information about using vtp transparent mode, refer to the switch software configuration guide.
Passwords
You can configure a password for the VTP domain, but it is not required. All domain switches must share the same password. Switches without a password or with the wrong password reject VTP advertisements.
Caution 
The domain does not function properly if you do not assign the same password to each switch in the domain.
If you configure a VTP password for a domain, a Catalyst 2900 XL or Catalyst 3500 XL switch that is booted without a VTP configuration does not accept VTP advertisements until you configure it with the correct password. After the configuration, the switch accepts the next VTP advertisement that uses the same password and domain name in the advertisement.
If you are adding a new switch to an existing network that has VTP capability, the new switch learns the domain name only after the applicable password has been configured on the switch.
Upgrading from Previous Software Releases
When you upgrade from a software version that does not support VTP (such as Release 11.2(8)SA3) to a software version that does, ports that belong to a VLAN retain their VLAN membership, and VTP enters transparent mode. The domain name becomes UPGRADE, and VTP does not propagate the VLAN configuration to other switches.
If you want the switch to propagate VLAN configuration information to other switches and to learn the VLANs enabled on the network, you must configure the switch with the correct domain name and the domain password and change the VTP mode to VTP server.
VTP Version
Follow these guidelines when deciding which VTP version to implement:
•
All switches in a VTP domain must run the same VTP version.
•
A VTP version 2-capable switch can operate in the same VTP domain as a switch running VTP version 1 if version 2 is disabled on the version 2-capable switch. Version 2 is disabled by default.
•
Do not enable VTP version 2 on a switch unless all of the switches in the same VTP domain are version-2-capable. When you enable version 2 on a switch, all of the version-2-capable switches in the domain enable version 2. If there is a version 1-only switch, it will not exchange VTP information with switches with version 2 enabled.
•
If there are Token Ring networks in your environment (TRBRF and TRCRF), you must enable VTP version 2 for Token Ring VLAN switching to function properly. To run Token Ring and Token Ring-Net, disable VTP version 2.
•
Enabling or disabling VTP pruning on a VTP server enables or disables VTP pruning for the entire VTP domain.
Default VTP Configuration
Table 8-5 shows the default VTP configuration.
Table 8-5 VTP Default Configuration
Feature
|
Default Value
|
VTP domain name
|
Null.
|
VTP mode
|
Server.
|
VTP version 2 enable state
|
Version 2 is disabled.
|
VTP password
|
None.
|
VTP pruning
|
Disabled.
|
Configuring VTP
You can configure VTP through the CLI by entering commands in the VLAN database command mode. When you enter the exit command in VLAN database mode, it applies all the commands that you entered. VTP messages are sent to other switches in the VTP domain, and you enter privileged EXEC mode.
If you are configuring VTP on a cluster member switch to a VLAN, first log in to the member switch by using the privileged EXEC rcommand command. For more information on how to use this command, refer to the switch command reference.
Note
The Cisco IOS end and Ctrl-Z commands are not supported in VLAN database mode.
After you configure VTP, you must configure a trunk port so that the switch can send and receive VTP advertisements. For more information, see the "How VLAN Trunks Work" section.
Configuring VTP Server Mode
When a switch is in VTP server mode, you can change the VLAN configuration and have it propagated throughout the network.
Beginning in privileged EXEC mode, follow these steps to configure the switch for VTP server mode:
| |
Command
|
Purpose
|
Step 1
|
vlan database
|
Enter VLAN database mode.
|
Step 2
|
vtp domain domain-name
|
Configure a VTP administrative-domain name.
The name can be from 1 to 32 characters.
All switches operating in VTP server or client mode under the same administrative responsibility must be configured with the same domain name.
|
Step 3
|
vtp password password-value
|
(Optional) Set a password for the VTP domain. The password can be from 8 to 64 characters.
If you configure a VTP password, the VTP domain does not function properly if you do not assign the same password to each switch in the domain.
|
Step 4
|
vtp server
|
Configure the switch for VTP server mode (the default).
|
Step 5
|
exit
|
Return to privileged EXEC mode.
|
Step 6
|
show vtp status
|
Verify the VTP configuration.
In the display, check the VTP Operating Mode and the VTP Domain Name fields.
|
Configuring VTP Client Mode
When a switch is in VTP client mode, you cannot change its VLAN configuration. The client switch receives VTP updates from a VTP server in the VTP domain and then modifies its configuration accordingly.
Caution 
Do not configure a VTP domain name if all switches are operating in VTP client mode. If you do so, it is impossible to make changes to the VLAN configuration of that domain. Therefore, make sure you configure at least one switch as the VTP server.
Beginning in privileged EXEC mode, follow these steps to configure the switch for VTP client mode:
| |
Command
|
Purpose
|
Step 1
|
vlan database
|
Enter VLAN database mode.
|
Step 2
|
vtp client
|
Configure the switch for VTP client mode. The default setting is VTP server.
|
Step 3
|
vtp domain domain-name
|
Configure a VTP administrative-domain name. The name can be from 1 to 32 characters.
All switches operating in VTP server or client mode under the same administrative responsibility must be configured with the same domain name.
|
Step 4
|
vtp password password-value
|
(Optional) Set a password for the VTP domain. The password can be from 8 to 64 characters.
If you configure a VTP password, the VTP domain does not function properly if you do not assign the same password to each switch in the domain.
|
Step 5
|
exit
|
Update the VLAN database, propagate it throughout the administrative domain, and return to privileged EXEC mode.
|
Step 6
|
show vtp status
|
Verify the VTP configuration. In the display, check the VTP Operating Mode field.
|
Disabling VTP (VTP Transparent Mode)
When you configure the switch for VTP transparent mode, you disable VTP on the switch. The switch then does not send VTP updates and does not act on VTP updates received from other switches. However, a VTP transparent switch does forward received VTP advertisements on all of its trunk links.
Beginning in privileged EXEC mode, follow these steps to configure the switch for VTP transparent mode:
| |
Command
|
Purpose
|
Step 1
|
vlan database
|
Enter VLAN database mode.
|
Step 2
|
vtp transparent
|
Configure the switch for VTP transparent mode.
The default setting is VTP server.
This step disables VTP on the switch.
|
Step 3
|
exit
|
Return to privileged EXEC mode.
|
Step 4
|
show vtp status
|
Verify the VTP configuration.
In the display, check the VTP Operating Mode field.
|
Enabling VTP Version 2
VTP version 2 is disabled by default on VTP version 2-capable switches. When you enable VTP version 2 on a switch, every VTP version 2-capable switch in the VTP domain enables version 2.
Caution 
VTP version 1 and VTP version 2 are not interoperable on switches in the same VTP domain. Every switch in the VTP domain must use the same VTP version. Do not enable VTP version 2 unless every switch in the VTP domain supports version 2.
Note
In a Token Ring environment, you must enable VTP version 2 for Token Ring VLAN switching to function properly.
For more information on VTP version configuration guidelines, see the "VTP Version" section.
Beginning in privileged EXEC mode, follow these steps to enable VTP version 2:
| |
Command
|
Purpose
|
Step 1
|
vlan database
|
Enter VLAN configuration mode.
|
Step 2
|
vtp v2-mode
|
Enable VTP version 2 on the switch.
VTP version 2 is disabled by default on VTP version 2-capable switches.
|
Step 3
|
exit
|
Update the VLAN database, propagate it throughout the administrative domain, and return to privileged EXEC mode.
|
Step 4
|
show vtp status
|
Verify that VTP version 2 is enabled.
In the display, check the VTP V2 Mode field.
|
Disabling VTP Version 2
Beginning in privileged EXEC mode, follow these steps to disable VTP version 2:
| |
Command
|
Purpose
|
Step 1
|
vlan database
|
Enter VLAN configuration mode.
|
Step 2
|
no vtp v2-mode
|
Disable VTP version 2.
|
Step 3
|
exit
|
Update the VLAN database, propagate it throughout the administrative domain, and return to privileged EXEC mode.
|
Step 4
|
show vtp status
|
Verify that VTP version 2 is disabled.
In the display, check the VTP V2 Mode field.
|
Enabling VTP Pruning
Pruning increases available bandwidth by restricting flooded traffic to those trunk links that the traffic must use to access the destination devices. You enable VTP pruning on a switch in VTP server mode.
Pruning is supported with VTP version 1 and version 2. If you enable pruning on the VTP server, it is enabled for the entire VTP domain.
Only VLANs included in the pruning-eligible list can be pruned. By default, VLANs 2 through 1001 are pruning eligible on Catalyst 2900 XL and Catalyst 3500 XL trunk ports. For information, see the "Changing the Pruning-Eligible List" section.
Beginning in privileged EXEC mode, follow these steps to enable VTP pruning:
| |
Command
|
Purpose
|
Step 1
|
vlan database
|
Enter VLAN configuration mode.
|
Step 2
|
vtp pruning
|
Enable pruning in the VTP administrative domain.
By default, pruning is disabled. You only need to enable pruning on one switch in VTP server mode.
|
Step 3
|
exit
|
Update the VLAN database, propagate it throughout the administrative domain, and return to privileged EXEC mode.
|
Step 4
|
show vtp status
|
Verify your entries.
In the display, check the VTP Pruning Mode field.
|
Monitoring VTP
You monitor VTP by displaying its configuration information: the domain name, the current VTP revision, and the number of VLANs. You can also display statistics about the advertisements sent and received by the switch.
Beginning in privileged EXEC mode, follow these steps to monitor VTP activity:
| |
Command
|
Purpose
|
Step 1
|
show vtp status
|
Display the VTP switch configuration information.
|
Step 2
|
show vtp counters
|
Display counters about VTP messages being sent and received.
|
VLANs in the VTP Database
You can set these parameters when you add a new VLAN to or modify an existing VLAN in the VTP database:
•
VLAN ID
•
VLAN name
•
VLAN type (Ethernet, Fiber Distributed Data Interface [FDDI], FDDI network entity title [NET], TRBRF or TRCRF, Token Ring, Token Ring-Net)
•
VLAN state (active or suspended)
•
Maximum transmission unit (MTU) for the VLAN
•
Security Association Identifier (SAID)
•
Bridge identification number for TRBRF VLANs
•
Ring number for FDDI and TRCRF VLANs
•
Parent VLAN number for TRCRF VLANs
•
STP type for TRCRF VLANs
•
VLAN number to use when translating from one VLAN type to another
The "Default VLAN Configuration" section lists the default values and possible ranges for each VLAN media type.
Token Ring VLANs
Although the Catalyst 2900 XL and Catalyst 3500 XL switches do not support Token Ring connections, a remote device such as a Catalyst 5000 series switch with Token Ring connections could be managed from one of the supported switches. Switches running this release advertise information about these Token Ring VLANs when running VTP version 2:
•
Token Ring TRBRF VLANs
•
Token Ring TRCRF VLANs
For more information on configuring Token Ring VLANs, refer to the Catalyst 5000 Series Software Configuration Guide.
VLAN Configuration Guidelines
Follow these guidelines when creating and modifying VLANs in your network:
•
A maximum of 250 VLANs can be active on supported switches, but some models only support 64 VLANs. If VTP reports that there are 254 active VLANs, 4 of the active VLANs (1002 to 1005) are reserved for Token Ring and FDDI.
•
Before you can create a VLAN, the switch must be in VTP server mode or VTP transparent mode. For information on configuring VTP, see the "Configuring VTP" section.
•
Switches running this release do not support Token Ring or FDDI media. The switch does not forward FDDI, FDDI-Net, TRCRF, or TRBRF traffic, but it does propagate the VLAN configuration through VTP.
Default VLAN Configuration
Table 8-6 through Table 8-10 shows the default configuration for the different VLAN media types.
Note
Catalyst 2900 XL and Catalyst 3500 XL switches support Ethernet interfaces exclusively. Because FDDI and Token Ring VLANs are not locally supported, you configure FDDI and Token Ring media-specific characteristics only for VTP global advertisements to other switches.
Table 8-6 Ethernet VLAN Defaults and Ranges
Parameter
|
Default
|
Range
|
VLAN ID
|
1
|
1-1005
|
VLAN name
|
VLANxxxx, where xxxx is the VLAN ID
|
No range
|
802.10 SAID
|
100000+VLAN ID
|
1-4294967294
|
MTU size
|
1500
|
1500-18190
|
Translational bridge 1
|
0
|
0-1005
|
Translational bridge 2
|
0
|
0-1005
|
VLAN state
|
active
|
active, suspend
|
Table 8-7 FDDI VLAN Defaults and Ranges
Parameter
|
Default
|
Range
|
VLAN ID
|
1002
|
1-1005
|
VLAN name
|
VLANxxxx, where xxxx is the VLAN ID
|
No range
|
802.10 SAID
|
100000+VLAN ID
|
1-4294967294
|
MTU size
|
1500
|
1500-18190
|
Ring number
|
None
|
1-4095
|
Parent VLAN
|
0
|
0-1005
|
Translational bridge 1
|
0
|
0-1005
|
Translational bridge 2
|
0
|
0-1005
|
VLAN state
|
active
|
active, suspend
|
Table 8-8 FDDI-Net VLAN Defaults and Ranges
Parameter
|
Default
|
Range
|
VLAN ID
|
1004
|
1-1005
|
VLAN name
|
VLANxxxx, where xxxx is the VLAN ID
|
No range
|
802.10 SAID
|
100000+VLAN ID
|
1-4294967294
|
MTU size
|
1500
|
1500-18190
|
Bridge number
|
0
|
0-15
|
STP type
|
ieee
|
auto, ibm, ieee
|
Translational bridge 1
|
0
|
0-1005
|
Translational bridge 2
|
0
|
0-1005
|
VLAN state
|
active
|
active, suspend
|
Table 8-9 Token Ring (TRBRF) VLAN Defaults and Ranges
Parameter
|
Default
|
Range
|
VLAN ID
|
1005
|
1-1005
|
VLAN name
|
VLANxxxx, where xxxx is the VLAN ID
|
No range
|
802.10 SAID
|
100000+VLAN ID
|
1-4294967294
|
MTU size
|
VTPv1 1500; VTPv2 4472
|
1500-18190
|
Bridge number
|
VTPv1 0; VTPv2 user-specified
|
0-15
|
STP type
|
ibm
|
auto, ibm, ieee
|
Translational bridge 1
|
0
|
0-1005
|
Translational bridge 2
|
0
|
0-1005
|
VLAN state
|
active
|
active, suspend
|
Table 8-10 Token Ring (TRCRF) VLAN Defaults and Ranges
Parameter
|
Default
|
Range
|
VLAN ID
|
1003
|
1-1005
|
VLAN name
|
VLANxxxx, where xxxx is the VLAN ID
|
No range
|
802.10 SAID
|
100000+VLAN ID
|
1-4294967294
|
Ring Number
|
VTPv1 default 0; VTPv2 user-specified
|
1-4095
|
Parent VLAN
|
VTPv1 default 0; VTPv2 user-specified
|
0-1005
|
MTU size
|
VTPv1 default 1500; VTPv2 default 4472
|
1500-18190
|
Translational bridge 1
|
0
|
0-1005
|
Translational bridge 2
|
0
|
0-1005
|
VLAN state
|
active
|
active, suspend
|
Bridge mode
|
srb
|
srb, srt
|
ARE max hops
|
7
|
0-13
|
STE max hops
|
7
|
0-13
|
Backup CRF
|
disabled
|
disable; enable
|
Configuring VLANs in the VTP Database
You use the CLI vlan database VLAN database command to add, change, and delete VLANs. In VTP server or transparent mode, commands to add, change, and delete VLANs are written to the file vlan.dat, and you can display them by entering the privileged EXEC show vlan command. The vlan.dat file is stored in nonvolatile memory. The vlan.dat file is upgraded automatically, but you cannot return to an earlier version of Cisco IOS after you upgrade to this release.
Caution 
You can cause inconsistency in the VLAN database if you attempt to manually delete the vlan.dat file. If you want to modify the VLAN configuration or VTP, use the VLAN database commands described in the switch command reference.
You use the interface configuration command mode to define the port membership mode and add and remove ports from VLANs. The results of these commands are written to the running-configuration file, and you can display the file by entering the privileged EXEC show running-config command.
Note
VLANs can be configured to support a number of parameters that are not discussed in detail in this section. For complete information on the commands and parameters that control VLAN configuration, refer to the switch command reference.
Adding a VLAN
Each VLAN has a unique, 4-digit ID that can be a number from 1 to 1001. To add a VLAN to the VLAN database, assign a number and name to the VLAN. For the list of default parameters that are assigned when you add a VLAN, see the "Default VLAN Configuration" section.
If you do not specify the VLAN media type, the VLAN is an Ethernet VLAN.
Beginning in privileged EXEC mode, follow these steps to add an Ethernet VLAN: