Switchport Forbidden Vlan - D-Link xStack DWS-3200 Series Cli Manual

Layer 2+ stackable gigabit ethernet switches with optional xg uplinks
Hide thumbs Also See for xStack DWS-3200 Series:
Table of Contents

Advertisement

DXS/DWS-3200 series CLI Reference Guide

switchport forbidden vlan

The switchport forbidden vlan Interface Configuration mode command forbids adding specific VLANs to a port.
To restore 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.
Console(config)# interface ethernet 1
Console(config-if)# switchport mode trunk
Console(config-if)# switchport forbidden vlan add 234-256
Page 425

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xstack dxs-3200 series

Table of Contents