Interface Vlan - Cisco Catalyst 2960 Command Reference Manual

Hide thumbs Also See for Catalyst 2960:
Table of Contents

Advertisement

interface vlan

interface vlan
Use the interface vlan global configuration command to create or access a VLAN and to enter interface
configuration mode. Use the no form of this command to delete a VLAN.
Syntax Description
vlan-id
Defaults
The default VLAN interface is VLAN 1.
Command Modes
Global configuration
Command History
Release
12.2(25)FX
Usage Guidelines
VLANs are created the first time that you enter the interface vlan vlan-id command for a particular
VLAN. The vlan-id corresponds to the VLAN-tag associated with data frames on an IEEE 802.1Q
encapsulated trunk or the VLAN ID configured for an access port.
If you delete a VLAN by entering the no interface vlan vlan-id command, the deleted interface is no
longer visible in the output from the show interfaces privileged EXEC command.
Note
You cannot delete the VLAN 1 interface.
You can re-instate a deleted VLAN by entering the interface vlan vlan-id command for the deleted
interface. The interface comes back up, but the previous configuration is gone.
Examples
This example shows how to create a new VLAN with VLAN ID 23 and to enter interface configuration
mode:
Switch(config)# interface vlan 23
Switch(config-if)#
You can verify your setting by entering the
EXEC commands.
Related Commands
Command
show interfaces
Catalyst 2960 Switch Command Reference
2-90
interface vlan vlan-id
no interface vlan vlan-id
VLAN number. The range is 1 to 4094.
Modification
This command was introduced.
vlan vlan-id
Chapter 2
show interfaces
and show interfaces vlan vlan-id privileged
Description
Displays the administrative and operational status of all
interfaces or the specified VLAN.
Catalyst 2960 Switch Cisco IOS Commands
78-16882-01

Advertisement

Table of Contents
loading

Table of Contents