32
502
displayed ("An interface cannot become a member of a forbidden VLAN. This
message will only be displayed once.") and the command continues to execute if
there are more VLANs in the VLAN list. See the example in
vlan.
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
switchxxxxxx(config)#
switchxxxxxx(config-if)#
Port 1: Port is Trunk in VLAN 2.
switchxxxxxx(config-if)#
switchxxxxxx(config-if)#
switchxxxxxx(config-if)#
Example 2—The following example sets packets on port as untagged on ingress
and untagged on egress:
switchxxxxxx(config)#
switchxxxxxx(config-if)#
switchxxxxxx(config-if)#
switchxxxxxx(config-if)#
Example 3—The following example sets packets on port as tagged on ingress and
tagged on egress:
switchxxxxxx(config)#
switchxxxxxx(config-if)#
switchxxxxxx(config-if)#
switchxxxxxx(config-if)#
Virtual Local Area Network (VLAN) Commands
151
interface
switchport trunk native vlan
switchport trunk allowed vlan remove
switchport trunk native vlan
interface
151
switchport mode trunk
switchport trunk native vlan
151
interface
switchport mode trunk
switchport trunk allowed vlan add
78-21075-01 Command Line Interface Reference Guide
switchport access
2
2
2
2
2