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:56] – [FRR Multipath setup] olivier | documentation:examples:ecmp [2022/12/11 17:43] – [Client] olivier | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Equal-cost multi-path routing (ECMP) ====== | ====== Equal-cost multi-path routing (ECMP) ====== | ||
- | This lab is testing new ECMP routing code from [[https:// | + | This lab need a FreeBSD 13-head r366390 minimum ([[https:// |
===== Presentation ===== | ===== Presentation ===== | ||
Line 28: | Line 28: | ||
gateway_enable=NO \ | gateway_enable=NO \ | ||
ipv6_gateway_enable=NO \ | ipv6_gateway_enable=NO \ | ||
- | ifconfig_igb1=" | + | ifconfig_igb1=" |
- | ifconfig_igb1_alias1=" | + | ifconfig_igb1_alias1=" |
- | ifconfig_igb1_alias2=" | + | ifconfig_igb1_alias2=" |
- | ifconfig_igb1_alias3=" | + | ifconfig_igb1_alias3=" |
- | ifconfig_igb1_alias4=" | + | ifconfig_igb1_alias4=" |
- | ifconfig_igb1_alias5=" | + | ifconfig_igb1_alias5=" |
- | ifconfig_igb1_ipv6=" | + | ifconfig_igb1_ipv6=" |
- | ifconfig_igb1_alias61=" | + | ifconfig_igb1_alias61=" |
- | ifconfig_igb1_alias62=" | + | ifconfig_igb1_alias62=" |
- | ifconfig_igb1_alias63=" | + | ifconfig_igb1_alias63=" |
- | ifconfig_igb1_alias64=" | + | ifconfig_igb1_alias64=" |
- | ifconfig_igb1_alias65=" | + | ifconfig_igb1_alias65=" |
- | static_routes=" | + | static_routes=" |
- | route_LAB=" | + | route_LAB=" |
- | ipv6_static_routes=" | + | ipv6_static_routes=" |
- | ipv6_route_LAB=" | + | ipv6_route_LAB=" |
service hostname restart | service hostname restart | ||
service netif restart | service netif restart | ||
Line 149: | Line 149: | ||
Look like this router will prefer igb1 for inet4 and igb2 for inet6. | Look like this router will prefer igb1 for inet4 and igb2 for inet6. | ||
- | ==== R5 (ECMP router) ==== | + | ==== R2 (ECMP router) ==== |
- | R5 is like R2, a router with ECMP: 2 static routing toward the same destination but using 2 different next-hop.. | + | R2 is like R1, a router with ECMP: 2 static routing toward the same destination but using 2 different next-hop.. |
< | < | ||
Line 252: | Line 252: | ||
frr version 7.4 | frr version 7.4 | ||
frr defaults traditional | frr defaults traditional | ||
- | hostname | + | hostname |
+ | ! | ||
+ | interface igb0 | ||
+ | ipv6 ospf6 passive | ||
! | ! | ||
router ospf | router ospf | ||
Line 260: | Line 263: | ||
| | ||
| | ||
+ | ! | ||
+ | router ospf6 | ||
+ | | ||
+ | | ||
+ | | ||
! | ! | ||
line vty | line vty | ||
Line 281: | Line 289: | ||
frr version 7.4 | frr version 7.4 | ||
frr defaults traditional | frr defaults traditional | ||
- | hostname | + | hostname |
+ | ! | ||
+ | interface igb0 | ||
+ | ipv6 ospf6 passive | ||
! | ! | ||
router ospf | router ospf | ||
Line 289: | Line 300: | ||
| | ||
| | ||
+ | ! | ||
+ | router ospf6 | ||
+ | | ||
+ | | ||
+ | | ||
! | ! | ||
line vty | line vty | ||
Line 306: | Line 322: | ||
Copyright 1996-2005 Kunihiro Ishiguro, et al. | Copyright 1996-2005 Kunihiro Ishiguro, et al. | ||
- | homelab1# sh ip route 10.0.24.0/ | + | router1# sh ip route 10.0.24.0/ |
Routing entry for 10.0.24.0/ | Routing entry for 10.0.24.0/ | ||
Known via " | Known via " | ||
Line 312: | Line 328: | ||
* 10.0.112.2, via igb1, weight 1 | * 10.0.112.2, via igb1, weight 1 | ||
* 10.0.212.2, via igb2, weight 1 | * 10.0.212.2, via igb2, weight 1 | ||
+ | |||
+ | route1# sh ipv6 route 2001: | ||
+ | Routing entry for 2001: | ||
+ | Known via " | ||
+ | Last update 00:02:42 ago | ||
+ | * fe80:: | ||
+ | * fe80:: | ||
+ | |||
router1# exit | router1# exit | ||
+ | |||
[root@router1]~# | [root@router1]~# | ||
10.0.24.0/ | 10.0.24.0/ | ||
10.0.24.0/ | 10.0.24.0/ | ||
+ | |||
+ | [root@router1]~# | ||
+ | 2001: | ||
+ | 2001: | ||
+ | |||
</ | </ | ||
- | === Testing | + | ===== 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