C
OMMAND

L

INE

I

NTERFACE

3-140

vlan-list - Separate nonconsecutive VLAN identifiers with a
comma and no spaces; use a hyphen to designate a range of
IDs. Do not enter leading zeros. (Range: 1-4094)
Default Setting
No VLANs are included in the forbidden list.
Command Mode
Interface Configuration (Ethernet, Port Channel)
Command Usage
This command prevents a VLAN from being automatically
added to the specified interface via GVRP.
If a VLAN has been added to the set of allowed VLANs for an
interface, then you cannot add it to the set of forbidden VLANs
for that same interface.
Example
The following example shows how to prevent port 1 from being
added to VLAN 3:

show vlan

Use this command to show VLAN information.
Syntax
show vlan [id vlan-id | name vlan-name]
id - Keyword to be followed by the VLAN ID.
-vlan-id - ID of the configured VLAN. (Range: 1-4094, no
leading zeroes)
name - Keyword to be followed by the VLAN name.
-vlan-name - ASCII string from 1 to 32 characters.
Console(config)#interface ethernet 1/1
Console(config-if)#switchport forbidden vlan add 3
Console(config-if)#
b_mgmt.book Page 140 Tuesday, July 8, 2003 5:24 PM