Switchport Forbidden Default-Vlan - Cisco 220 Series Smart Plus Reference Manual

Smart plus switches command line interface
Hide thumbs Also See for 220 Series Smart Plus:
Table of Contents

Advertisement

VLAN Commands

switchport forbidden default-vlan

switchport forbidden default-vlan
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x
switchxxxxxx(config-if)# switchport dot1q-tunnel vlan 2
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 gi 1 from being added to the default VLAN:
switchxxxxxx(config)# interface gi1
switchxxxxxx(config-if)# switchport forbidden default-vlan
41
511

Advertisement

Table of Contents
loading

Table of Contents