VLAN Commands
switchport forbidden default-vlan
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x
511
41
switchxxxxxx(config-if)#
switchport dot1q-tunnel vlan 2
switchport forbidden default-vlan
To forbid a port from being added to the default VLAN, use the switchport
forbidden default-vlan Interface Configuration mode command.
To revert to its default setting, use the no form of this command.
Syntax
switchport forbidden default-vlan
no switchport forbidden default-vlan
Parameters
N/A
Default Configuration
Membership in the default VLAN is allowed.
Command Mode
Interface and Interface Range Configuration (Ethernet, port channel) modes
User Guidelines
The command may be used at any time regardless of whether the port belongs to
the default VLAN.
The no command does not add the port to the default VLAN. It only defines an
interface as permitted to be a member of the default VLAN, and the port will be
added only when the conditions are met.
Example
The following example forbids gi1 from being added to the default VLAN:
switchxxxxxx(config)#
interface gi1
switchxxxxxx(config-if)#
switchport forbidden default-vlan