C
HAPTER
34
| VLAN Commands
Configuring VLAN Interfaces
– 788 –
VLAN 1 (the switch’s default VLAN), nor VLAN 4093 (the VLAN
used for switch clustering). For more information on configuring
RSPAN through the CLI, see "RSPAN Mirroring Commands" on
page 729.
DEFAULT SETTING
By default only VLAN 1 exists and is active.
COMMAND MODE
VLAN Database Configuration
COMMAND USAGE
â—† no vlan vlan-id deletes the VLAN.
â—† no vlan vlan-id name removes the VLAN name.
â—† no vlan vlan-id state returns the VLAN to the default state
(i.e., active).
â—† You can configure up to 4093 VLANs on the switch.
N
OTE
:
The switch allows 256 user-manageable VLANs.
EXAMPLE
The following example adds a VLAN, using VLAN ID 105 and name RD5.
The VLAN is activated by default.
Console(config)#vlan database
Console(config-vlan)#vlan 105 name RD5 media ethernet
Console(config-vlan)#
RELATED COMMANDS
show vlan (795)
CONFIGURING VLAN INTERFACES
Table 106: Commands for Configuring VLAN Interfaces
Command Function Mode
interface vlan Enters interface configuration mode for a specified
VLAN
IC
switchport acceptable-
frame-types
Configures frame types to be accepted by an interface IC
switchport allowed vlan Configures the VLANs associated with an interface IC
switchport forbidden vlan Configures forbidden VLANs for an interface IC
switchport gvrp Enables GVRP for an interface IC