67
PVID is 20)
PortX receives
Untagged
packets only
Trunk-VLAN = 10,11,12
Access-VLAN = 20
Mode = Trunk
PortX is a
Trunk Port
PortX
’s
VID
is 10,11 and 12
PortX
’s
PVID
is ignored
PortX sends and receives
Tagged
packets VID 10,11 and 12
Trunk-VLAN = 10,11,12
Access-VLAN = 20
Mode = Trunk-native
PortX is a
Trunk-native Port
PortX
’s
VID
is 10,11 and 12
PortX
’s
PVID
is 20
PortX sends and receives
Tagged
packets VID 10,11 and 12
PortX receives
Untagged
packets and add PVID 20
1. Use
“Interface” command to configure a group of ports’ 802.1q VLAN settings.
VLAN & Interface command
Parameter Description
Switch(config)# interface
[port_list]
[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]
[1-4094]
Specify the selected port
s’ Access-
VLAN ID (PVID).
Switch(config-if-PORT-PORT)#
vlan dot1q-vlan trunk-vlan [1-
4094]
[1-4094]
Specify the selected port
s’ Trunk-
VLAN ID (VID).
Switch(config-if-PORT-PORT)#
vlan dot1q-vlan mode access
Set the selected ports to access mode
(untagged).
Switch(config-if-PORT-PORT)#
vlan dot1q-vlan mode trunk
Set the selected ports to trunk mode
(tagged).
Switch(config-if-PORT-PORT)#
vlan dot1q-vlan mode trunk native
Set the selected ports to trunk-native
mode. (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 port-based [name]
[name]
Set the selected ports to a specified
port-based VLAN.
Note :
Need to create a port-based VLAN
group under VLAN global
configuration mode before joining
it.
No command
Switch(config-if-PORT-PORT)#
no vlan dot1q-vlan access-vlan
Set the selected ports
’ PVID to the
default setting.
Switch(config-if-PORT-PORT)#
no vlan dot1q-vlan mode
Remove VLAN dot1q mode.
Switch(config-if-PORT-PORT)#
no vlan dot1q-vlan mode trunk
Disable native VLAN for untagged
traffic.