Configuring RIPng FRR

Network requirements

As shown in Figure 26, Switch A, Switch B, and Switch C run RIPng. Configure RIPng FRR so that when Link A becomes unidirectional, traffic can be switched to Link B immediately.

Figure 26: Network diagram

Device

Interface

IP address

Switch A

VLAN-interface 100

1::1/64

Switch A

VLAN-interface 200

2::1/64

Switch A

Loopback 0

10::1/128

Switch B

VLAN-interface 101

3::1/64

Switch B

VLAN-interface 200

2::2/64

Switch B

Loopback 0

20::1/128

Switch C

VLAN-interface 100

1::2/64

Switch C

VLAN-interface 101

3::2/64

Configuration procedure

  1. Configure IPv6 addresses for interfaces on the switches. (Details not shown.)

  2. Configure RIPng on the switches to make sure Switch A, Switch B, and Switch C can communicate with each other at Layer 3. (Details not shown.)

  3. Configure RIPng FRR:

    # Configure Switch A.

    <SwitchA> system-view
    [SwitchA] ipv6 prefix-list abc index 10 permit 20:: 128
    [SwitchA] route-policy frr permit node 10
    [SwitchA-route-policy-frr-10] if-match ipv6 address prefix-list abc
    [SwitchA-route-policy-frr-10] apply ipv6 fast-reroute backup-interface vlan-interface 100 backup-nexthop 1::2
    [SwitchA-route-policy-frr-10] quit
    [SwitchA] ripng 1
    [SwitchA-ripng-1] fast-reroute route-policy frr
    [SwitchA-ripng-1] quit
    

    # Configure Switch B.

    <SwitchB> system-view
    [SwitchB] ipv6 prefix-list abc index 10 permit 10:: 128
    [SwitchB] route-policy frr permit node 10
    [SwitchB-route-policy-frr-10] if-match ipv6 address prefix-list abc
    [SwitchB-route-policy-frr-10] apply ipv6 fast-reroute backup-interface vlan-interface 101 backup-nexthop 3::2
    [SwitchB-route-policy-frr-10] quit
    [SwitchB] ripng 1
    [SwitchB-ripng-1] fast-reroute route-policy frr
    [SwitchB-ripng-1] quit
    

Verifying the configuration

# Display the route 20::1/128 on Switch A to view the backup next hop information.

[SwitchA] display ipv6 routing-table 20::1 128 verbose

Summary count : 1

Destination: 20::1/128
   Protocol: RIPng
 Process ID: 1
  SubProtID: 0x0                    Age: 00h17m42s
       Cost: 1               Preference: 100
      IpPre: N/A             QosLocalID: N/A
        Tag: 0                    State: Inactive Adv
  OrigTblID: 0x0                OrigVrf: default-vrf
    TableID: 0xa                 OrigAs: 0
      NibID: 0x22000003          LastAs: 0
     AttrID: 0xffffffff        Neighbor: FE80::34CD:9FF:FE2F:D02
      Flags: 0x41           OrigNextHop: FE80::34CD:9FF:FE2F:D02
      Label: NULL           RealNextHop: FE80::34CD:9FF:FE2F:D02
   BkLabel: NULL             BkNextHop: FE80::7685:45FF:FEAD:102
  Tunnel ID: Invalid          Interface: Vlan-interface200
BkTunnel ID: Invalid        BkInterface: Vlan-interface100
   FtnIndex: 0x0           TrafficIndex: N/A
  Connector: N/A

# Display the route 10::1/128 on Switch B to view the backup next hop information.

[SwitchB] display ipv6 routing-table 10::1 128 verbose

Summary count : 1

Destination: 10::1/128
   Protocol: RIPng
 Process ID: 1
  SubProtID: 0x0                    Age: 00h22m34s
       Cost: 1               Preference: 100
      IpPre: N/A             QosLocalID: N/A
        Tag: 0                    State: Inactive Adv
  OrigTblID: 0x0                OrigVrf: default-vrf
    TableID: 0xa                 OrigAs: 0
      NibID: 0x22000001          LastAs: 0
     AttrID: 0xffffffff        Neighbor: FE80::34CC:E8FF:FE5B:C02
      Flags: 0x41           OrigNextHop: FE80::34CC:E8FF:FE5B:C02
      Label: NULL           RealNextHop: FE80::34CC:E8FF:FE5B:C02
    BkLabel: NULL             BkNextHop: FE80::7685:45FF:FEAD:102
  Tunnel ID: Invalid          Interface: Vlan-interface200
BkTunnel ID: Invalid        BkInterface: Vlan-interface101
   FtnIndex: 0x0           TrafficIndex: N/A
  Connector: N/A