cc/td/doc/product/lan/c2900xl/29_35xu
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

Creating and Maintaining VLANs

Creating and Maintaining VLANs

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 5-1. 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).

This chapter describes how to create and maintain VLANs through the Cluster Management software and the command-line interface (CLI). It contains the following information:


Figure 5-1:
VLANs as Logically Defined Networks


Number of Supported VLANs

Table 5-1 lists the number of supported VLANs on 2900 and 3500 XL switches.


Table 5-1: Number of Supported VLANs
Catalyst Switch Number of Supported VLANs Trunking Supported?

2900 XL fixed switches with 8 MB of DRAM

64

Yes

2900 XL modular switches with 8 MB of DRAM

250

Yes

3500 XL switches

250

Yes

VLANs are identified with a number between 1 and 1001. Regardless of the switch model, only 64 possible instances of STP are supported.

The switches in Table 5-1 support both Inter-Switch Link (ISL) and IEEE 802.1Q trunking methods for transmitting VLAN traffic over 100BaseT and Gigabit Ethernet ports. However, trunking is not supported on all switches and modules. For the list of products that support trunking, refer to the Release Notes for Catalyst 2900 Series XL and Catalyst 3500 Series XL Cisco IOS Release 12.0(5)XU.

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 5-2 lists the membership modes and characteristics.


Table 5-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.

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 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 VMPS. The VMPS can be a Catalyst 5000 series switch but never a 2900 or 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 5-3.


Table 5-3: VLAN Combinations
Port Mode VTP Required? Configuration Procedure Comments

Static-access ports

No

"Assigning Static-Access Ports to a VLAN" section

If you do not want to use VTP to globally propagate the VLAN configuration information, you can assign a static-access port to a VLAN and set the VTP mode to transparent to disable VTP.

Static-access and
multi-VLAN ports

No

"Overlapping VLANs and Multi-VLAN Ports" section

"Assigning Static-Access Ports to a VLAN" section

You must connect the multi-VLAN port to a router or server.

The switch automatically transitions to VTP transparent mode (VTP is disabled). No VTP configuration is required.

Some restrictions apply to multi-VLAN ports. For more information, see the "Managing Configuration Conflicts" section.

Static-access and
trunk ports

Recommended

"CLI: Configuring VTP Server Mode" section

Add, modify, or remove VLANs in the database as described in the "Configuring VLANs in the VTP Database" section

"CLI: Assigning Static-Access Ports to a VLAN" section

"Configuring a Trunk Port" section

Make sure to configure at least one trunk port on the switch and that this trunk port is connected to the trunk port of a second switch.

Some restrictions apply to trunk ports. For more information, see the "Trunks Interacting with Other Features" section.

You can change the VTP version on the switch and enable VTP pruning.

You can define the allowed-VLAN list, change the pruning-eligible list, and configure the native VLAN for untagged traffic on the trunk port.

Dynamic-access and
trunk ports

Yes

"CLI: Entering the IP Address of the VMPS" section

"CLI: Configuring Dynamic Ports on VMPS Clients" section

"Configuring a Trunk Port" section so that the VMPS client can receive VTP information from the VMPS

You must connect the dynamic-access port to an end station and not to another switch.

Configure the VMPS and the client with the same VTP domain name.

You can change the reconfirmation interval and the retry count on the VMPS client switch.

You can define the allowed-VLAN list, change the pruning-eligible list, and configure the native VLAN for untagged traffic on the trunk port.

Clusters, VLAN Membership, and the Management VLAN

This software release supports the grouping of switches into a cluster that can be managed as a single entity. The command switch is the single point of management for the cluster and cluster members.

Links among a command switch, cluster members, and candidate switches must be through ports that belong to the management VLAN. By default, the management VLAN is VLAN 1. If you are using SNMP or the Cluster Management Suite (CMS) to manage the switch, ensure that the port through which you are connected to a switch is in the management VLAN. For information on configuring the management VLAN, see the "Changing the Management VLAN" section.

If you are configuring VLANs on a member switch, you might need to enter an extra command from the command-switch CLI to access the member switch. When configuring port parameters, for example, you can use the privileged EXEC rcommand command and the number of the member switch to display the member-switch CLI. Once you have accessed the member switch, command mode changes, and IOS commands operate as usual. Enter exit on the member switch in privileged EXEC mode to return to the command-switch CLI.

For more information about the rcommand command, refer to the Cisco IOS Desktop Switching Command Reference (online only).

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). To assign a VLAN, you access the VLAN Membership window (Figure 5-2) by selecting VLAN>VLAN Membership from the menu bar and clicking the Assign VLANs tab.


Figure 5-2: VLAN Membership: Assign VLANs Tab


You configure the switch for VTP transparent mode, which disables VTP, by selecting VLAN>VTP Management from the menu bar and clicking the VTP Configuration tab (Figure 5-5).

You can also assign the port through the CLI on standalone, command, and member switches. If you are assigning a port 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 Cisco IOS Desktop Switching Command Reference (online only).

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.

The "Finding More Information About IOS Commands" section contains the path to the complete IOS documentation.

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 5-3. Connectivity between VLANs is accomplished by using 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 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 "Managing Configuration Conflicts" section.


Figure 5-3: 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.

You can assign a multi-VLAN port to VLANs by using the VLAN Management window (Figure 5-2). To display this window, select VLAN>VLAN Membership from the menu bar, and click the Assign VLANs tab.

You can also configure the multi-VLAN port through the CLI on standalone, command, and member switches. If you are assigning a port on a cluster member switch to a VLAN, first log into the member switch by using the privileged EXEC rcommand command. For more information on how to use this command, refer to the Cisco IOS Desktop Switching Command Reference (online only).

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.

The "Finding More Information About IOS Commands" section contains the path to the complete IOS documentation.

Using the VLAN Trunk Protocol

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 2900 or 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 Simple Network Management Protocol (SNMP).

By default, a 2900 or 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 Asynchronous Transfer Mode (ATM) LAN Emulation (LANE).

If you configure a switch for VTP transparent mode, you can create and modify VLANs, but the changes are not transmitted 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 VTP Mode Transitions

You can configure a supported switch to be in one of the VTP modes listed in Table 5-4:


Table 5-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 not 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:

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 the following global domain information in VTP advertisements:

VTP advertisements distribute the following VLAN information for each configured VLAN:

VTP Version 2

VTP version 2 supports the following features not supported in version 1:

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 2900 and 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 5-4 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 5-4: Optimized Flooded Traffic with VTP Pruning


VTP Configuration Guidelines

The following sections describe the guidelines you should follow when configuring the VTP domain name and password, and the VTP version number.

Domain Names

When configuring VTP for the first time, you must always assign a domain name. In addition, all switches in the VTP domain must 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.

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 2900 or 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 supports VLANs but does not support VTP, such as Cisco IOS Release 11.2(8)SA3, to a version that does support VTP, 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, the domain password, and change the VTP mode to VTP server.

VTP Version

Follow these guidelines when deciding which VTP version to implement:

Default VTP Configuration

Table 5-5 shows the default VTP configuration.


Table 5-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 by using the VTP Management window (Figure 5-5).

To display this window, select VLAN>VTP Management from the menu bar, and click the VTP Configuration tab.


Figure 5-5: VTP Management: VTP Configuration Tab


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.

You can also configure VTP through the CLI on standalone, command, and member switches by entering commands in the VLAN database command 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 Cisco IOS Desktop Switching Command Reference (online only).

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 are returned to privileged EXEC mode.


Note The Cisco IOS end and Ctrl-Z commands are not supported in VLAN database mode.

CLI: 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.

The "Finding More Information About IOS Commands" section contains the path to the complete IOS documentation.

CLI: 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.

The "Finding More Information About IOS Commands" section contains the path to the complete IOS documentation.

CLI: 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.

The "Finding More Information About IOS Commands" section contains the path to the complete IOS documentation.

CLI: 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.

The "Finding More Information About IOS Commands" section contains the path to the complete IOS documentation.

CLI: 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.

The "Finding More Information About IOS Commands" section contains the path to the complete IOS documentation.

CLI: 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.

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 that your entries.

In the display, check the VTP Pruning Mode field.

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 2900 and 3500 XL trunk ports. For information, see the "CLI: Changing the Pruning-Eligible List" section.

The "Finding More Information About IOS Commands" section contains the path to the complete IOS documentation.

CLI: 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.

The "Finding More Information About IOS Commands" section contains the path to the complete IOS documentation.

VLANs in the VTP Database

You can set the following parameters when you add a new VLAN to or modify an existing VLAN in the VTP database:

The "Default VLAN Configuration" section lists the default values and possible ranges for each VLAN media type.

Token Ring VLANs

Although the 2900 and 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 IOS release advertise information about the following Token Ring VLANs when running VTP version 2:

For more information on configuring Token Ring VLANs, see the Catalyst 5000 Series Software Configuration Guide.

VLAN Configuration Guidelines

Follow these guidelines when creating and modifying VLANs in your network:

Default VLAN Configuration

Table 5-6 through Table 5-10 shows the default configuration for the different VLAN media types.


Note Catalyst 2900 and 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 5-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 5-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 5-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 5-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 5-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 can use the VTP Management window (Figure 5-6) or the CLI to add, modify or remove VLAN configurations in the VTP database. VTP globally propagates these VLAN changes throughout the VTP domain.

To display this window, select VLAN>VTP Management from the menu bar, and click the VLAN Configuration tab. Click Help to for more information on using this window.


Figure 5-6: VTP Management: VLAN Configuration Tab


You use the CLI vlan database command mode 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 mode 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 Cisco IOS Desktop Switching Command Reference (online only).

You use the interface configuration command mode to define the port membership mode and add and remove ports from VLAN. The results of these commands are written to the running-configuration file, and you can display the file by entering the privileged EXEC mode 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 Cisco IOS Desktop Switching Command Reference (online only).

CLI: Adding an Ethernet 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 type, the VLAN is an Ethernet VLAN.

Beginning in privileged EXEC mode, follow these steps to add an Ethernet VLAN:

Command Purpose

Step 1

vlan database

Enter VLAN database mode.

Step 2

vlan vlan-id name vlan-name

Add an Ethernet VLAN by assigning a number to it. If no name is entered for the VLAN, the default is to append the vlan-id to the word VLAN. For example, VLAN0004 could be a default VLAN name.

Step 3

exit

Update the VLAN database, propagate it throughout the administrative domain, and return to privileged EXEC mode.

Step 4

show vlan name vlan-name

Verify the VLAN configuration.

The "Finding More Information About IOS Commands" section contains the path to the complete IOS documentation.

CLI: Modifying an Ethernet VLAN

Beginning in privileged EXEC mode, follow these steps to modify an Ethernet VLAN:

Command Purpose

Step 1

vlan database

Enter VLAN configuration mode.

Step 2

vlan vlan-id mtu mtu-size

Identify the VLAN, and change the MTU size.

Step 3

exit

Update the VLAN database, propagate it throughout the administrative domain, and return to privileged EXEC mode.

Step 4

show vlan vlan-id

Verify the VLAN configuration.

The "Finding More Information About IOS Commands" section contains the path to the complete IOS documentation.

CLI: Deleting a VLAN from the Database

When you delete a VLAN from a switch that is in VTP server mode, the VLAN is removed from all switches in the VTP domain. When you delete a VLAN from a switch that is in VTP transparent mode, the VLAN is deleted only on that specific switch.

You cannot delete the default VLANs for the different media types: Ethernet VLAN 1 and FDDI or Token Ring VLANs 1002 to 1005.


Caution When you delete a VLAN, any ports assigned to that VLAN become inactive. They remain associated with the VLAN (and thus inactive) until you assign them to a new VLAN.

Beginning in privileged EXEC mode, follow these steps to delete a VLAN on the switch:

Command Purpose

Step 1

vlan database

Enter VLAN configuration mode.

Step 2

no vlan vlan-id

Remove the VLAN by using the VLAN ID.

Step 3

exit

Update the VLAN database, propagate it throughout the administrative domain, and return to privileged EXEC mode.

Step 4

show vlan brief

Verify the VLAN removal.

The "Finding More Information About IOS Commands" section contains the path to the complete IOS documentation.

CLI: Assigning Static-Access Ports to a VLAN

By default, all ports are static-access ports assigned to VLAN 1, which is the default management VLAN. If you are assigning a port 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 Cisco IOS Desktop Switching Command Reference (online only).

Beginning in privileged EXEC mode, follow these steps to assign a port to a VLAN in the VTP database:

Command Purpose

Step 1

configure terminal

Enter global configuration mode.

Step 2

interface interface

Enter interface configuration mode, and define the interface to be added to the VLAN.

Step 3

switchport mode access

Define the VLAN membership mode for this port.

Step 4

switchport access vlan 3

Assign the port to the VLAN.

Step 5

exit

Return to privileged EXEC mode.

Step 6

show interface interface-id switchport

Verify the VLAN configuration.

In the display, check the Operation Mode, Access Mode VLAN, and the Priority for Untagged Frames fields.

The "Finding More Information About IOS Commands" section contains the path to the complete IOS documentation.

How VLAN Trunks Work

A trunk is a point-to-point link that transmits and receives traffic between switches or between switches and routers. Trunks carry the traffic of multiple VLANs and can extend VLANs across an entire network. 100BaseT and Gigabit Ethernet trunks use Cisco Inter-Switch Link (ISL), the default protocol, or industry-standard IEEE 802.1Q to carry traffic for multiple VLANs over a single link.

Figure 5-7 shows a network of switches that are connected by ISL trunks.


Figure 5-7: Catalyst 2900 Series XL and Catalyst 3500 Series XL Switches in an ISL Trunking Environment


IEEE 802.1Q Configuration Considerations

IEEE 802.1Q trunks impose some limitations on the trunking strategy for a network. The following restrictions apply when using 802.1Q trunks:

Trunks Interacting with Other Features

ISL, IEEE 802.1Q, and ATM trunking interacts with other switch features as described in Table 5-11.


Table 5-11: Trunks Interacting with Other Features
Switch Feature Trunk Port Interaction

Port monitoring

A trunk port cannot be a monitor port. A static-access port can monitor the traffic of its VLAN on a trunk port.

Network port

When configured as a network port, a trunk port serves as the network port for all VLANs associated with the port. A network port receives all unknown unicast traffic on a VLAN.

Secure ports

A trunk port cannot be a secure port.

Blocking unicast and multicast packets on a trunk

The port block command can be used to block the forwarding of unknown unicast and multicast packets to VLANs on a trunk. However, if the trunk port is acting as a network port, unknown unicast packets cannot be blocked.

Port grouping

ISL and 802.1Q trunks can be grouped into EtherChannel port groups, but all trunks in the group must have the same configuration. ATM ports are always trunk ports but cannot be part of an EtherChannel port group.

When a group is first created, all ports follow the parameters set for the first port to be added to the group. If you change the configuration of one of the following parameters, the switch propagates the setting you entered to all ports in the group:

Configuring a Trunk Port

You configure trunk ports by using the Assign VLANs (Figure 5-2) and Trunk Configuration (Figure 5-8) tabs of the VLAN Membership window.

To display this window, select VLAN>VLAN Membership from the menu bar. Then click the Assign VLANs tab or the Trunk Configuration tab.


Figure 5-8: VLAN Membership: Trunk Configuration Tab


You can also configure a trunk port through the CLI on standalone, command, and member switches. If you are assigning a port 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 Cisco IOS Desktop Switching Command Reference (online only).

CLI: Configuring a Trunk Port

You cannot have multi-VLAN and trunk ports configured on the same switch. For information on trunk port interactions with other features, see the "Trunks Interacting with Other Features" section.


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.

Beginning in privileged EXEC mode, follow these steps to configure a port as an ISL or 802.1Q trunk port:

Command Purpose

Step 1

configure terminal

Enter global configuration mode.

Step 2

interface interface_id

Enter the interface configuration mode and the port to be configured for trunking.

Step 3

switchport mode trunk

Configure the port as a VLAN trunk.

Step 4

switchport trunk encapsulation {isl | dot1q}

Configure the port to support ISL or 802.1Q encapsulation.

You must configure each end of the link with the same encapsulation type.

Step 5

end

Return to privileged EXEC mode.

Step 6

show interface interface-id switchport

Verify your entries.

In the display, check the Operational Mode and the Operational Trunking Encapsulation fields.

Step 7

copy running-config startup-config

Save the configuration.


Note This software release does not support trunk negotiation via the Dynamic Trunk Protocol (DTP), formerly known as Dynamic ISL (DISL). If you are connecting a trunk port to a Catalyst 5000 switch or other DTP device, use the non-negotiate option on the DTP-capable device so that the switch port does not generate DTP frames.

The "Finding More Information About IOS Commands" section contains the path to the complete IOS documentation.

CLI: Disabling a Trunk Port

You can disable trunking on a port by returning it to its default static-access mode.

Beginning in privileged EXEC mode, follow these steps to disable trunking on a port:

Command Purpose

Step 1

configure terminal

Enter global configuration mode.

Step 2

interface interface_id

Enter the interface configuration mode and the port to be added to the VLAN.

Step 3

no switchport mode

Return the port to its default static-access mode.

Step 4

end

Return to privileged EXEC.

Step 5

show interface interface-id switchport

Verify your entries.

In the display, check the Negotiation of Trunking field.

The "Finding More Information About IOS Commands" section contains the path to the complete IOS documentation.

CLI: Defining the Allowed VLANs on a Trunk

By default, a trunk port sends to and receives traffic from all VLANs in the VLAN database. All VLANs, 1 to 1005, are allowed on each trunk. However, you can remove VLANs from the allowed list, preventing traffic from those VLANs from passing over the trunk. To restrict the traffic a trunk carries, use the remove vlan-list parameter to remove specific VLANs from the allowed list.

A trunk port can become a member of a VLAN if the VLAN is enabled, if VTP knows of the VLAN, and if the VLAN is in the allowed list for the port. When VTP detects a newly enabled VLAN and the VLAN is in the allowed list for a trunk port, the trunk port automatically becomes a member of the enabled VLAN. When VTP detects a new VLAN and the VLAN is not in the allowed list for a trunk port, the trunk port does not become a member of the new VLAN.

Beginning in privileged EXEC mode, follow these steps to modify the allowed list of a ISL or 802.1Q trunk:

Command Purpose

Step 1

configure terminal

Enter global configuration mode.

Step 2

interface interface_id

Enter interface configuration mode and the port to be added to the VLAN.

Step 3

switchport mode trunk

Configure VLAN membership mode for trunks.

Step 4

switchport trunk allowed vlan remove vlan-list

Define the VLANs that are not allowed to transmit and receive on the port.

The vlan-list parameter is a range of VLAN IDs Separate nonconsecutive VLAN IDs with a comma and no spaces; use a hyphen to designate a range of IDs. Valid IDs are from 2 to 1001.

Step 5

end

Return to privileged EXEC.

Step 6

show interface interface-id switchport allowed-vlan

Verify your entries.

Step 7

copy running-config startup-config

Save the configuration.

The "Finding More Information About IOS Commands" section contains the path to the complete IOS documentation.

CLI: Changing the Pruning-Eligible List

The pruning-eligible list applies only to trunk ports. Each trunk port has its own eligibility list. VTP Pruning must be enabled for the following procedure to take effect. The "CLI: Enabling VTP Pruning" section describes how to enable VTP pruning.

Beginning in privileged EXEC mode, follow these steps to remove VLANs from the pruning-eligible list on a trunk port:

Command Purpose

Step 1

configure terminal

Enter global configuration mode.

Step 2

interface interface-id

Enter interface configuration mode, and select the trunk port for which VLANs should be pruned.

Step 3

switchport trunk pruning vlan remove vlan-id

Enter the VLANs to be removed from the pruning-eligible list.

Separate nonconsecutive VLAN IDs with a comma and no spaces; use a hyphen to designate a range of IDs. Valid IDs are from 2 to 1001.

VLANs that are pruning-ineligible receive flooded traffic.

Step 4

exit

Return to privileged EXEC mode.

Step 5

show interface interface-id switchport

Verify your settings.

The "Finding More Information About IOS Commands" section contains the path to the complete IOS documentation.

CLI: Configuring the Native VLAN for Untagged Traffic

A trunk port configured with 802.1Q tagging can receive both tagged and untagged traffic. By default, the switch forwards untagged traffic with the native VLAN configured for the port. The native VLAN is VLAN 1 by default.


Note The native VLAN can be assigned any VLAN ID, and it is not dependent on the management VLAN.

For information about 802.1Q configuration issues, see the "IEEE 802.1Q Configuration Considerations" section.

Beginning in privileged EXEC mode, follow these steps to configure the native VLAN on an 802.1Q trunk:

Command Purpose

Step 1

configure terminal

Enter global configuration mode.

Step 2

interface interface-id

Enter interface configuration mode, and define the interface that is configured as the 802.1Q trunk.

Step 3

switchport trunk native vlan vlan-id

Configure the VLAN that is sending and receiving untagged traffic on the trunk port.

Valid IDs are from 1 to 1001.

Step 4

show interface interface-id switchport

Verify your settings.

If a packet has a VLAN ID the same as the outgoing port native VLAN ID, the packet is transmitted untagged; otherwise, the switch transmits the packet with a tag.

The "Finding More Information About IOS Commands" section contains the path to the complete IOS documentation.

Configuring 802.1p Class of Service

The 2900 XL and 3500 XL switches provide QoS-based IEEE 802.1p class of service (CoS) values. QoS uses classification and scheduling to transmit network traffic from the switch in a predictable manner. QoS classifies frames by assigning priority-indexed CoS values to them and gives preference to higher-priority traffic such as telephone calls.

How Class of Service Works

Before you set up 802.1p CoS on a 2900 or 3500 XL switch that operates with the Catalyst 6000 family of switches, refer to the Catalyst 6000 documentation. There are differences in the 802.1p implementation, and they should be understood to ensure compatibility.

Port Priority

Frames received from users in the administratively-defined VLANs are classified or tagged for transmission to other devices. Based on rules you define, a unique identifier (the tag) is inserted in each frame header before it is forwarded. The tag is examined and understood by each device before any broadcasts or transmissions to other switches, routers, or end stations. When the frame reaches the last switch or router, the tag is removed before the frame is transmitted to the target end station. VLANs that are assigned on trunk or access ports without identification or a tag are called native or untagged frames.

For ISL or IEEE 802.1Q frames with tag information, the priority value from the header frame is used. For native frames, the default priority of the input port is used.

Port Scheduling

Each port on the switch has a single receive queue buffer (the ingress port) for incoming traffic. When an untagged frame arrives, it is assigned the value of the port as its port default priority. You assign this value by using the CLI or CMS software. A tagged frame continues to use its assigned CoS value when it passes through the ingress port.

CoS configures each transmit port (the egress port) with a normal-priority transmit queue and a high-priority transmit queue, depending on the frame tag or the port information. Frames in the normal-priority queue are forwarded only after frames in the high-priority queue are forwarded.

Table 5-12 shows the two categories of switch transmit queues.


Table 5-12: Transmit Queue Information
Transmit queue category1 Transmit Queues

2900 XL switches, 2900 XL Ethernet modules (802.1p user priority)

Frames with a priority value of 0 through 3 are sent to a normal-priority queue.

Frames with a priority value of 4 through 7 are sent to a high-priority queue.

3500 XL switches, Gigabit Ethernet modules (802.1p user priority)

Frames with a priority value of 0 through 3 are sent to a normal-priority queue.

Frames with a priority value of 4 through 7 are sent to a high-priority queue.

1Catalyst 2900 XL switches with 4 MB of DRAM and the WS-X2914-XL and the WS-X2922-XL modules only have one transmit queue and do not support QoS.

CLI: Configuring the CoS Port Priorities

Beginning in privileged EXEC mode, follow these steps to set the port priority for untagged (native) Ethernet frames:

Command Purpose

Step 1

configure terminal

Enter global configuration mode.

Step 2

interface interface

Enter the interface to be configured.

Step 3

switchport priority default default-priority-id

Set the port priority on the interface.

If you assign a priority level from 0 to 3, frames are forwarded to the normal priority queue of the output port.

If you assign a priority level from 4 to 7, frames are forwarded to the high-priority queue of the output port.

Step 4

end

Return to privileged EXEC mode.

Step 5

show interface interface-id switchport

Verify your entries. In the display, check the Priority for Untagged Frames field.

The "Finding More Information About IOS Commands" section contains the path to the complete IOS documentation.

Load Sharing Using STP

Load sharing divides the bandwidth supplied by parallel trunks connecting switches. To avoid loops, STP normally blocks all but one parallel link between switches. With load sharing, you divide the traffic between the links according to which VLAN the traffic belongs.

You configure load sharing on trunk ports by using STP port priorities or STP path costs. For load sharing using STP port priorities, both load-sharing links must be connected to the same switch. For load sharing using STP path costs, each load-sharing link can be connected to the same switch or to two different switches.

You can change STP port parameters by using the Port Parameters tab of the Spanning Tree Protocol window or by using the CLI. To display this window, select Device>Spanning-Tree Protocol from the menu bar. Then click the Port Parameters tab.

For more information about the STP window, see the "Configuring the Spanning Tree Protocol" section, or consult the online help in the application.

Load Sharing Using STP Port Priorities

When two ports on the same switch form a loop, the STP port priority setting determines which port is enabled and which port is in standby mode. You can set the priorities on a parallel trunk port so that the port carries all the traffic for a given VLAN. The trunk port with the higher priority (lower values) for a VLAN is forwarding traffic for that VLAN. The trunk port with the lower priority (higher values) for the same VLAN remains in a blocking state for that VLAN. One trunk port transmits or receives all traffic for the VLAN.

Figure 5-9 shows two trunks connecting supported switches. In this example, the switches are configured as follows:

In this way, trunk 1 carries traffic for VLANs 8 through 10, and trunk 2 carries traffic for VLANs 3 through 6. If the active trunk fails, the trunk with the lower priority takes over and carries the traffic for all of the VLANs. No duplication of traffic occurs over any trunk port.


Figure 5-9:
Load Sharing by Using STP Port Priorities


CLI: Configuring STP Port Priorities and Load Sharing

Beginning in privileged EXEC mode, follow these steps to configure the network shown in Figure 5-9:

Command Purpose

Step 1

vlan database

On Switch 1, enter VLAN configuration mode.

Step 2

vtp domain domain-name

Configure a VTP administrative domain.

The domain name can be from 1 to
32 characters.

Step 3

vtp server

Configure Switch 1 as the VTP server.

Step 4

exit

Return to privileged EXEC mode.

Step 5

show vtp status

Verify the VTP configuration on both Switch 1 and Switch 2.

In the display, check the VTP Operating Mode and the VTP Domain Name fields.

Step 6

show vlan

Verify that the VLANs exist in the database on Switch 1.

Step 7

configure terminal

Enter global configuration mode.

Step 8

interface fa0/1

Enter interface configuration mode, and define Fa0/1 as the interface to be configured as a trunk.

Step 9

switchport mode trunk

Configure the port as a trunk port.

The trunk defaults to ISL trunking.

Step 10

end

Return to privilege EXEC mode.

Step 11

show interface fa0/1 switchport

Verify the VLAN configuration.

Step 12

Repeat Steps 7 through 11 on Switch 1 for interface Fa0/2.

Step 13

Repeat Steps 7 through 11 on Switch 2 to configure the trunk ports on interface Fa0/1 and Fa0/2.

Step 14

show vlan

When the trunk links come up, VTP passes the VTP and VLAN information to Switch 2. Verify the Switch 2 has learned the VLAN configuration.

Step 15

configure terminal

Enter global configuration mode on
Switch 1.

Step 16

interface fa0/1

Enter interface configuration mode, and define the interface to set the STP port priority.

Step 17

spanning-tree vlan 8 9 10 port-priority 10

Assign the port priority of 10 for
VLANs 8, 9, and 10.

Step 18

end

Return to global configuration mode.

Step 19

interface fa0/2

Enter interface configuration mode, and define the interface to set the STP port priority.

Step 20

spanning-tree vlan 3 4 5 6 port priority 10

Assign the port priority of 10 for
VLANs 3, 4, 5, and 6.

Step 21

exit

Return to privileged EXEC mode.

Step 22

show running-config

Verify your entries.

The "Finding More Information About IOS Commands" section contains the path to the complete IOS documentation.

Load Sharing Using STP Path Cost

You can configure parallel trunks to share VLAN traffic by setting different path costs on a trunk and associating the path costs with different sets of VLANs. The VLANs keep the traffic separate, because no loops exist, STP does not disable the ports, and redundancy is maintained in the event of a lost link.

In Figure 5-10, trunk ports 1 and 2 are 100BaseT ports. The path costs for the VLANs are assigned as follows:


Figure 5-10: Load-Sharing Trunks with Traffic Distributed by Path Cost


CLI: Configuring STP Path Costs and Load Sharing

Beginning in privileged EXEC mode, follow these steps to configure the network shown in Figure 5-10:

Command Purpose

Step 1

configure terminal

Enter global configuration mode on Switch 1.

Step 2

interface fa0/1

Enter interface configuration mode, and define Fa0/1 as the interface to be configured as a trunk.

Step 3

switchport mode trunk

Configure the port as a trunk port.

The trunk defaults to ISL trunking.

Step 4

end

Return to global configuration mode.

Step 5

Repeat Steps 2 through 4 on Switch 1 interface Fa0/2.

Step 6

show running-config

Verify your entries.

In the display, make sure that interface Fa0/1 and Fa0/2 are configured as trunk ports.

Step 7

show vlan

When the trunk links come up, Switch 1 receives the VTP information from the other switches. Verify that Switch 1 has learned the VLAN configuration.

Step 8

configure terminal

Enter global configuration mode.

Step 9

interface fa0/1

Enter interface configuration mode, and define Fa0/1 as the interface to set the STP cost.

Step 10

spanning-tree vlan 2 3 4 cost 30

Set the spanning-tree path cost to 30 for VLANs 2, 3, and 4.

Step 11

end

Return to global configuration mode.

Step 12

Repeat Steps 9 through 11 on Switch 1 interface Fa0/2, and set the spanning-tree path cost to 30 for VLANs 8, 9, and 10.

Step 13

exit

Return to privileged EXEC mode.

Step 14

show running-config

Verify your entries.

In the display, verify that the path costs are set correctly for interface Fa0/1 and Fa0/2.

The "Finding More Information About IOS Commands" section contains the path to the complete IOS documentation.

How the VMPS Works

A switch running this software release acts as a client to the VLAN Membership Policy Server (VMPS) and communicates with it through the VLAN Query Protocol (VQP ). When the VMPS receives a VQP request from a client switch, it searches its database for a MAC address-to-VLAN mapping. The server response is based on this mapping and whether or not the server is in secure mode. Secure mode determines whether the server shuts down the port when a VLAN is not allowed on it or just denies the port access to the VLAN.

In response to a request, the VMPS takes one of the following actions:

If the switch receives an access-denied response from the VMPS, it continues to block traffic from the MAC address to or from the port. The switch continues to monitor the packets directed to the port and sends a query to the VMPS when it identifies a new address. If the switch receives a port-shutdown response from the VMPS, it disables the port. The port must be manually reenabled by using the CLI, Cluster Management software, or SNMP.

You can also use an explicit entry in the configuration table to deny access to specific MAC addresses for security reasons. If you enter the none keyword for the VLAN name, the VMPS sends an access-denied or port-shutdown response.

Dynamic Port VLAN Membership

A dynamic (nontrunking) port on the switch can belong to only one VLAN. When the link comes up, the switch does not forward traffic to or from this port until the VMPS provides the VLAN assignment. The VMPS receives the source MAC address from the first packet of a new host connected to the dynamic port and attempts to match the MAC address to a VLAN in the VMPS database.

If there is a match, the VMPS sends the VLAN number for that port. If the client switch was not previously configured, it uses the domain name from the first VTP packet it receives on its trunk port from the VMPS. If the client switch was previously configured, it includes its domain name in the query packet to the VMPS to obtain its VLAN number. The VMPS verifies that the domain name in the packet matches its own domain name before accepting the request and responds to the client with the assigned VLAN number for the client.

If there is no match, the VMPS either denies the request or shuts down the port (depending on the VMPS secure mode setting). For more information on possible VMPS responses, see the "How the VMPS Works" section.

Multiple hosts (MAC addresses) can be active on a dynamic port if they are all in the same VLAN; however, the VMPS shuts down a dynamic port if more than 20 hosts are active on the port.

If the link goes down on a dynamic port, the port returns to an isolated state and does not belong to a VLAN. Any hosts that come online through the port are checked again with the VMPS before the port is assigned to a VLAN.

VMPS Database Configuration File

The VMPS contains a database configuration file that you create. This ASCII text file is stored on a switch-accessible TFTP server that functions as a VMPS server. The file contains VMPS information, such as the domain name, the fall-back VLAN name, and the MAC address-to-VLAN mapping. A 2900 or 3500 XL switch running this software release cannot act as the VMPS. Use a
Catalyst 5000 series switch as the VMPS.

The VMPS database configuration file on the server must use the 2900 XL and 3500 XL convention for naming ports. For example, Fa0/5 is fixed-port number 5.

If the switch is a cluster member, the command switch adds the name of the switch before the Fa. For example, es3%Fa02 refers to fixed 10/100 port 2 on member switch 3. These naming conventions must be used in the VMPS database configuration file when it is configured to support a cluster.

You can configure a fallback VLAN name. If you connect a device with a MAC address that is not in the database, the VMPS sends the fallback VLAN name to the client. If you do not configure a fallback VLAN and the MAC address does not exist in the database, the VMPS sends an access-denied response. If the VMPS is in secure mode, it sends a port-shutdown response.

The following example shows a sample VMPS database configuration file as it appears on a Catalyst 5000 series switch.

!vmps domain <domain-name>
! The VMPS domain must be defined.
!vmps mode { open | secure }
! The default mode is open.
!vmps fallback <vlan-name>
!vmps no-domain-req { allow | deny }
!
! The default value is allow.
vmps domain WBU
vmps mode open
vmps fallback default
vmps no-domain-req deny
!
!
!MAC Addresses
!
vmps-mac-addrs
!
! address <addr> vlan-name <vlan_name>
!
address 0012.2233.4455 vlan-name hardware
address 0000.6509.a080 vlan-name hardware
address aabb.ccdd.eeff vlan-name Green
address 1223.5678.9abc vlan-name ExecStaff
address fedc.ba98.7654 vlan-name --NONE--
address fedc.ba23.1245 vlan-name Purple
!
!Port Groups
!
!vmps-port-group <group-name>
! device <device-id> { port <port-name> | all-ports }
!
vmps-port-group WiringCloset1
 device 192.168.1.1 port Fa1/3
 device 172.16.1.1 port Fa1/4
vmps-port-group "Executive Row"
 device 192.168.2.2 port es5%Fa0/1
 device 192.168.2.2 port es5%Fa0/2
 device 192.168.2.3 all-ports
!
!VLAN groups
!
!vmps-vlan-group <group-name>
! vlan-name <vlan-name>
!
vmps-vlan-group Engineering
vlan-name hardware
vlan-name software
!
!VLAN port Policies
!
!vmps-port-policies {vlan-name <vlan_name> | vlan-group <group-name> }
! { port-group <group-name> | device <device-id> port <port-name> }
!
vmps-port-policies vlan-group Engineering
 port-group WiringCloset1
vmps-port-policies vlan-name Green
 device 192.168.1.1 port Fa0/9
vmps-port-policies vlan-name Purple
 device 192.168.2.2 port Fa0/10
 port-group "Executive Row"

VMPS Configuration Guidelines

The following guidelines and restrictions apply to dynamic port VLAN membership:

You must turn off trunking on the port before the dynamic access setting takes effect.

Default VMPS Configuration

Table 5-13 shows the default VMPS and dynamic port configuration on client switches.


Table 5-13: Default VMPS Client and Dynamic Port Configuration
Feature Default Configuration

VMPS domain server

None

VMPS reconfirm interval

60 minutes

VMPS server retry count

3

Dynamic ports

None configured

Configuring Dynamic VLAN Membership

You configure dynamic VLANs by using the VMPS Server (Figure 5-11) and the VMPS Info (Figure 5-12) tabs of the VMPS Configuration window.

To display this window, select Cluster>VMPS Configuration from the menu bar, and click the VMPS Server or the VMPS Info tab.


Figure 5-11: VMPS Configuration: VMPS Server Tab


You also need to access the VLAN Membership window to assign the port connected to the end station for dynamic VLAN membership and the port connected to the VMPS server for trunking. To display this window, select VLAN>VLAN Membership from the menu bar.

You can also configure VMPS through the CLI on standalone, command, and member switches. If you are configuring VMPS 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 Cisco IOS Desktop Switching Command Reference (online only).


Figure 5-12:
VMPS Configuration: VMPS Info Tab


CLI: Entering the IP Address of the VMPS

You must enter the IP address of the Catalyst 5000 switch or the other device acting as the VMPS to configure the 2900 or 3500 XL switch as a client. If the VMPS is being defined for a cluster of switches, enter the address on the command switch.

Beginning in privileged EXEC mode, follow these steps to enter the IP address of the VMPS:

Command Purpose

Step 1

configure terminal

Enter global configuration mode.

Step 2

vmps server ipaddress primary

Enter the IP address of the switch acting as the primary VMPS server.

Step 3

vmps server ipaddress

Enter the IP address for the switch acting as a secondary VMPS server.

You can enter up to three secondary server addresses.

Step 4

end

Return to privileged EXEC mode.

Step 5

show vmps

Verify the VMPS server entry.

In the display, check the VMPS Domain Server field.

The "Finding More Information About IOS Commands" section contains the path to the complete IOS documentation.

CLI: Configuring Dynamic Ports on VMPS Clients

If you are configuring a port on a member switch as a dynamic port, first log into the member switch by using the privileged EXEC rcommand command. For more information on how to use this command, refer to the Cisco IOS Desktop Switching Command Reference (online only).


Caution Dynamic port VLAN membership is for end stations. Connecting dynamic ports to other switches can cause a loss of connectivity.

Beginning in privileged EXEC mode, follow these steps to configure a dynamic port on the VMPS client switches:

Command Purpose

Step 1

configure terminal

Enter global configuration mode.

Step 2

interface interface

Enter interface configuration mode and the switch port that is connected to the end station.

Step 3

switchport mode access

Set the port to access mode.

Step 4

switchport access vlan dynamic

Configure the port as eligible for dynamic VLAN membership.

The dynamic-access port must be connected to an end station.

Step 5

end

Return to privileged EXEC mode.

Step 6

show interface interface switchport

Verify the entry. In the display, check the Operational Mode field.

The switch port that is connected to the VMPS server should be configured as a trunk. For more information, see the "CLI: Configuring a Trunk Port" section.

The "Finding More Information About IOS Commands" section contains the path to the complete IOS documentation.

CLI: Reconfirming VLAN Memberships

Beginning in privileged EXEC mode, follow these steps to confirm the dynamic port VLAN membership assignments that the switch has received from the VMPS:

Command Purpose

Step 1

vmps reconfirm

Reconfirm dynamic port VLAN membership.

Step 2

show vmps

Verify the dynamic VLAN reconfirmation status.

The "Finding More Information About IOS Commands" section contains the path to the complete IOS documentation.

CLI: Changing the Reconfirmation Interval

VMPS clients periodically reconfirm the VLAN membership information received from the VMPS. You can set the number of minutes after which reconfirmation occurs.

If you are configuring a member switch in a cluster, this parameter must be equal to or greater than the reconfirmation setting on the command switch. In addition, you must first log into the member switch by using the privileged EXEC rcommand command. For more information about this command, refer to the Cisco IOS Desktop Switching Command Reference (online only).

Beginning in privileged EXEC mode, follow these steps to change the reconfirmation interval:

Command Purpose

Step 1

configure terminal

Enter global configuration mode.

Step 2

vmps reconfirm minutes

Enter the number of minutes between reconfirmations of the dynamic VLAN membership.

Enter a number from 1 to 120. The default is 60 minutes.

Step 3

end

Return to privileged EXEC mode.

Step 4

show vmps

Verify the dynamic VLAN reconfirmation status.

In the display, check the Reconfirm Interval field.

The "Finding More Information About IOS Commands" section contains the path to the complete IOS documentation.

CLI: 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:

Command Purpose

Step 1

configure terminal

Enter global configuration mode.

Step 2

vmps retry count

Change the retry count.

The retry range is from 1 to 10; the default is 3.

Step 3

exit

Return to privileged EXEC mode.

Step 4

show vmps

Verify your entry.

In the display, check the Server Retry Count field.

The "Finding More Information About IOS Commands" section contains the path to the complete IOS documentation.

Administering and Monitoring the VMPS

You can display information about the VMPS by using the privileged EXEC show vmps command.

VMPS VQP Version

The version of VQP used to communicate with the VMPS. The switch queries the VMPS using version 1 of VQP.

Reconfirm Interval

The number of minutes the switch waits before reconfirming the VLAN-to-MAC-address assignments.

Server Retry Count

The number of times VQP resends a query to the VMPS. If no response is received after this many tries, the switch starts to query the secondary VMPS.

VMPS domain server

The IP address of the configured VLAN membership policy servers. The switch currently sends queries to the one marked current. The one marked primary is the primary server.

VMPS Action

The result of the most recent reconfirmation attempt. This can happen automatically when the reconfirmation interval expired, or you can force it by entering the privileged EXEC vmps reconfirm command or its Cluster Management software or SNMP equivalent.

The switch displays the following information about the VMPS:

Troubleshooting Dynamic Port VLAN Membership

The VMPS shuts down a dynamic port under these conditions:

To reenable a shut-down dynamic port, enter the interface configuration mode
no shutdown command.

Dynamic Port VLAN Membership Configuration Example

Figure 5-13 shows a network with a VMPS server switch and VMPS client switches with dynamic ports. In this example, these assumptions apply:


Figure 5-13: Dynamic Port VLAN Membership Configuration



hometocprevnextglossaryfeedbacksearchhelp
Posted: Wed May 3 17:17:18 PDT 2000
Copyright 1989 - 2000©Cisco Systems Inc.