Verifying the configuration, Digest snooping configuration example – H3C Technologies H3C S12500-X Series Switches User Manual
Page 137
126
[DeviceB] interface ten-gigabitethernet 1/0/3
[DeviceB-Ten-GigabitEthernet1/0/3] port access vlan 3
[DeviceB-Ten-GigabitEthernet1/0/3] port private-vlan host
[DeviceB-Ten-GigabitEthernet1/0/3] quit
# Associate the secondary VLANs 2 and 3 with the primary VLAN 5.
[DeviceB] vlan 5
[DeviceB-vlan5] private-vlan secondary 2 to 3
[DeviceB-vlan5] quit
# Assign the downlink port Ten-GigabitEthernet 1/0/6 to VLAN 6, and configure the port to
operate in host mode. Assign the downlink port Ten-GigabitEthernet 1/0/8 to VLAN 8, and
configure the port to operate in host mode.
[DeviceB] interface ten-gigabitethernet 1/0/6
[DeviceB-Ten-GigabitEthernet1/0/6] port access vlan 6
[DeviceB-Ten-GigabitEthernet1/0/6] port private-vlan host
[DeviceB-Ten-GigabitEthernet1/0/6] quit
[DeviceB] interface ten-gigabitethernet 1/0/8
[DeviceB-Ten-GigabitEthernet1/0/8] port access vlan 8
[DeviceB-Ten-GigabitEthernet1/0/8] port private-vlan host
[DeviceB-Ten-GigabitEthernet1/0/8] quit
# Associate the secondary VLANs 6 and 8 with the primary VLAN 10.
[DeviceB] vlan 10
[DeviceB-vlan10] private-vlan secondary 6 8
[DeviceB-vlan10] quit
2.
Configure Device A:
# Create VLAN 5 and VLAN 10.
[DeviceA] vlan 5
[DeviceA-vlan5] quit
[DeviceA] vlan 10
[DeviceA-vlan10] quit
# Configure Ten-GigabitEthernet 1/0/1 as a hybrid port, and configure the port to permit packets
from VLAN 5 and VLAN 10 to pass through tagged.
[DeviceA] interface ten-gigabitethernet 1/0/1
[DeviceA-Ten-GigabitEthernet1/0/1] port link-type hybrid
[DeviceA-Ten-GigabitEthernet1/0/1] port hybrid vlan 5 10 tagged
[DeviceA-Ten-GigabitEthernet1/0/1] quit
Verifying the configuration
# Display the configuration of primary VLAN 5 on Device B. (The output for primary VLAN 10 is similar.)
[DeviceB] display private-vlan 5
Primary VLAN ID: 5
Secondary VLAN ID: 2-3
VLAN ID: 5
VLAN type: Static
Private VLAN type: Primary
Route interface: Not configured
Description: VLAN 0005