beautypg.com

Static route frr configuration example, Network requirements, Configuration procedure – H3C Technologies H3C SR8800 User Manual

Page 32

background image

16

Static route FRR configuration example

Network requirements

Router S, Router A, and Router D are interconnected through static routes, as illustrated in

Figure 3

.

Configure static route FRR so that when the link between Router S and Router D fails, traffic can be

switched to Link B immediately.

Figure 3 Network diagram

Configuration procedure

1.

Configure IP addresses for the interfaces on each router and configure static routes:
Follow

Figure 3

to configure the IP address and subnet mask of each interface on the routers.

(Details not shown)
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.

system-view

[RouterS] ip route-static 4.4.4.4 32 GigabitEthernet 3/1/2 13.13.13.2

[RouterS] ip route-static 4.4.4.4 32 GigabitEthernet 3/1/2 12.12.12.2 preference 65

# Configure a static route on Router D.

system-view

[RouterD] ip route-static 1.1.1.1 32 GigabitEthernet 3/1/2 13.13.13.1

[RouterD] ip route-static 1.1.1.1 32 GigabitEthernet 3/1/2 24.24.24.2 preference 65

# Configure a static route on Router A.

system-view

[RouterA] ip route-static 4.4.4.4 32 GigabitEthernet 3/1/2 24.24.24.4

[RouterA] ip route-static 1.1.1.1 32 GigabitEthernet 3/1/1 12.12.12.1

2.

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 3/1/1

backup-nexthop 12.12.12.2

[RouterS-route-policy] quit

[RouterS] ip route-static fast-reroute route-policy frr

# Configure Router D.