beautypg.com

Verifying the configuration – H3C Technologies H3C S5560 Series Switches User Manual

Page 191

background image

157

# Associate the secondary VLANs 3 and 4 with the primary VLAN 6.

[DeviceC] vlan 6

[DeviceC-vlan6] private-vlan secondary 3 to 4

[DeviceC-vlan6] quit

Verifying the configuration

# Display the private VLAN configuration on the devices, for example, on Device B.

[DeviceB] display private-vlan

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

Name: VLAN 0005

Tagged ports: None

Untagged ports:

GigabitEthernet1/0/1 GigabitEthernet1/0/2 GigabitEthernet1/0/5

VLAN ID: 2

VLAN type: Static

Private VLAN type: Secondary

Route interface: Not configured

Description: VLAN 0002

Name: VLAN 0002

Tagged ports: None

Untagged ports:

GigabitEthernet1/0/2 GigabitEthernet1/0/5

VLAN ID: 3

VLAN type: Static

Private VLAN type: Secondary

Route interface: Not configured

Description: VLAN 0003

Name: VLAN 0003

Tagged Ports: None

Untagged Ports:

GigabitEthernet1/0/1 GigabitEthernet1/0/5

The output shows that:

The promiscuous port GigabitEthernet 1/0/5 is an untagged member of primary VLAN 5 and
secondary VLANs 2 and 3.

The host port GigabitEthernet 1/0/2 is an untagged member of primary VLAN 5 and secondary
VLAN 2.

The host port GigabitEthernet 1/0/1 is an untagged member of primary VLAN 5 and secondary
VLAN 3.