VLAN Commands
switchport forbidden vlan
switchport forbidden vlan
SPS208G/SPS224G4/SPS2024 Command Line Interface Reference Guide
The switchport forbidden vlan Interface Configuration mode command forbids
adding specific VLANs to a port. Use the remove parameter for this command to
restore the default configuration.
Syntax
switchport forbidden vlan {add
Parameters
•
vlan-list —
add
nonconsecutive VLAN IDs with a comma and no spaces. A hyphen
designates a range of IDs.
•
remove
vlan-list —
nonconsecutive VLAN IDs with a comma and no spaces. A hyphen
designates a range of IDs.
Default Configuration
All VLANs are allowed.
Command Mode
Interface Configuration (Ethernet, port-channel) mode
User Guidelines
This command can be used to prevent GVRP from automatically making the
specified VLANs active on the selected ports.
vlan-list
| remove
Specifies the list of VLAN IDs to be added. Separate
Specifies the list of VLAN IDs to be removed. Separate
vlan-list
}
34
499