Configuration procedure, Enabling the spanning tree feature – H3C Technologies H3C S12500-X Series Switches User Manual

Page 133

Advertising
background image

122

On Device B, VLAN 5 is a primary VLAN which contains uplink port Ten-GigabitEthernet 1/0/5

and is associated with secondary VLANs VLAN 2 and VLAN 3. VLAN 2 contains member port
Ten-GigabitEthernet 1/0/2, and VLAN 3 contains member port Ten-GigabitEthernet 1/0/1.

On Device C, VLAN 6 is a primary VLAN which contains uplink port Ten-GigabitEthernet 1/0/5
and is associated with secondary VLANs VLAN 3 and VLAN 4. VLAN 3 contains member port

Ten-GigabitEthernet 1/0/3, and VLAN 4 contains member port Ten-GigabitEthernet 1/0/4.

Device A is aware of only VLAN 5 on Device B and VLAN 6 on Device C.

Figure 34 Network diagram

Configuration procedure

The following section describes only the configurations on Device B and Device C.

1.

Configure Device B:
# Configure VLAN 5 as a primary VLAN.

<DeviceB> system-view

[DeviceB] vlan 5

[DeviceB-vlan5] private-vlan primary

[DeviceB-vlan5] quit

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

[DeviceB] vlan 2 to 3

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

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

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

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

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

configure the port to operate in host mode.

[DeviceB] interface ten-gigabitethernet 1/0/1

[DeviceB-Ten-GigabitEthernet1/0/1] port access vlan 3

[DeviceB-Ten-GigabitEthernet1/0/1] port private-vlan host

[DeviceB-Ten-GigabitEthernet1/0/1] quit

[DeviceB] interface ten-gigabitethernet 1/0/2

[DeviceB-Ten-GigabitEthernet1/0/2] port access vlan 2

[DeviceB-Ten-GigabitEthernet1/0/2] port private-vlan host

Advertising
This manual is related to the following products: