Switchport Forbidden Vlan - Cisco 300 Series Cli Manual

Small business 300 series managed switches command line interface guide release 1.3
Hide thumbs Also See for 300 Series:
Table of Contents

Advertisement

Virtual Local Area Network (VLAN) Commands
78-21075-01 Command Line Interface Reference Guide
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 gi 1 from being added to the default VLAN.
switchxxxxxx(config)
switchxxxxxx(config-if)

32.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.
Syntax
switchport forbidden vlan {add
no switchport forbidden vlan {add
Parameters
vlan-list
add
— Specifies a list of VLAN IDs to add. Separate
nonconsecutive VLAN IDs with a comma and no spaces; use a hyphen
designate a range of IDs.
vlan-list
remove
nonconsecutive VLAN IDs with a comma and no spaces; use a hyphen
designate a range of IDs.
Default Configuration
All VLANs are allowed.
Command Mode
Interface Configuration (Ethernet, Port-channel) mode
#interface gi1
# switchport forbidden default-vlan
vlan-list
| remove
vlan-list
— Specifies a list of VLAN IDs to remove. Separate
vlan-list
}
vlan-list
| remove
}
32
513

Advertisement

Table of Contents
loading

Table of Contents