Chapter 36: VLAN Commands
Editing VLAN Groups
vlan
D
S
EFAULT
ETTING
None
C
M
OMMAND
ODE
Global Configuration
C
U
OMMAND
SAGE
Use the VLAN database command mode to add, change, and delete
•
VLANs. After finishing configuration changes, you can display the VLAN
settings by entering the
•
Use the
interface vlan
mode and add or remove ports from a VLAN. The results of these
commands are written to the running-configuration file, and you can
display this file by entering the
E
XAMPLE
Console(config)#vlan database
Console(config-vlan)#
R
C
ELATED
OMMANDS
show vlan (1093)
This command configures a VLAN. Use the no form to restore the default
settings or delete a VLAN.
S
YNTAX
vlan vlan-id [name vlan-name] media ethernet
[state {active | suspend}] [rspan]
no vlan vlan-id [name | state]
vlan-id - VLAN ID, specified as a single number, a range of
consecutive numbers separated by a hyphen, or multiple numbers
separated by commas. (Range: 1-4094)
name - Keyword to be followed by the VLAN name.
vlan-name - ASCII string from 1 to 32 characters.
media ethernet - Ethernet media type.
state - Keyword to be followed by the VLAN state.
active - VLAN is operational.
suspend - VLAN is suspended. Suspended VLANs do not pass
packets.
rspan - Keyword to create a VLAN used for mirroring traffic
from remote switches. The VLAN used for RSPAN cannot include
VLAN 1 (the switch's default VLAN). Nor should it include VLAN
4093 (which is used for switch clustering). Configuring VLAN
4093 for other purposes may cause problems in the Clustering
– 1085 –
show vlan
command.
command mode to define the port membership
show running-config
command.