Verifying That a Private VLAN Is Working
Purpose
After creating and configuring private VLANs, verify they are set up properly.
Action
- Use the show configuration vlans command
to determine if you successfully created the primary and secondary
VLAN configurations:
user@switch> show configuration vlanscommunity1 { interface { interface a; interface b; } primary-vlan pvlan; } community2 { interface { interface d; interface e; } primary-vlan pvlan; } pvlan { vlan-id 1000; interface { isolated1; isolated2; trunk1; trunk2; } no-local-switching; } - Use the show vlans command to view VLAN
information and link status:
user@switch> show vlans pvlan extensiveVLAN: pvlan, Created at: time 802.1Q Tag: vlan-id, Internal index: index-number, Admin State: Enabled, Origin: Static Private VLAN Mode: Primary Protocol: Port Mode Number of interfaces: Tagged 2 (Active = 0), Untagged 6 (Active = 0) trunk1, tagged, trunk interface a, untagged, access interface b, untagged, access interface c, untagged, access interface d, untagged, access interface e, untagged, access interface f, untagged, access trunk2, tagged, trunk Secondary VLANs: Isolated 2, Community 2 Isolated VLANs : __pvlan_pvlan_isolated1__ __pvlan_pvlan_isolated2__ Community VLANs : community1 community2 - Use the show ethernet-switching table vlan command to view logs for MAC learning on the VLANs:
user@switch> vlan pvlan extensivepvlan, * Interface(s): trunk1 Interface(s): interface a Interface(s): interface b Interface(s): interface c Interface(s): interface d Interface(s): interface e Interface(s): interface f Interface(s): trunk2 Type: Flood Nexthop index: 1344
Meaning
The output shows that the primary and secondary VLANs were created and associated and displays MAC learning information.

