beautypg.com

Verifying the configuration, Performing mcheck, Performing mcheck globally – H3C Technologies H3C S12500-X Series Switches User Manual

Page 134

background image

123

[DeviceB-Ten-GigabitEthernet1/0/2] 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

2.

Configure Device C:
# Configure VLAN 6 as a primary VLAN.

system-view

[DeviceC] vlan 6

[DeviceC–vlan6] private-vlan primary

[DeviceC–vlan6] quit

# Create VLANs 3 and 4, which are to be configured as secondary VLANs.

[DeviceC] vlan 3 to 4

# Configure the uplink port Ten-GigabitEthernet 1/0/5 to operate in promiscuous mode in VLAN

6.

[DeviceC] interface ten-gigabitethernet 1/0/5

[DeviceC-Ten-GigabitEthernet1/0/5] port private-vlan 6 promiscuous

[DeviceC-Ten-GigabitEthernet1/0/5] quit

# Assign the downlink port Ten-GigabitEthernet 1/0/3 to VLAN 3, and configure the port to
operate in host mode. Assign the downlink port Ten-GigabitEthernet 1/0/4 to VLAN 4, and

configure the port to operate in host mode.

[DeviceC] interface ten-gigabitethernet 1/0/3

[DeviceC-Ten-GigabitEthernet1/0/3] port access vlan 3

[DeviceC-Ten-GigabitEthernet1/0/3] port private-vlan host

[DeviceC-Ten-GigabitEthernet1/0/3] quit

[DeviceC] interface ten-gigabitethernet 1/0/4

[DeviceC-Ten-GigabitEthernet1/0/4] port access vlan 4

[DeviceC-Ten-GigabitEthernet1/0/4] port private-vlan host

[DeviceC-Ten-GigabitEthernet1/0/4] quit

# 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 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

This manual is related to the following products: