
171
Private VLAN configuration example in trunk promiscuous and
trunk secondary modes
Network requirements
As shown in
•
VLAN 10 and VLAN 20 are primary VLANs on Device A. The uplink port Ten-GigabitEthernet
1/0/5 permits the packets from VLAN 10 and VLAN 20 to pass through tagged.
•
VLAN 11, VLAN 12, VLAN 21, and VLAN 22 are secondary VLANs on Device A. The downlink port
Ten-GigabitEthernet 1/0/2 permits the packets from VLAN 11 and VLAN 21 to pass through
tagged. The downlink port Ten-GigabitEthernet 1/0/1 permits VLAN 22. The downlink port
Ten-GigabitEthernet 1/0/3 permits VLAN 12.
•
Secondary VLANs 11 and 12 are associated with primary VLAN 10. Secondary VLANs 21 and 22
are associated with primary VLAN 20.
Figure 47
Network diagram
Configuration procedure
1.
Configure Device A:
# Configure VLAN 10 and VLAN 20 as primary VLANs.
<DeviceA> system-view
[DeviceA] vlan 10
[DeviceA-vlan10] private-vlan primary
[DeviceA-vlan10] quit
[DeviceA] vlan 20
[DeviceA-vlan20] private-vlan primary
[DeviceA-vlan20] quit
# Create VLANs 11, 12, 21, and 22, which are to be configured as secondary VLANs.