documentation:examples:ecmp
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
documentation:examples:ecmp [2020/09/23 14:49] – [Testing Load balancing] olivier | documentation:examples:ecmp [2020/09/23 15:01] – [R1 (ECMP router)] olivier | ||
---|---|---|---|
Line 236: | Line 236: | ||
===== FRR Multipath setup ===== | ===== FRR Multipath setup ===== | ||
+ | Replacing static routes by FRR (OSPF) compiled with MULTIPATH option. | ||
- | === Testing | + | ==== R1 (ECMP router) ==== |
+ | |||
+ | In place of static routes, FRR is enabled: | ||
+ | |||
+ | < | ||
+ | sysrc frr_vtysh_boot=" | ||
+ | frr_enable=" | ||
+ | frr_daemons=" | ||
+ | watchfrr_flags=" | ||
+ | watchfrr_enable=" | ||
+ | |||
+ | cat > / | ||
+ | frr version 7.4 | ||
+ | frr defaults traditional | ||
+ | hostname homelab1 | ||
+ | ! | ||
+ | interface igb0 | ||
+ | ipv6 ospf6 passive | ||
+ | ! | ||
+ | router ospf | ||
+ | ospf router-id 1.1.1.1 | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | ! | ||
+ | router ospf6 | ||
+ | | ||
+ | | ||
+ | | ||
+ | ! | ||
+ | line vty | ||
+ | ! | ||
+ | EOF | ||
+ | service frr start | ||
+ | service watchfrr start | ||
+ | </ | ||
+ | |||
+ | ==== R2 (ECMP router) ==== | ||
+ | |||
+ | In place of static routes, FRR is enabled: | ||
+ | < | ||
+ | sysrc frr_vtysh_boot=" | ||
+ | frr_enable=" | ||
+ | frr_daemons=" | ||
+ | watchfrr_flags=" | ||
+ | watchfrr_enable=" | ||
+ | |||
+ | cat > / | ||
+ | frr version 7.4 | ||
+ | frr defaults traditional | ||
+ | hostname router2 | ||
+ | ! | ||
+ | router ospf | ||
+ | ospf router-id 2.2.2.2 | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | ! | ||
+ | line vty | ||
+ | ! | ||
+ | EOF | ||
+ | service frr start | ||
+ | service watchfrr start | ||
+ | </ | ||
+ | |||
+ | ==== Checking routes installed ==== | ||
+ | |||
+ | On R1: | ||
+ | < | ||
+ | [root@router1]~# | ||
+ | |||
+ | Hello, this is FRRouting (version 7.4). | ||
+ | Copyright 1996-2005 Kunihiro Ishiguro, et al. | ||
+ | |||
+ | homelab1# sh ip route 10.0.24.0/ | ||
+ | Routing entry for 10.0.24.0/ | ||
+ | Known via " | ||
+ | Last update 00:06:39 ago | ||
+ | * 10.0.112.2, via igb1, weight 1 | ||
+ | * 10.0.212.2, via igb2, weight 1 | ||
+ | |||
+ | router1# exit | ||
+ | [root@router1]~# | ||
+ | 10.0.24.0/ | ||
+ | 10.0.24.0/ | ||
+ | </ | ||
+ | |||
+ | ===== Test Load balancing | ||
Flows from the client to the server should be " | Flows from the client to the server should be " |
documentation/examples/ecmp.txt · Last modified: 2024/03/28 23:19 by olivier