H3C switch RRPP configuration

Configure Device A

# Create VLANs 2 to 30, map these VLANs to MSTI 1, and activate the configuration of the MST domain.

<DeviceA> system-view

[DeviceA] vlan 2 to 30

 Please wait… Done.

[DeviceA] stp region-configuration

[DeviceA-mst-region] instance 1 vlan 2 to 30

[DeviceA-mst-region] active region-configuration

[DeviceA-mst-region] quit

# Disable the STP function on ports GigabitEthernet1/0/1 and GigabitEthernet1/0/2 respectively, configure the port to trust the 802.1p priority of packets, and configure the port as a trunk port to allow VLANs 2 to 30 to pass through.

[DeviceA] interface gigabitethernet 1/0/1

[DeviceA-GigabitEthernet1/0/1] undo stp enable

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

[DeviceA-GigabitEthernet1/0/1] port trunk permit vlan 2 to 30

 Please wait… Done.

[DeviceA-GigabitEthernet1/0/1] quit

[DeviceA] interface gigabitethernet 1/0/2

[DeviceA-GigabitEthernet1/0/2] undo stp enable

[DeviceA-GigabitEthernet1/0/2] port link-type trunk

[DeviceA-GigabitEthernet1/0/2] port trunk permit vlan 2 to 30

 Please wait… Done.

[DeviceA-GigabitEthernet1/0/2] quit

# Create RRPP domain 1, configure VLAN 4092 as the control VLAN of the domain, and configure the VLAN mapped to MSTI 1 as the protection VLAN of the domain.

[DeviceA] rrpp domain 1

 Info: Create a new domain.

[DeviceA-rrpp-domain1] control-vlan 4092

[DeviceA-rrpp-domain1] protected-vlan reference-instance 1

# Configure this device as the master node of the main ring 1, the main port is GigabitEthernet1/0/1, the secondary port is GigabitEthernet1/0/2, and open the ring.

[DeviceA-rrpp-domain1] ring 1 node-mode master primary-port gigabitethernet 1/0/1 secondary-port gigabitethernet 1/0/2 level 0

[DeviceA-rrpp-domain1] ring 1 enable

[DeviceA-rrpp-domain1] quit

# 开启RRPP协议。

[DeviceA] rrpp enable

(2) Configure Device B

# Create VLANs 2 to 30, map these VLANs to MSTI 1, and activate the configuration of the MST domain.

<DeviceB> system-view

[DeviceB] vlan 2 to 30

 Please wait… Done.

[DeviceB] stp region-configuration

[DeviceB-mst-region] instance 1 vlan 2 to 30

[DeviceB-mst-region] active region-configuration

[DeviceB-mst-region] quit

# Disable the STP function on ports GigabitEthernet1/0/1 and GigabitEthernet1/0/2 respectively, configure the port to trust the 802.1p priority of packets, and configure the port as a trunk port to allow VLANs 2 to 30 to pass through.

[DeviceB] interface gigabitethernet 1/0/1

[DeviceB-GigabitEthernet1/0/1] undo stp enable

[DeviceB-GigabitEthernet1/0/1] qos trust dot1p

[DeviceB-GigabitEthernet1/0/1] port link-type trunk

[DeviceB-GigabitEthernet1/0/1] port trunk permit vlan 2 to 30

 Please wait… Done.

[DeviceB-GigabitEthernet1/0/1] quit

[DeviceB] interface gigabitethernet 1/0/2

[DeviceB-GigabitEthernet1/0/2] undo stp enable

[DeviceB-GigabitEthernet1/0/2] qos trust dot1p

[DeviceB-GigabitEthernet1/0/2] port link-type trunk

[DeviceB-GigabitEthernet1/0/2] port trunk permit vlan 2 to 30

 Please wait… Done.

[DeviceB-GigabitEthernet1/0/2] quit

# Create RRPP domain 1, configure VLAN 4092 as the control VLAN of the domain, and configure the VLAN mapped to MSTI 1 as the protection VLAN of the domain.

[DeviceB] rrpp domain 1

 Info: Create a new domain.

[DeviceB-rrpp-domain1] control-vlan 4092

[DeviceB-rrpp-domain1] protected-vlan reference-instance 1

# Configure this device as the transit node of the primary ring 1, set the primary port to GigabitEthernet 1/0/1, and the secondary port to GigabitEthernet 1/0/2, and enable the ring.

[DeviceB-rrpp-domain1] ring 1 node-mode transit primary-port gigabitethernet 1/0/1 secondary-port gigabitethernet 1/0/2 level 0

[DeviceB-rrpp-domain1] ring 1 enable

[DeviceB-rrpp-domain1] quit

# Enable the RRPP protocol.

[DeviceB] rrpp enable

(3) Configure Device C and Device D

The configurations of Device C and Device D are exactly the same as those of Device B, and the configuration process is omitted here.

Guess you like

Origin blog.csdn.net/qq_14989621/article/details/131247880