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.
Command Groups
Editing VLAN Groups
Configuring VLAN
Interfaces
Displaying VLAN
Information
Configuring Private VLANs
Editing VLAN Groups
Command
vlan database
vlan
vlan database
This command enters VLAN database mode. All commands in this mode will take
effect immediately.
Default Setting
None
Command Mode
Global Configuration
Command Usage
• 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 show vlan command.
• Use the interface vlan command mode to define the port membership 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 show running-config command.
Sets up VLAN groups, including name, VID and state
Configures VLAN interface parameters, including ingress and egress
tagging mode, ingress filtering, and PVID
Displays VLAN groups, status, port members, and MAC addresses
Configures private VLANs, including uplink and downlink ports
Function
Enters VLAN database mode to add, change, and delete
VLANs
Configures a VLAN, including VID, name and state
Function
VLAN Commands
Page
4-137
4-139
4-143
4-144
Mode Page
GC
4-137
VC
4-138
4-137