Virtual Local Area Network (VLAN) Commands
1075 OL-32830-01 Command Line Interface Reference Guide
56
Syntax
switchport forbidden vlan {add
vlan-list
| remove
vlan-list
}
Parameters
• add
vlan-list
—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.
• remove
vlan-list
—Specifies a list of VLAN IDs to remove. Separate
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 (Ethernet, Port Channel) Configuration mode
Example
The following example forbids adding VLAN IDs 234 to 256 to gi14.
switchxxxxxx(config)#
interface
gi1
4
switchxxxxxx(config-if)#
switchport mode trunk
switchxxxxxx(config-if)#
switchport forbidden vlan add
234-256
56.26 switchport default-vlan tagged
Use the switchport default-vlan tagged Interface Configuration command to
configure the port as a tagged port in the default VLAN. Use the no form of the
command to return the port to an untagged port.
Syntax
switchport default-vlan tagged
no switchport default-vlan tagged
Parameters
N/A