Chapter 19
| VLAN Commands
Displaying VLAN Information
– 467 –
Example
The following example shows how to set the PVID for port 1 to VLAN 3:
Console(config)#interface ethernet 1/1
Console(config-if)#switchport native vlan 3
Console(config-if)#
Displaying VLAN Information
This section describes commands used to display VLAN information.
show vlan
This command shows 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)
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#show vlan id 1
VLAN ID: 1
Type: Static
Name: DefaultVlan
Status: Active
Ports/Port Channels : Eth1/ 1(S) Eth1/ 2(S) Eth1/ 3(S) Eth1/ 4(S) Eth1/ 5(S)
Eth1/ 6(S) Eth1/ 7(S) Eth1/ 8(S) Eth1/ 9(S) Eth1/10(S)
Table 96: Commands for Displaying VLAN Information
Command Function Mode
show interfaces status vlan Displays status for the specified VLAN interface NE, PE
show interfaces switchport Displays the administrative and operational status of an
interface
NE, PE
show vlan Shows VLAN information NE, PE