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
Command
show vlan
show interfaces
status vlan
show interfaces
switchport
show vlan
This command shows VLAN information.
Syntax
show vlan [id vlan-id | name vlan-name | private-vlan private-vlan-type]
• id - Keyword to be followed by the VLAN ID.
• name - Keyword to be followed by the VLAN name.
• private-vlan - For an explanation of this command see "show vlan
private-vlan" on page 4-214
Default Setting
Shows all VLANs.
Table 4-54 Show VLAN Commands
Function
Shows VLAN information
Displays status for the specified VLAN
interface
Displays the administrative and operational
status of an interface
- vlan-id - ID of the configured VLAN. (Range: 1-4093, no
leading zeroes)
- vlan-name - ASCII string from 1 to 32 characters.
- private-vlan-type - Indicates the private vlan type. (Options:
Community, Isolated, Primary)
VLAN C
OMMANDS
Mode Page
NE,
4-205
PE
NE,
4-151
PE
NE,
4-154
PE
4-205
Need help?
Do you have a question about the SMC TigerStack IV SMC6224M and is the answer not in the manual?
Questions and answers