Specify whether the management
port is in trunk or access mode.
“trunk” mode: Set the selected
ports to tagged.
“access” mode: Set the selected
ports to untagged.
Switch(config)# vlan port-based
[name]
Specify a name for this port-based
VLAN.
Switch(config)# no vlan dot1q-
vlan [1-4094]
Delete the specified VLAN.
Switch(config-vlan-VID)# no
name
Remove the descriptive name for
the specified VLAN.
Switch(config)# no vlan port-
based [name]
Delete the specified port-based
VLAN.
Switch(config)# show vlan
Display global VLAN information
including 802.1q VLAN
Enable/Disable status and CPU
VLAN ID.
Switch(config)# show vlan dot1q-
vlan
Switch(config-vlan-VID)# show
Show the selected VLAN‟s
membership.
Switch(config)# show vlan port-
based
Show port-based VLAN table.
Switch(config)# show vlan
interface [port_list]
Show the selected ports‟ VLAN
assignment and VLAN mode.
Switch(config-vlan-VID)# exit
Return to Global configuration
mode.
Dot1q & Port-based VLAN example
Switch(config)# vlan dot1q-vlan 100
Create a new dot1q VLAN 100.
Switch(config)# vlan port-based MKT_Office
Create a port-based VLAN
“MKT_Office”.
Switch(config)# vlan management-vlan 1
management-port 1-3 mode access
Set VLAN 1 to management VLAN
(untagged) and port 1~3 to
management ports.
2. Use “Interface” command to configure a group of ports’ VLAN settings.
Switch(config)# interface
[port_list]
Enter several discontinuous port
numbers separated by commas or a
range of ports with a hyphen. For
example:1,3 or 2-4
Switch(config-if-PORT-PORT)#
vlan dot1q-vlan access-vlan [1-
4094]
Specify the selected ports‟ VLAN ID
(PVID).