Displaying VLAN Information
The following example shows how VLANs are displayed in alphanumeric order.
device# show run ... vlan 2 by port ... vlan 10 by port ... vlan 100 by port ...
The following example shows how to display system-wide VLAN information.
Use the show vlan command to display VLAN information for all the VLANs
configured on the device.
device# show vlan 10
Total PORT-VLAN entries: 6
Maximum PORT-VLAN entries: 1024
PORT-VLAN 10, Name [None], Priority level0, On
Untagged Ports: None
Tagged Ports: (U1/M1) 48
Tagged Ports: (U3/M1) 48
Mac-Vlan Ports: None
Monitoring: Disabled
The following example shows how to display global VLAN information.
device# show vlan brief System-max vlan Params: Max(4095) Default(1024) Current(3210) Default vlan Id :1 Total Number of Vlan Configured :5 VLANs Configured :1 to 4 10
The following example shows how to display VLAN information for specific ports.
device# show vlan ethernet 1/7/1 Total PORT-VLAN entries: 3 Maximum PORT-VLAN entries: 8 legend: [S=Slot] PORT-VLAN 100, Name [None], Priority level0, Spanning tree Off Untagged Ports: (S7) 1 2 3 4 Tagged Ports: None
The following example shows how to display a port VLAN membership for a specific port on the device.
device# show vlan brief ethernet 1/1/5 Port 1/1/5 is a member of 3 VLANs VLANs 5 101 4094 Untagged VLAN : 1 Tagged VLANs : 5 101 4094
The following example shows a port's implicit dual-mode VLAN membership where the port is untagged in any of the VLAN.
device# show interfaces ethernet 7 GigabitEthernet7 is down, line protocol is down Port down for 2 days 1 hour 40 minutes 5 seconds Hardware is GigabitEthernet, address is 0000.00a8.4706 (bia 0000.00a8.4706) Configured speed auto, actual unknown, configured duplex fdx, actual unknown Configured mdi mode AUTO, actual unknown Untagged member of L2 VLAN 3999, port state is BLOCKING
The following example shows a port's implicit dual-mode VLAN membership where the port is tagged (explicitly removed from default VLAN).
device# show interfaces ethernet 1/7/1 GigabitEthernet1/7/1 is down, line protocol is down Port down for 2 days 1 hour 40 minutes 5 seconds Hardware is GigabitEthernet, address is 0000.00a8.4706 (bia 0000.00a8.4706) Configured speed auto, actual unknown, configured duplex fdx, actual unknown Configured mdi mode AUTO, actual unknown Tagged member of 1 L2 VLANs, port state is BLOCKING
The following example shows ay a port's implicit dual-mode VLAN membership where the port is tagged in some of the VLANs and untagged in any VLAN (implicit dual-mode).
device# show interfaces ethernet 1/7/1 GigabitEthernet1/7/1 is down, line protocol is down Port down for 2 days 1 hour 40 minutes 5 seconds Hardware is GigabitEthernet, address is 0000.00a8.4706 (bia 0000.00a8.4706) Configured speed auto, actual unknown, configured duplex fdx, actual unknown Configured mdi mode AUTO, actual unknown Tagged member of 2 L2 VLANs, untagged in VLAN 3999, port state is BLOCKING
The following example shows how to display port default VLAN IDs (PVIDs).
device# show interfaces brief Port Link State Dupl Speed Trunk Tag Pvid Pri MAC Name 1 Up Forward Full 1G None No 1 0 0000.00a8.4700 a12345678901 2 Up Forward Full 1G None Yes 1 0 0000.00a8.4701 3 Up Forward Full 1G None Yes NA 0 0000.00a8.4702 4 Up Forward Full 1G None Yes NA 0 0000.00a8.4703 5 Up Forward Full 1G None No 2 0 0000.00a8.4704 6 Down None None None None Yes NA 0 0000.00a8.4705 7 Down None None None None Yes 4 0 0000.00a8.4706 8 Down None None None None Yes 4 0 0000.00a8.4707 9 Down None None None None Yes NA 0 0000.00a8.4708 10 Down None None None None Yes NA 0 0000.00a8.4709
The output of the show interfaces brief command lists
the port default VLAN IDs (PVIDs) for each port. PVIDs are displayed as follows:
- For untagged ports, the PVID is the VLAN ID number.
- For an interface configured as untagged member in any VLAN, the PVID will be that VLAN ID. If the interface is explicitly removed from default VLAN (that is, configured as purely tagged), then PVID is not applicable.
The following example shows a PVLAN configuration, including the primary VLAN and its associated secondary VLANs as well as their member ports, promiscuous ports, and ISL ports.
device# show pvlan PVLAN: primary VLAN 100 Port 1/1/4 1/1/10 1/1/11 Community VLAN 102 Port 1/1/1 1/1/2 1/1/10 1/1/11 Promiscuous Port: 1/1/4 Inter switch link Port: 1/1/10 1/1/11 BpduGuard enabled Port: 1/1/1 1/1/2 Isolate VLAN 101 Port 1/1/3 1/1/10 1/1/11 Promiscuous Port: 1/1/4 Inter switch link Port: 1/1/10 1/1/11 BpduGuard enabled Port: 1/1/1 1/1/2
TECHNICAL QUESTION - Please confirm with Sys Eng that this syntax is correct.
Our Command Ref Guide reflects the use of the full x/y/z parameter structure (not a single character)