Cisco IOS LAN Switching Configuration Guide, Release 12.4
VLAN Range

Table Of Contents

VLAN Range

Feature Overview

Benefits

Restrictions

Related Documents

Supported Platforms

Supported Standards, MIBs, and RFCs

Configuration Tasks

Configuring a Range of VLAN Subinterfaces

Verifying Configuration of a Range of Interfaces

Configuration Examples

Single Range Configuration Example

Command Reference


VLAN Range


Feature History

Release
Modification

12.0(7)XE

The interface range command was introduced.

12.1(5)T

The interface range command was integrated into Cisco IOS Release 12.1(5)T.

12.2(2)DD

The interface range command was expanded to enable configuration of subinterfaces.

12.2(4)B

The interface range command was integrated into Cisco IOS Release 12.2(4)B.

12.2(8)T

The VLAN Range feature was integrated into Cisco IOS Release 12.2(8)T.

12.2(13)T

This command was integrated into Cisco IOS Release 12.2(13)T.


This feature module describes the VLAN Range feature.

This document includes the following sections:

Feature Overview

Supported Platforms

Supported Standards, MIBs, and RFCs

Configuration Tasks

Configuration Examples

Command Reference

Feature Overview

Using the VLAN Range feature, you can group VLAN subinterfaces together so that any command entered in a group applies to every subinterface within the group. This capability simplifies configurations and reduces command parsing.

Benefits

The VLAN Range feature provides the following benefits:

Simultaneous Configurations

Identical commands can be entered once for a range of subinterfaces, rather than being entered separately for each subinterface.

Overlapping Range Configurations

Overlapping ranges of subinterfaces can be configured.

Customized Subinterfaces

Individual subinterfaces within a range can be customized or deleted.

Restrictions

Each command you enter while you are in interface configuration mode with the interface range command is executed as it is entered. The commands are not batched together for execution after you exit interface configuration mode. If you exit interface configuration mode while the commands are being executed, some commands might not be executed on some interfaces in the range. Wait until the command prompt reappears before exiting interface configuration mode.

The no interface range command is not supported. You must delete individual subinterfaces to delete a range.

Related Documents

Cisco IOS Wide-Area Networking Configuration Guide, Release 12.2

Cisco IOS Wide-Area Networking Command Reference, Release 12.2

Interface Range Specification, new feature document for Cisco IOS Release 12.1(5)T

Supported Platforms

For Cisco IOS Release 12.2(13)T, the following platforms are supported:

Cisco 6400 series

Cisco 7200 series

Cisco 7401 ASR router

Platform Support Through Feature Navigator

Cisco IOS software is packaged in feature sets that support specific platforms. To get updated information regarding platform support for this feature, access Feature Navigator. Feature Navigator dynamically updates the list of supported platforms as new platform support is added for the feature.

Feature Navigator is a web-based tool that enables you to quickly determine which Cisco IOS software images support a specific set of features and which features are supported in a specific Cisco IOS image.

To access Feature Navigator, you must have an account on Cisco.com. If you have forgotten or lost your account information, send a blank e-mail to cco-locksmith@cisco.com. An automatic check will verify that your e-mail address is registered with Cisco.com. If the check is successful, account details with a new random password will be e-mailed to you. Qualified users can establish an account on Cisco.com by following the directions at http://www.cisco.com/register.

Feature Navigator is updated when major Cisco IOS software releases and technology releases occur. As of May 2001, Feature Navigator supports M, T, E, S, and ST releases. You can access Feature Navigator at the following URL:

http://www.cisco.com/go/fn

Supported Standards, MIBs, and RFCs

Standards

No new or modified standards are supported by this feature.

MIBs

No new or modified MIBs are supported by this feature.

To obtain lists of supported MIBs by platform and Cisco IOS release, and to download MIB modules, go to the Cisco MIB website on Cisco.com at the following URL:

http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml

RFCs

No new or modified RFCs are supported by this feature.

Configuration Tasks

See the following section for the configuration task for the VLAN Range feature.

Configuring a Range of VLAN Subinterfaces (required)

Configuring a Range of VLAN Subinterfaces

To configure a range of VLAN subinterfaces, use the following commands beginning in global configuration mode:

 
Command
Purpose

Step 1 

Router(config)# interface range {{ethernet | fastethernet | gigabitethernet | atm} slot/interface.subinterface - {{ethernet | fastethernet | gigabitethernet | atm}slot/interface.subinterface}

Selects the range of subinterfaces to be configured.

Note The spaces around the dash are required. For example, the command interface range fastethernet 1 - 5 is valid; the command interface range fastethernet 1-5 is not valid.

Step 2 

Router(config-int-range)# encapsulation dot1Q vlan-id

Applies a unique VLAN ID to each subinterface within the range.

vlan-id—Virtual LAN identifier. The allowed range is from 1 to 4095.

The VLAN ID specified by the vlan-id argument is applied to the first subinterface in the range. Each subsequent interface is assigned a VLAN ID, which is the specified vlan-id plus the subinterface number minus the first subinterface number (VLAN ID + subinterface number - first subinterface number).

Verifying Configuration of a Range of Interfaces

To verify subinterface configuration, enter the show running-config command.

To verify that the subinterfaces have been created, enter the show interface command.

Configuration Examples

This section provides the following configuration example:

Single Range Configuration Example

Single Range Configuration Example

The following example configures the Fast Ethernet subinterfaces within the range 5/1.1 and 5/1.4 and applies the following VLAN IDs to those subinterfaces:

Fast Ethernet5/1.1 = VLAN ID 301 (vlan-id)

Fast Ethernet5/1.2 = VLAN ID 302 (vlan-id = 301 + 2 - 1 = 302)

Fast Ethernet5/1.3 = VLAN ID 303 (vlan-id = 301 + 3 - 1 = 303)

Fast Ethernet5/1.4 = VLAN ID 304 (vlan-id = 301 + 4 - 1 = 304)

Router(config)# interface range fastethernet5/1.1 - fastethernet5/1.4 
Router(config-if)# encapsulation dot1Q 301
Router(config-if)# no shutdown 
Router(config-if)#
*Oct  6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet5/1.1, changed state to up
*Oct  6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet5/1.2, changed state to up
*Oct  6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet5/1.3, changed state to up
*Oct  6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet5/1.4, changed state to up
*Oct  6 08:24:36: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet5/1.1, 
changed state to up
*Oct  6 08:24:36: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet5/1.2, 
changed state to up
*Oct  6 08:24:36: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet5/1.3, 
changed state to up
*Oct  6 08:24:36: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet5/1.4, 
changed state to up

Command Reference

The following modified commands are pertinent to this feature. To see the command pages for these commands and other commands used with this feature, go to the Cisco IOS Master Commands List, Release 12.4, at http://www.cisco.com/univercd/cc/td/doc/product/software/ios124/124mindx/
124index.htm
.

interface range

encapsulation dot1q