1. Use “Interface” command to configure a group of ports’ 802.1q/Port-basedVLAN
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’ Access-
VLAN ID (PVID).
Switch(config-if-PORT-PORT)#
vlan dot1q-vlan trunk-vlan [1-
4094]
Specify the selected ports’ Trunk-
VLAN ID (VID).
Switch(config-if-PORT-PORT)#
vlan dot1q-vlan mode access
Set the selected ports to the access
mode (untagged).
Switch(config-if-PORT-PORT)#
vlan dot1q-vlan mode trunk
Set the selected ports to the trunk
mode (tagged).
Switch(config-if-PORT-PORT)#
vlan dot1q-vlan mode trunk native
Enable native VLAN for untagged
traffic on the selected port. (Tagged
and untagged)
Note : When you assign a default
Access-VLAN to the trunk-native
port, all untagged traffic travels on
the default Access-VLAN for the
trunk-native port, and all untagged
traffic is assumed to belong to this
Access-VLAN.
Switch(config-if-PORT-PORT)#
vlan dot1q-vlan mode dot1q-
tunnel
Set the selected ports to dot1q-tunnel
(Q-in-Q) mode. (Tagged and
untagged)
Switch(config-if-PORT-PORT)#
vlan port-based [name]
Set the selected ports to a specified
port-based VLAN.
Note :
Need to create a port-based VLAN
group under the VLAN global
configuration mode before joining
it.
Switch(config-if-PORT-PORT)#
no vlan dot1q-vlan access-vlan
Reset the selected ports’ PVID back to
the default setting.
Switch(config-if-PORT-PORT)#
no vlan dot1q-vlan mode
Reset the selected ports’ 802.1q
VLAN mode back to the default setting
(Access Mode).
Switch(config-if-PORT-PORT)#
no vlan dot1q-vlan trunk-vlan [1-
4094]
Remove the specified trunk VLAN ID
from the selected ports.
Switch(config-if-PORT-PORT)#
no vlan port-based [name]
Remove the selected ports from the
specified port-based VLAN.