17.
Virtual LANs (VLANs)
MN700004 Rev 01
199
In port-based VLAN classification within a switch, the VLAN ID associated with an untagged
or priority-tagged frame (i.e., a frame without a tag header, or with a tag header that carries
the null VLAN ID) is determined, based on the frame’s port of arrival into the switch. This
classification mechanism requires the association of a specific VLAN ID, the
Port VLAN
Identifier
, or
PVID
, with each of the switch’s ports.
The PVID for a given port provides the VID for untagged and priority-tagged frames received
through that port. The PVID for each port contains a valid VID value, not the value of the null
VLAN ID.
If no PVID value has been explicitly configured for a Port, the PVID assumes the value of the
default PVID=1.
You can create, delete and display VLANs in the global VLAN Configuration mode. You can
configure a specific VLAN in the specific global VLAN Configuration mode. To access a
specific VLAN configuration mode, use the
config
command in the global VLAN
Configuration mode.
Table 17-2 summarizes the commands that are available in the global VLAN Configuration
mode.
Table 17-2 Commands in Global VLAN Configuration Mode
C o m m a n d D e s c r i p t i o n
create
Creates a VLAN with specified name and tag number.
delete
Deletes the VLAN specified by its name.
delete-id
Deletes the VLAN specified by its VLAN id.
show
Shows information regarding all existing VLANs.
create range
Creates VLANs by sequence
delete range
Deletes VLANs by sequence
config
Accesses a specific VLAN configuration mode.
management
Controls access to switch management on specified VLANs.
Table 17-3 summarizes the commands that are available in a specific VLAN Configuration
mode.
Table 17-3 Commands in Specific VLAN Configuration Mode
C o m m a n d D e s c r i p t i o n
add ports
Adds ports to VLAN
add ports default
Sets PVID of specified port(s)
remove ports
Removes ports from VLAN
remove ports
default
Removes PVID of specified port(s)
config
Switches Configuration mode to another VLAN.
show
Shows all VLAN configurations