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/21 13:08] – [Sserver] olivier | documentation:examples:ecmp [2020/09/23 14:56] – [Checking routes installed] olivier | ||
---|---|---|---|
Line 234: | Line 234: | ||
</ | </ | ||
- | ==== Testing | + | ===== FRR Multipath setup ===== |
+ | |||
+ | Replacing static routes by FRR (OSPF) compiled with MULTIPATH option. | ||
+ | |||
+ | ==== 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 router1 | ||
+ | ! | ||
+ | router ospf | ||
+ | ospf router-id 1.1.1.1 | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | ! | ||
+ | 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 " | ||
Line 240: | Line 325: | ||
^ Source ^ Destination ^ Ongoing path selected by R1 ^ Returning path selected by R2^ | ^ Source ^ Destination ^ Ongoing path selected by R1 ^ Returning path selected by R2^ | ||
| 10.0.31.3 | 10.0.24.4 | igb1 | igb2 | | | 10.0.31.3 | 10.0.24.4 | igb1 | igb2 | | ||
- | | 10.0.31.13 | 10.0.24.14 | igb1 | igb1 | | + | | 10.0.31.3 | 10.0.24.14 |
+ | | 10.0.31.13 | 10.0.24.14 | igb2 | igb1 | | ||
| 10.0.31.23 | 10.0.24.24 | igb1 | igb2 | | | 10.0.31.23 | 10.0.24.24 | igb1 | igb2 | | ||
- | | 10.0.31.33 | 10.0.24.34 | igb1 | igb2 | | + | | 10.0.31.33 | 10.0.24.34 | igb2 | igb2 | |
- | | 10.0.31.43 | 10.0.24.44 | igb1 | igb1 | | + | |
| 10.0.31.43 | 10.0.24.44 | igb1 | igb2 | | | 10.0.31.43 | 10.0.24.44 | igb1 | igb2 | | ||
+ | | 10.0.31.53 | 10.0.24.54 | igb1 | igb1 | | ||
| 2001: | | 2001: | ||
| 2001: | | 2001: |
documentation/examples/ecmp.txt · Last modified: 2024/03/28 23:19 by olivier