show vlans private-vlan
Syntax
show vlans [<VLAN-ID>] private-vlan
Description
Shows information about the configured PVLANs.
Command context
Required context:
config
Parameters
<VLAN-ID>
Specifies the ID of a primary VLAN. When this parameter is specified, the
show
command displays information about the specified PVLAN only.
Example of showing all PVLANs (private VLANS)
In the following example, the values in the VLAN type column describe the secondary VLANs.
switch(config)# show vlans private-vlan Configuration and Association – private VLANs: primary secondary VLAN Type ------- --------- --------- 300 301 isolated 302 community 303 community
Example of showing information about a primary VLAN
switch(config)# show vlans 300 private-vlan Private VLAN Configuration Information: VLAN 300 VLAN Type : primary Port Type Ports ------------ ---- Promiscuous 1/A2 Member Trk1 Associated Secondary VLANs: VLAN ID VLAN type Access Ports ------- --------- ------------ 301 isolated 1/8-1/9,Trk1 302 community 1/17-1/18,Trk1 303 community 1/19-1/20,Trk1
Example of showing information about a secondary VLAN
(config)# show vlans 301 private-vlan Private VLAN Configuration Information: VLAN 301 VLAN Type : isolated Access ports : 1/8-1/9,Trk1 Associated Primary VLAN: 300 Port Type Ports ----------- ---------- Promiscuous 1/A2 Member Trk1