![D-Link DXS-3250 - xStack Switch - Stackable Cli Manual Download Page 421](http://html1.mh-extra.com/html/d-link/dxs-3250-xstack-switch-stackable/dxs-3250-xstack-switch-stackable_cli-manual_4139512421.webp)
D-Link CLI Reference Guide
Page 420
switchport forbidden vlan
The
switchport forbidden vlan
Interface Configuration mode command forbids adding specific VLANs to a port.
To return to the default configuration, use the
remove
parameter for this command.
Syntax
switchport forbidden vlan
{
add vlan-list
|
remove vlan-list
}
Parameters
•
add
vlan-list
— Specifies the list of VLAN IDs to be added. Separate nonconsecutive VLAN IDs with a comma
and no spaces. A hyphen designates a range of IDs.
•
remove vlan-list
— Specifies the list of VLAN IDs to be removed. Separate 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.
Example
The following example forbids adding VLAN IDs 234 to 256 to Ethernet port 1/16.
Console(config)#
interface ethernet
1/16
Console(config-if)#
switchport forbidden vlan add
234-256
Summary of Contents for DXS-3250 - xStack Switch - Stackable
Page 12: ...Page 11 ...
Page 46: ...ACL Commands Page 45 ...
Page 68: ...Address Table Commands Page 67 ...
Page 124: ...Ethernet Configuration Commands Page 123 ...
Page 134: ...GVRP Commands Page 133 ...
Page 144: ...IGMP Snooping Commands Page 143 ...
Page 158: ...IP Addressing Commands Page 157 Console config ip helper address 172 16 9 9 49 53 ...
Page 166: ...IP Addressing Commands Page 165 ...
Page 186: ...Line Commands Page 185 ...
Page 194: ...Management ACL Commands Page 193 ...
Page 200: ...PHY Diagnostics Commands Page 199 ...
Page 208: ...Port Monitor Commands Page 207 ...
Page 216: ...Power over Ethernet Commands Page 215 ...
Page 272: ...RMON Commands Page 271 ...
Page 334: ...Spanning Tree Commands Page 333 ...
Page 428: ...VLAN Commands Page 427 ...
Page 466: ...802 1x Commands Page 465 ...