Verifying That a Private VLAN Is Working
Purpose
Action
After creating and configuring private VLANs, verify they are set up properly.
Use the
show configuration vlans
1.
the primary and secondary VLAN configurations:
user@switch> show configuration vlans
community1 {
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:
2.
user@switch> show vlans pvlan extensive
VLAN: 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
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
Isolated VLANs :
__pvlan_pvlan_isolated1__
__pvlan_pvlan_isolated2__
Community VLANs :
community1
community2
Chapter 60: Verifying Bridging and VLAN Configuration
command to determine if you successfully created
2
6 (Active = 0)
1159