Command Line Interface
4-172
4
Example
VLAN Commands A VLAN is a group of ports that can be located anywhere in the network, but
communicate as though they belong to the same physical segment. This section
describes commands used to create VLAN groups, add port members, specify how
VLAN tagging is used, and enable automatic VLAN registration for the selected
interface.
Editing VLAN Groups
vlan database
This command enters VLAN database mode. All commands in this mode will take
effect immediately.
Default Setting
None
Console#show spanning-tree mst configuration
Mstp Configuration Information
--------------------------------------------------------------
Configuration name:00 00 a3 42 00 80
Revision level:0
Instance Vlans
--------------------------------------------------------------
0 1-4094
Console#
Table 4-53 VLAN Commands
Command Groups Function Page
Editing VLAN Groups Sets up VLAN groups, including name, VID and state 4-172
Configuring VLAN
Interfaces
Configures VLAN interface parameters, including ingress and egress
tagging mode, ingress filtering, PVID, and GVRP
4-174
Displaying VLAN
Information
Displays VLAN groups, status, port members, and MAC addresses 4-180
Configuring Private VLANs Configures private VLANs, including uplink and downlink ports 4-181
Configuring Protocol VLANs Configures protocol-based VLANs based on frame type and protocol 4-182
Table 4-54 Editing VLAN Groups
Command Function Mode Page
vlan database Enters VLAN database mode to add, change, and delete
VLANs
GC 4-172
vlan Configures a VLAN, including VID, name and state VC 4-173