Configuring 802.1Q VLAN
The following example shows how to add the port 1/0/5 to VLAN 2, and specify its egress
rule as tagged:
Switch#configure
Switch(config)#interface gigabitEthernet 1/0/5
Switch(config-if)#switchport general allowed vlan 2 tagged
Switch(config-if)#show interface switchport gigabitEthernet 1/0/5
Port Gi1/0/5:
PVID: 2
Acceptable frame type: All
Ingress Checking: Enable
Member in LAG: N/A
Link Type: General
Member in VLAN:
Vlan
Name
----
-----------
1
System-VLAN
2
RD
Switch(config-if)#end
Switch#copy running-config startup-config
Egress-rule
-----------
Untagged
Tagged
802.1Q VLAN Configuration
Configuration Guide
148