![Cisco Small Business 300 1.1 Series Administration Manual Download Page 425](http://html.mh-extra.com/html/cisco/small-business-300-1-1-series/small-business-300-1-1-series_administration-manual_2609294425.webp)
Virtual Local Area Network (VLAN) Commands
78-20269-01 Command Line Interface Reference Guide
426
30
30.23 switchport forbidden default-vlan
Use the switchport forbidden default-vlan Interface Configuration command to
forbid a port from being added to the default VLAN. Use the no form of this
command to revert to default.
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)
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 conditions are met.
Example
The following example forbids the port gi1 from being added to the default VLAN.
console(config)
#
interface
gi1
console(config-if)
#
switchport forbidden default-vlan
30.24 switchport forbidden vlan
The switchport forbidden vlan Interface Configuration (Ethernet, Port-channel)
mode command forbids adding or removing specific VLANs to or from a port. To
restore the default configuration, use the no form of this command.