Configuring RIP NSR

Network requirements

As shown in Figure 12, Switch A, Switch B, and Switch S all run RIPv2.

Enable RIP NSR on Switch S to ensure correct routing when an active/standby switchover occurs on Switch S.

Figure 12: Network diagram

Configuration procedure

  1. Configure IP addresses and subnet masks for interfaces on the switches. (Details not shown.)

  2. Configure RIPv2 on the switches to ensure the following: (Details not shown.)

    • Switch A, Switch B, and Switch S can communicate with each other at Layer 3.

    • Dynamic route update can be implemented among them with RIPv2.

  3. Enable RIP NSR on Switch S.

    <SwitchS> system-view
    [SwitchS] rip 100
    [SwitchS-rip-100] non-stop-routing
    [SwitchS-rip-100] quit
    

Verifying the configuration

# Perform an active/standby switchover on Switch S.

[SwitchS] placement reoptimize
Predicted changes to the placement
Program                           Current location       New location
---------------------------------------------------------------------
lb                                0/0                    0/0
lsm                               0/0                    0/0
slsp                              0/0                    0/0
rib6                              0/0                    0/0
routepolicy                       0/0                    0/0
rib                               0/0                    0/0
staticroute6                      0/0                    0/0
staticroute                       0/0                    0/0
eviisis                           0/0                    0/0
ospf                              0/0                    1/0
Continue? [y/n]:y
Re-optimization of the placement start. You will be notified on completion
Re-optimization of the placement complete. Use 'display placement' to view the new placement

# Display neighbor information and route information on Switch A.

[SwitchA] display rip 1 neighbor
 Neighbor Address: 12.12.12.2
     Interface  : Vlan-interface200
     Version    : RIPv2     Last update: 00h00m13s
     Relay nbr  : No        BFD session: None
     Bad packets: 0         Bad routes : 0
[SwitchA] display rip 1 route
 Route Flags: R - RIP, T - TRIP
              P - Permanent, A - Aging, S - Suppressed, G - Garbage-collect
              D - Direct, O - Optimal, F - Flush to RIB
 ----------------------------------------------------------------------------
 Peer 12.12.12.2 on Vlan-interface200
      Destination/Mask        Nexthop           Cost    Tag     Flags   Sec
      14.0.0.0/8              12.12.12.2        1       0       RAOF    16
      44.0.0.0/8              12.12.12.2        2       0       RAOF    16
 Local route
      Destination/Mask        Nexthop           Cost    Tag     Flags   Sec
      12.12.12.0/24           0.0.0.0           0       0       RDOF    -
      22.22.22.22/32          0.0.0.0           0       0       RDOF    -

# Display neighbor information and route information on Switch B.

[SwitchB] display rip 1 neighbor
 Neighbor Address: 14.14.14.2
     Interface  : Vlan-interface200
     Version    : RIPv2     Last update: 00h00m32s
     Relay nbr  : No        BFD session: None
     Bad packets: 0         Bad routes : 0
[SwitchB] display rip 1 route
 Route Flags: R - RIP, T - TRIP
              P - Permanent, A - Aging, S - Suppressed, G - Garbage-collect
              D - Direct, O - Optimal, F - Flush to RIB
 ----------------------------------------------------------------------------
 Peer 14.14.14.2 on Vlan-interface200
      Destination/Mask        Nexthop           Cost    Tag     Flags   Sec
      12.0.0.0/8              14.14.14.2        1       0       RAOF    1
      22.0.0.0/8              14.14.14.2        2       0       RAOF    1
 Local route
      Destination/Mask        Nexthop           Cost    Tag     Flags   Sec
      44.44.44.44/32          0.0.0.0           0       0       RDOF    -
      14.14.14.0/24           0.0.0.0           0       0       RDOF    -

The output shows that the neighbor and route information on Switch A and Switch B keep unchanged during the active/standby switchover on Switch S. The traffic from Switch A to Switch B has not been impacted.