![background image](http://html1.mh-extra.com/html/smc-networks/6724al2/6724al2_management-manual_1300175318.webp)
C
OMMAND
L
INE
I
NTERFACE
3-130
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.
Default Setting
Shows all VLANs.
Command Mode
Normal Exec, Privileged Exec
Example
The following example shows how to display information for VLAN 1:
Console(config)#interface ethernet 1/1
Console(config-if)#switchport forbidden vlan add 3
Console(config-if)#
Console#show vlan id 1
VLAN Type Name Status Ports/Channel groups
---- ------- ----------- ------ ------------------------------------
1 Static DefaultVlan Active Eth1/1 Eth1/2 Eth1/3 Eth1/4 Eth1/5
Eth1/6 Eth1/7 Eth1/8 Eth1/9 Eth1/10
Eth1/11 Eth1/12 Eth1/13 Eth1/14 Eth1/15
Eth1/16 Eth1/17 Eth1/18 Eth1/19 Eth1/20
Eth1/21 Eth1/22 Eth1/23 Eth1/24
Console#
Summary of Contents for 6724AL2
Page 2: ......
Page 404: ...COMMAND LINE INTERFACE 3 216 ...
Page 406: ...TROUBLESHOOTING A 2 ...
Page 418: ...GLOSSARY Glossary 8 ...
Page 422: ...INDEX Index 4 ...
Page 423: ......