On Device B, the downlink port Ten-GigabitEthernet 1/1/6 permits secondary VLAN 2. The
•
downlink port Ten-GigabitEthernet 1/1/7 permits secondary VLAN 3. Secondary VLANs 2 and 3
are associated with primary VLAN 5.
•
On Device B, the downlink port Ten-GigabitEthernet 1/1/10 permits secondary VLAN 6. The
downlink port Ten-GigabitEthernet 1/1/12 permits secondary VLAN 8. Secondary VLANs 6 and
8 are associated with primary VLAN 10.
Device A is aware of only VLANs 5 and 10 on Device B.
•
Figure 46 Network diagram
Configuration procedure
1.
Configure Device B:
# Configure VLANs 5 and 10 as primary VLANs.
<DeviceB> system-view
[DeviceB] vlan 5
[DeviceB-vlan5] private-vlan primary
[DeviceB-vlan5] quit
[DeviceB] vlan 10
[DeviceB-vlan10] private-vlan primary
[DeviceB-vlan10] quit
# Create VLANs 2, 3, 6, and 8.
[DeviceB] vlan 2 to 3
[DeviceB] vlan 6
[DeviceB-vlan6] quit
[DeviceB] vlan 8
[DeviceB-vlan8] quit
# Configure the uplink port Ten-GigabitEthernet 1/1/5 as a trunk promiscuous port of VLANs 5
and 10.
[DeviceB] interface ten-gigabitethernet 1/1/5
[DeviceB-Ten-GigabitEthernet1/1/5] port private-vlan 5 10 trunk promiscuous
[DeviceB-Ten-GigabitEthernet1/1/5] quit
163