VLAN Commands
switchport default-vlan tagged
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x
508
41
Default Configuration
The interface belongs to the default VLAN.
Command Mode
Interface Configuration (Ethernet, port channel) mode
User Guidelines
The command automatically removes the port from its previous VLAN and adds it
to a new VLAN.
Example
The following example sets gi1 as an access port and assigns it to VLAN 2 (and
removes it from its previous VLAN):
switchxxxxxx(config)#
interface gi2
switchxxxxxx(config-if)#
switchport mode access
switchxxxxxx(config-if)#
switchport access vlan 2
switchport default-vlan tagged
To configure the port as a tagged port in the default VLAN, use the switchport
default-vlan tagged Interface Configuration mode command.
To return the port to an untagged port, use the no form of this command.
Syntax
switchport default-vlan tagged
no switchport default-vlan tagged
Parameters
N/A
Default Configuration
If the port is a member of the default VLAN, by default, it is a member as an
untagged port.