Example: Configuring a single ring
Network configuration
As shown in Figure 20:
Device A, Device B, Device C, and Device D form RRPP domain 1. Specify the primary control VLAN of RRPP domain 1 as VLAN 4092. Specify the protected VLANs of RRPP domain 1 as VLANs 1 through 30.
Device A, Device B, Device C, and Device D form primary ring 1.
Specify Device A as the master node of primary ring 1, FortyGigE 1/0/1 as the primary port, and as the secondary port.
Specify Device B, Device C, and Device D as the transit nodes of primary ring 1. Specify FortyGigE 1/0/1 as the primary port and as the secondary port on Device B, Device C, and Device D.
Figure 20: Network diagram
Procedure
![]() | IMPORTANT: By default, interfaces on the device are disabled (in ADM or Administratively Down state). To have an interface operate, you must use the undo shutdown command to enable that interface. | |
Configure Device A:
# Create VLANs 1 through 30.
<DeviceA> system-view [DeviceA] vlan 1 to 30
# Map these VLANs to MSTI 1.
[DeviceA] stp region-configuration [DeviceA-mst-region] instance 1 vlan 1 to 30
# Activate the MST region configuration.
[DeviceA-mst-region] active region-configuration [DeviceA-mst-region] quit
# Set the physical state change suppression interval to 0 seconds on FortyGigE 1/0/1.
[DeviceA] interface fortygige 1/0/1 [DeviceA-FortyGigE1/0/1] link-delay 0
# Disable the spanning tree feature on the port.
[DeviceA-FortyGigE1/0/1] undo stp enable
# Configure the port as a trunk port.
[DeviceA-FortyGigE1/0/1] port link-type trunk
# Assign the port to VLANs 1 through 30.
[DeviceA-FortyGigE1/0/1] port trunk permit vlan 1 to 30 [DeviceA-FortyGigE1/0/1] quit
# Configure in the same way FortyGigE 1/0/1 is configured.
[DeviceA] interface fortygige 1/0/2 [DeviceA-FortyGigE1/0/2] link-delay 0 [DeviceA-FortyGigE1/0/2] undo stp enable [DeviceA-FortyGigE1/0/2] port link-type trunk [DeviceA-FortyGigE1/0/2] port trunk permit vlan 1 to 30 [DeviceA-FortyGigE1/0/2] quit
# Create RRPP domain 1.
[DeviceA] rrpp domain 1
# Configure VLAN 4092 as the primary control VLAN of RRPP domain 1.
[DeviceA-rrpp-domain1] control-vlan 4092
# Configure the VLANs mapped to MSTI 1 as the protected VLANs of RRPP domain 1.
[DeviceA-rrpp-domain1] protected-vlan reference-instance 1
# Configure Device A as the master node of primary ring 1, with FortyGigE 1/0/1 as the primary port and FortyGigE 1/0/2 as the secondary port. Enable ring 1.
[DeviceA-rrpp-domain1] ring 1 node-mode master primary-port fortygige 1/0/1 secondary-port fortygige 1/0/2 level 0 [DeviceA-rrpp-domain1] ring 1 enable [DeviceA-rrpp-domain1] quit
# Enable RRPP.
[DeviceA] rrpp enable
Configure Device B:
# Create VLANs 1 through 30.
<DeviceB> system-view [DeviceB] vlan 1 to 30
# Map these VLANs to MSTI 1.
[DeviceB] stp region-configuration [DeviceB-mst-region] instance 1 vlan 1 to 30
# Activate the MST region configuration.
[DeviceB-mst-region] active region-configuration [DeviceB-mst-region] quit
# Set the physical state change suppression interval to 0 seconds on FortyGigE 1/0/1.
[DeviceB] interface fortygige 1/0/1 [DeviceB-FortyGigE1/0/1] link-delay 0
# Disable the spanning tree feature on the port.
[DeviceB-FortyGigE1/0/1] undo stp enable
# Configure the port as a trunk port.
[DeviceB-FortyGigE1/0/1] port link-type trunk
# Assign the port to VLANs 1 through 30.
[DeviceB-FortyGigE1/0/1] port trunk permit vlan 1 to 30 [DeviceB-FortyGigE1/0/1] quit
# Configure FortyGigE 1/0/2 in the same way FortyGigE 1/0/1 is configured.
[DeviceB] interface fortygige 1/0/2 [DeviceB-FortyGigE1/0/2] link-delay 0 [DeviceB-FortyGigE1/0/2] undo stp enable [DeviceB-FortyGigE1/0/2] port link-type trunk [DeviceB-FortyGigE1/0/2] port trunk permit vlan 1 to 30 [DeviceB-FortyGigE1/0/2] quit
# Create RRPP domain 1.
[DeviceB] rrpp domain 1
# Configure VLAN 4092 as the primary control VLAN of RRPP domain 1.
[DeviceB-rrpp-domain1] control-vlan 4092
# Configure the VLANs mapped to MSTI 1 as the protected VLANs of RRPP domain 1.
[DeviceB-rrpp-domain1] protected-vlan reference-instance 1
# Configure Device B as the transit node of primary ring 1, with FortyGigE 1/0/1 as the primary port and FortyGigE 1/0/2 as the secondary port. Enable ring 1.
[DeviceB-rrpp-domain1] ring 1 node-mode transit primary-port fortygige 1/0/1 secondary-port fortygige 1/0/2 level 0 [DeviceB-rrpp-domain1] ring 1 enable [DeviceB-rrpp-domain1] quit
# Enable RRPP.
[DeviceB] rrpp enable
Configure Device C:
Configure Device C in the same way Device B is configured.
Configure Device D:
Configure Device D in the same way Device B is configured.
Verifying the configuration
# Use the display commands to view RRPP configuration and operational information on each device.