VLAN COMMANDS

Example

The following example shows how to prevent port 1 from being added to VLAN 3:

Console(config)#interface ethernet 1/1

Console(config-if)#switchport forbidden vlan add 3

Console(config-if)#

Displaying VLAN Information

Table 4-54 Show VLAN Commands

Command

Function

Mode

Page

show vlan

Shows VLAN information

NE,

4-205

 

 

PE

 

 

 

 

 

show interfaces

Displays status for the specified VLAN

NE,

4-151

status vlan

interface

PE

 

 

 

 

 

show interfaces

Displays the administrative and operational

NE,

4-154

switchport

status of an interface

PE

 

 

 

 

 

show vlan

This command shows VLAN information.

Syntax

show vlan [id vlan-id name vlan-name private-vlanprivate-vlan-type]

id - Keyword to be followed by the VLAN ID.

-vlan-id- ID of the configured VLAN. (Range: 1-4093, no leading zeroes)

name - Keyword to be followed by the VLAN name.

-vlan-name- ASCII string from 1 to 32 characters.

private-vlan- For an explanation of this command see “show vlan private-vlan” on page 4-214

-private-vlan-type- Indicates the private vlan type. (Options: Community, Isolated, Primary)

Default Setting

Shows all VLANs.

4-205

Page 453
Image 453
SMC Networks SMC6224M manual Displaying Vlan Information, 205, Show vlan, Show Vlan Commands