165
Displaying and maintaining the private VLAN
Execute the
display
command in any view.
Task Command
Display information about primary VLANs and the
secondary VLANs associated with each primary VLAN.
display private-vlan
[
primary-vlan-id
]
Private VLAN configuration examples
Private VLAN configuration example in promiscuous mode
Network requirements
As shown in
:
•
On Device B, VLAN 5 is a primary VLAN which contains uplink port Ten-GigabitEthernet 1/0/5
and is associated with secondary VLANs VLAN 2 and VLAN 3. VLAN 2 contains member port
Ten-GigabitEthernet 1/0/2, and VLAN 3 contains member port Ten-GigabitEthernet 1/0/1.
•
On Device C, VLAN 6 is a primary VLAN which contains uplink port Ten-GigabitEthernet 1/0/5
and is associated with secondary VLANs VLAN 3 and VLAN 4. VLAN 3 contains member port
Ten-GigabitEthernet 1/0/3, and VLAN 4 contains member port Ten-GigabitEthernet 1/0/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