
Virtual Local Area Network (VLAN) Commands
78-20269-01 Command Line Interface Reference Guide
416
30
Examples:
Example 1 - The following example:
•
Defines VLAN 2 as native VLAN for port 1
•
Removes VLAN 2 from port 1 and then sets it as the native VLAN
console(config)#
interface
gi1
console(config-if)#
switchport trunk native vlan
2
Port 1: Port is Trunk in VLAN 2.
console(config-if)#
switchport trunk allowed vlan remove
2
console(config-if)#
switchport trunk native vlan
2
console(config-if)#
Example 2 - The following example sets packets on port as untagged on ingress
and untagged on egress:
console(config)#
interface
gi1
console(config-if)#
switchport mode trunk
console(config-if)#
switchport trunk native vlan
2
console(config-if)#
Example 3 - The following example sets packets on port as tagged on ingress and
tagged on egress:
console(config)#
interface
gi1
console(config-if)#
switchport mode trunk
console(config-if)#
switchport trunk allowed vlan add
2
console(config-if)#
30.15 switchport general allowed vlan
General ports can receive tagged or untagged packets. Use the switchport
general allowed vlan Interface Configuration mode command to add/remove