Displaying and maintaining the private VLAN
Execute the display command in any view.
Task
Display information about primary VLANs and their
associated secondary VLANs.
Private VLAN configuration examples
Promiscuous port configuration example
Network requirements
As shown in
On Device B, VLAN 5 is a primary VLAN that is associated with secondary VLANs 2 and 3. The
•
uplink port Ten-GigabitEthernet 1/1/9 is in VLAN 5. Ten-GigabitEthernet 1/1/6 is in VLAN 2.
Ten-GigabitEthernet 1/1/5 is in VLAN 3.
•
On Device C, VLAN 6 is a primary VLAN that is associated with secondary VLANs 3 and 4. The
uplink port Ten-GigabitEthernet 1/1/9 is in VLAN 6. Ten-GigabitEthernet 1/1/7 is in VLAN 3.
Ten-GigabitEthernet 1/1/8 is in VLAN 4.
Device A is aware of only VLAN 5 on Device B and VLAN 6 on Device C.
•
Figure 45 Network diagram
Configuration procedure
The following section describes only the configurations on Device B and Device C.
1.
Configure Device B:
# Configure VLAN 5 as a primary VLAN.
<DeviceB> system-view
[DeviceB] vlan 5
[DeviceB-vlan5] private-vlan primary
[DeviceB-vlan5] quit
Figure
45, configure the private VLAN feature to meet the following requirements:
Command
display private-vlan [ primary-vlan-id ]
160