14.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 Function
Mode
Page
Edit VLAN Groups
vlan database
Enters VLAN database mode to add,
GC
3-93
change, and delete VLANs
vlan
Configures a VLAN, including VID,
VC
3-93
name and state
Configure VLAN Interfaces
interface vlan
Enters interface configuration mode for
IC
3-95
specified VLAN
switchport mode
Configures VLAN membership mode
IC
3-95
for an interface
switchport
Configures frame types to be accepted by IC
3-96
acceptable-frame-types an interface
swicthport
Enables ingress filtering on an interface
IC
3-97
ingress-filtering
switchport native vlan Configures the PVID (native VLAN) of
IC
3-98
an interface
switchport allowed vlan Configures the VLANs associated with
IC
3-99
an interface
switchport gvrp
Enables GVRP for an interface
IC
3-102
switchport forbidden
Configures forbidden VLANs for an
IC
3-100
vlan
interface
Display VLAN Information
show vlan
Shows VLAN information
NE,
3-101
PE
202