80
After created the VLAN, the status of this VLAN will remain in Unused status until you add
ports to the VLAN.
4.5.5
CLI Commands of the VLAN
Command Lines of the VLAN port configuration, VLAN configuration and VLAN table
display
Feature
Command Line
VLAN Port Configuration
Port Interface
Configuration
Switch# con t
Switch(config)# interface fa5
Switch(config-if)#
VLAN Port PVID
Switch(config-if)# switchport trunk native vlan 2
Set port default vlan id to 2 success
QinQ Tunnel Mode
802.1Q Tunnel =
access
802.1Q Tunnel Uplink =
uplink
Switch(config-if)# switchport dot1q-tunnel
mode Set the interface as an IEEE 802.1Q tunnel mode
Switch(config-if)# switchport dot1q-tunnel mode
access Set the interface as an access port of IEEE
802.1Q tunnel mode
uplink Set the interface as an uplink port of IEEE 802.1Q
tunnel mode
Port Accept Frame
Type
Switch(config)# inter fa1
Switch(config-if)# acceptable frame type all
any kind of frame type is accepted!
Switch(config-if)# acceptable frame type vlantaggedonly
only vlan-tag frame is accepted!
Egress rule
– Untagged
(for VLAN 2)
Switch(config-if)# switchport access vlan 2
switchport access vlan add success
Egress rule
– Tagged
(for VLAN 2)
Switch(config-if)# switchport trunk allowed vlan add 2
Display
– Port Ingress
Rule (PVID, Ingress
Filtering, Acceptable
Frame Type)
Switch# show interface fa1
Interface fastethernet1
Description : N/A
Administrative Status : Enable
Operating Status : Not Connected