R3303-HP HSR6800 Routers Layer 3 - IP Routing Configuration Guide

18
Static route FRR configuration example
Network requirements
As shown in Figure 5, configure static routes on Router S, Router A, and Router D, and configure static
route FRR so that when Link A fails, traffic can be switched to Link B immediately.
Figure 5 Network diagram
Configuration procedure
1. Configure IP addresses for the interfaces on each router. (Details not shown.)
2. Configure static routes:
Configure static routes on Router S, Router A, and Router D so that Router S can reach Loopback
0 on Router D and Router D can reach Loopback 0 on Router S.
# Configure a static route on Router S.
<RouterS> system-view
[RouterS] ip route-static 4.4.4.4 32 GigabitEthernet 2/1/2 13.13.13.2
# Configure a static route on Router D.
<RouterD> system-view
[RouterD] ip route-static 1.1.1.1 32 GigabitEthernet 2/1/2 13.13.13.1
# Configure a static route on Router A.
<RouterA> system-view
[RouterA] ip route-static 4.4.4.4 32 GigabitEthernet 2/1/2 24.24.24.4
[RouterA] ip route-static 1.1.1.1 32 GigabitEthernet 2/1/1 12.12.12.1
3. Configure static route FRR:
# Configure Router S.
[RouterS] bfd echo-source-ip 1.1.1.1
[RouterS] ip ip-prefix abc index 10 permit 4.4.4.4 32
[RouterS] route-policy frr permit node 10
[RouterS-route-policy] if-match ip-prefix abc
[RouterS-route-policy] apply fast-reroute backup-interface GigabitEthernet 2/1/1
backup-nexthop 12.12.12.2
[RouterS-route-policy] quit
[RouterS] ip route-static fast-reroute route-policy frr
# Configure Router D.
[RouterD] bfd echo-source-ip 4.4.4.4
[RouterD] ip ip-prefix abc index 10 permit 1.1.1.1 32
[RouterD] route-policy frr permit node 10
[RouterD-route-policy] if-match ip-prefix abc
Loop 0
1.1.1.1/32
Router A
Router S
Router D
G
E
2
/
1
/
1
1
2
.
1
2
.
1
2
.
1
/
2
4
GE2/1/2
13.13.13.1/24
GE2/1/2
13.13.13.2/24
GE
2
/
1
/
1
1
2
.
1
2
.
1
2
.
2
/
2
4
GE
2
/
1
/
2
2
4
.
2
4
.
2
4
.
2
/
2
4
G
E
2
/
1
/
1
2
4
.
2
4
.
2
4
.
4
/
2
4
Loop 0
4.4.4.4/32
Link A
Link B