Example: Configuring fast detection
Network configuration
As shown in Figure 23:
Device A, Device B, Device C, and Device D form RRPP domain 1. VLAN 4092 is the primary control VLAN of RRPP domain 1. RRPP domain 1 protects VLANs 1 through 30.
Device A is the master node and supports RRPP fast detection, providing a timer resolution of 10 milliseconds. The default Fast-Fail and Fast-Hello timers are 60 milliseconds and 20 milliseconds, respectively. Device D is a transit node. Device B and Device C do not support RRPP.
Neither Device B nor Device C supports RRPP. When the link between them fails, the link failure cannot be detected by the master node in a timely manner. Configure RRPP fast detection to implement fast link switchover even when the link between Device B and Device C fails.
Figure 23: 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-] quit
# Configure FortyGigE 1/0/2 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 the primary ring Ring 1, with FortyGigE 1/0/1 as the primary port and 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
# Enable fast detection. Set the Fast-Hello timer and Fast-Fail timer to 100 milliseconds and 300 milliseconds, respectively.
[DeviceA-rrpp-domain1] fast-detection enable [DeviceA-rrpp-domain1] fast-timer hello-timer 100 fail-timer 300 [DeviceA-rrpp-domain1] quit
# Enable the RRPP protocol.
[DeviceA] rrpp enable
Configure Device B:
# Create VLAN 4092 and VLAN 4093.
<DeviceB> system-view [DeviceB] vlan 4092 to 4093
# 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-] port link-type trunk
# Assign the port to VLANs 1 through 30, 4092, and 4093.
[DeviceB-FortyGigE1/0/1] port trunk permit vlan 1 to 30 4092 4093 [DeviceB-] 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-] port link-type trunk [DeviceB-FortyGigE1/0/2] port trunk permit vlan 1 to 30 4092 4093
Configure Device C:
# Create VLAN 4092 and VLAN 4093.
<DeviceC> system-view [DeviceC] vlan 4092 to 4093
# Set the physical state change suppression interval to 0 seconds on FortyGigE 1/0/1.
[DeviceC] interface fortygige 1/0/1 [DeviceC-FortyGigE1/0/1] link-delay 0
# Disable the spanning tree feature on the port.
[DeviceC-FortyGigE1/0/1] undo stp enable
# Configure the port as a trunk port.
[DeviceC-FortyGigE1/0/1] port link-type trunk
# Assign the port to VLANs 1 through 30, 4092, and 4093.
[DeviceC-FortyGigE1/0/1] port trunk permit vlan 1 to 30 4092 4093 [DeviceC-FortyGigE1/0/1] quit
# Configure FortyGigE 1/0/2 in the same way FortyGigE 1/0/1 is configured.
[DeviceC] interface fortygige 1/0/2 [DeviceC-FortyGigE1/0/2] link-delay 0 [DeviceC-] undo stp enable [DeviceC-FortyGigE1/0/2] port link-type trunk [DeviceC-FortyGigE1/0/2] port trunk permit vlan 1 to 30 4092 4093
Configure Device D:
# Create VLANs 1 through 30.
<DeviceD> system-view [DeviceD] vlan 1 to 30
# Map these VLANs to MSTI 1.
[DeviceD] stp region-configuration [DeviceD-mst-region] instance 1 vlan 1 to 30
# Activate the MST region configuration.
[DeviceD-mst-region] active region-configuration [DeviceD-mst-region] quit
# Set the physical state change suppression interval to 0 seconds on FortyGigE 1/0/1.
[DeviceD] interface [DeviceD-FortyGigE1/0/1] link-delay 0
# Disable the spanning tree feature on the port.
[DeviceD-FortyGigE1/0/1] undo stp enable
# Configure the port as a trunk port.
[DeviceD-FortyGigE1/0/1] port link-type trunk
# Assign the port to VLANs 1 through 30.
[DeviceD-FortyGigE1/0/1] port trunk permit vlan 1 to 30 [DeviceD-FortyGigE1/0/1] quit
# Configure FortyGigE 1/0/2 in the same way FortyGigE 1/0/1 is configured.
[DeviceD] interface fortygige 1/0/2 [DeviceD-FortyGigE1/0/2] link-delay 0 [DeviceD-FortyGigE1/0/2] undo stp enable [DeviceD-FortyGigE1/0/2] port link-type trunk [DeviceD-FortyGigE1/0/2] port trunk permit vlan 1 to 30 [DeviceD-] quit
# Create RRPP domain 1.
[DeviceD] rrpp domain 1
# Configure VLAN 4092 as the primary control VLAN of RRPP domain 1.
[DeviceD-rrpp-domain1] control-vlan 4092
# Configure the VLANs mapped to MSTI 1 as the protected VLANs of RRPP domain 1.
[DeviceD-rrpp-domain1] protected-vlan reference-instance 1
# Configure Device D as a transit node of the primary ring Ring 1, with FortyGigE 1/0/1 as the primary port and FortyGigE 1/0/2 as the secondary port. Enable Ring 1.
[DeviceD-rrpp-domain1] ring 1 node-mode transit primary-port fortygige 1/0/1 secondary-port fortygige 1/0/2 level 0 [DeviceD-rrpp-domain1] ring 1 enable [DeviceD-rrpp-domain1] quit
# Enable the RRPP protocol.
[DeviceD] rrpp enable
Verifying the configuration
# Use the display commands to view RRPP configuration and operational information on Device A and Device D.