VLAN COMMANDS
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 | |
| change, and delete VLANs |
|
|
|
|
|
|
vlan | Configures a VLAN, including VID, | VC | |
| name and state |
|
|
|
|
|
|
Configure VLAN Interfaces |
|
|
|
|
|
|
|
interface vlan | Enters interface configuration mode for | IC | |
| specified VLAN |
|
|
|
|
|
|
switchport mode | Configures VLAN membership mode | IC | |
| for an interface |
|
|
|
|
|
|
switchport | Configures frame types to be accepted by | IC | |
an interface |
|
| |
|
|
|
|
swicthport | Enables ingress filtering on an interface | IC | |
|
|
| |
|
|
|
|
switchport native vlan | Configures the PVID (native VLAN) of | IC | |
| an interface |
|
|
|
|
|
|
switchport allowed vlan | Configures the VLANs associated with | IC | |
| an interface |
|
|
|
|
|
|
switchport gvrp | Enables GVRP for an interface | IC | |
|
|
|
|
switchport forbidden | Configures forbidden VLANs for an | IC | |
vlan | interface |
|
|
|
|
|
|