Table of Contents

Advertisement

vlan

Use the vlan command in Global Configuration mode to configure a VLAN.
To delete a VLAN, use the no form of this command.
Syntax
vlan {vlan–list}
no vlan {vlan–list}
vlan–list—A list of one or more valid VLAN IDs. List separate, non-
consecutive VLAN IDs separated by commas (without spaces). Use a
hyphen to designate a range of IDs. (Range: 1–4093)
Default Configuration
This command has no default configuration.
Command Mode
Global Configuration (Config)
User Guidelines
Deleting the VLAN assigned as the PVID on an access port will cause VLAN 1
to be assigned as the PVID for the access port. Deleting the VLAN assigned as
the native VLAN for a trunk port will cause the trunk port to discard
untagged frames received on the port. Creating a VLAN adds it to the allowed
list for all trunk ports except those where it is specifically excluded. Ports and
port channels can be configured with VLANs that do not exist. They will not
forward traffic on nonexisting VLANs.
Example
The following example shows how to create (add) VLAN IDs 22, 23, and 56.
console(config)#vlan 22,23,56
console(config-vlan)#
Layer 2 Switching Commands
824

Advertisement

Table of Contents
loading

This manual is also suitable for:

N1500N3100-onN4000N2100-onN2000N3000

Table of Contents