VLAN Commands
switchport mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x
517
41
switchxxxxxx(config-if)#
switchport general allowed vlan add 2 untagged
Example 4—The following example configures VLAN on gi21 as untagged on
input and tagged on output:
switchxxxxxx(config)#
interface gi21
switchxxxxxx(config-if)#
switchport mode general
switchxxxxxx(config-if)#
switchport general pvid 2
switchxxxxxx(config-if)#
switchport general allowed vlan add 2 tagged
Example 5—The following example configures VLAN on gi11 as tagged on input
and tagged on output:
switchxxxxxx(config)#
interface gi11
switchxxxxxx(config-if)#
switchport mode general
switchxxxxxx(config-if)#
switchport general allowed vlan add 2 tagged
switchxxxxxx(config-if)#
Example 6—The following example configures VLAN on gi23 as tagged on input
and untagged on output:
switchxxxxxx(config)#
interface gi23
switchxxxxxx(config-if)#
switchport mode general
switchxxxxxx(config-if)#
switchport general allowed vlan add 2 tagged
switchxxxxxx(config-if)#
switchport mode
To configure the VLAN membership mode (access, trunk, general, or dot1q-tunnel)
for a port, use the switchport mode Interface Configuration mode command.
To revert to its default setting, use the no form of this command.
Syntax
switchport mode {access | trunk | general | dot1q-tunnel}
no switchport mode