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

Page 194

Advertising
background image

160

# Configure GigabitEthernet 1/0/1 as a hybrid port, and assign it to VLANs 5 and 10 as a

tagged VLAN member.

[DeviceA] interface gigabitethernet 1/0/1

[DeviceA-GigabitEthernet1/0/1] port link-type hybrid

[DeviceA-GigabitEthernet1/0/1] port hybrid vlan 5 10 tagged

[DeviceA-GigabitEthernet1/0/1] quit

Verifying the configuration

# Display primary VLAN configurations on Device B. The following output uses primary VLAN 5 as an

example.

[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

Name: VLAN 0005

Tagged ports:

GigabitEthernet1/0/1

Untagged ports:

GigabitEthernet1/0/2 GigabitEthernet1/0/3

VLAN ID: 2

VLAN type: Static

Private VLAN type: Secondary

Route interface: Not configured

Description: VLAN 0002

Name: VLAN 0002

Tagged ports:

GigabitEthernet1/0/1

Untagged ports:

GigabitEthernet1/0/2

VLAN ID: 3

VLAN type: Static

Private VLAN type: Secondary

Route interface: Not configured

Description: VLAN 0003

Name: VLAN 0003

Tagged ports:

GigabitEthernet1/0/1

Untagged ports:

GigabitEthernet1/0/3

The output shows that:

Advertising