30.06.2015 Views

8.28 MB - Edge-Core

8.28 MB - Edge-Core

8.28 MB - Edge-Core

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

VLAN Commands<br />

4<br />

switchport forbidden vlan<br />

This command configures forbidden VLANs. Use the no form to remove the list of<br />

forbidden VLANs.<br />

Syntax<br />

switchport forbidden vlan {add vlan-list | remove vlan-list}<br />

no switchport forbidden vlan<br />

• add vlan-list - List of VLAN identifiers to add.<br />

• remove vlan-list - List of VLAN identifiers to remove.<br />

• vlan-list - Separate nonconsecutive VLAN identifiers with a comma and no<br />

spaces; use a hyphen to designate a range of IDs. Do not enter leading<br />

zeros. (Range: 1-4094).<br />

Default Setting<br />

No VLANs are included in the forbidden list.<br />

Command Mode<br />

Interface Configuration (Ethernet, Port Channel)<br />

Command Usage<br />

• This command prevents a VLAN from being automatically added to the<br />

specified interface via GVRP.<br />

• If a VLAN has been added to the set of allowed VLANs for an interface, then<br />

you cannot add it to the set of forbidden VLANs for that same interface.<br />

Example<br />

The following example shows how to prevent port 1 from being added to VLAN 3:<br />

Console(config)#interface ethernet 1/1<br />

Console(config-if)#switchport forbidden vlan add 3<br />

Console(config-if)#<br />

Displaying VLAN Information<br />

Table 4-54 Show VLAN Commands<br />

Command Function Mode Page<br />

show vlan Shows VLAN information NE, PE 4-154<br />

show interfaces status vlan Displays status for the specified VLAN interface NE, PE 4-112<br />

show interfaces switchport Displays the administrative and operational status of an<br />

interface<br />

NE, PE 4-114<br />

4-153

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!