User Tools

Site Tools


documentation:examples:ecmp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
documentation:examples:ecmp [2022/12/11 18:39] – [R2 (ECMP router)] olivierdocumentation:examples:ecmp [2025/01/17 18:53] (current) – [R2 (ECMP router)] olivier
Line 1: Line 1:
 ====== Equal-cost multi-path routing (ECMP) ====== ====== Equal-cost multi-path routing (ECMP) ======
  
-This lab need a FreeBSD 13-head r366390 minimum ([[https://reviews.freebsd.org/D26449|new ECMP routing code ]]) 
 ===== Presentation ===== ===== Presentation =====
  
Line 30: Line 29:
   ifconfig_igb1="inet 10.0.12.1/24" \   ifconfig_igb1="inet 10.0.12.1/24" \
   ifconfig_igb1_ipv6="inet6 2001:db8:12::3 prefixlen 64" \   ifconfig_igb1_ipv6="inet6 2001:db8:12::3 prefixlen 64" \
-  static_routes="LAB" \ 
   route_LAB="-net 10.0.0.0/16 10.0.12.2" \   route_LAB="-net 10.0.0.0/16 10.0.12.2" \
 +  static_routes="LAB" \
   ipv6_static_routes="LAB" \   ipv6_static_routes="LAB" \
   ipv6_route_LAB="2001:db8:: -prefixlen 32 2001:db8:12::2"   ipv6_route_LAB="2001:db8:: -prefixlen 32 2001:db8:12::2"
Line 121: Line 120:
   ifconfig_igb2="inet 10.0.232.3/24" \   ifconfig_igb2="inet 10.0.232.3/24" \
   ifconfig_igb2_ipv6="inet6 2001:db8:232::3 prefixlen 64" \   ifconfig_igb2_ipv6="inet6 2001:db8:232::3 prefixlen 64" \
-  static_routes="DST1 DST2 SRC1 SRC2" \ +  static_routes="MPATH1 MPATH2" \ 
-  route_DST1="-net 10.0.0.0/16 10.0.231.4"+  route_MPATH1="-net 10.0.0.0/16 10.0.231.4"
-  route_DST2="-net 10.0.0.0/16 10.0.232.4" \ +  route_MPATH2="-net 10.0.0.0/16 10.0.232.4"
-  route_SRC1="-net 10.0.12.0/24 10.0.231.2"+  ipv6_static_routes="MPATH1 MPATH2" \
-  route_SRC2="-net 10.0.12.0/24 10.0.232.2" \ +
-  ipv6_static_routes="DST1 DST2 SRC1 SRC2" \+
   ipv6_route_MPATH1="2001:db8:: -prefixlen 32 2001:db8:231::4" \   ipv6_route_MPATH1="2001:db8:: -prefixlen 32 2001:db8:231::4" \
-  ipv6_route_MPATH2="2001:db8:: -prefixlen 32 2001:db8:231::4" \ +  ipv6_route_MPATH2="2001:db8:: -prefixlen 32 2001:db8:232::4"
-  ipv6_route_SRC1="2001:db8:12:: -prefixlen 64 2001:db8:231::2"+
-  ipv6_route_SRC2="2001:db8:12:: -prefixlen 64 2001:db8:231::2"+
 service hostname restart service hostname restart
 service netif restart service netif restart
Line 146: Line 141:
   ifconfig_igb1="inet 10.0.34.4/24" \   ifconfig_igb1="inet 10.0.34.4/24" \
   ifconfig_igb1_ipv6="inet6 2001:db8:34::4 prefixlen 64" \   ifconfig_igb1_ipv6="inet6 2001:db8:34::4 prefixlen 64" \
-  static_routes="12 231 232" \ +  static_routes="LAB" \ 
-  route_12="-net 10.0.12.0/24 10.0.34.3"+  route_LAB="-net 10.0.0.0/16 10.0.34.3"
-  route_231="-net 10.0.231.0/24 10.0.34.3"+  ipv6_static_routes="LAB" \ 
-  route_232="-net 10.0.232.0/24 10.0.34.3"+  ipv6_route_LAB="2001:db8:: -prefixlen 32 2001:db8:34::3"
-  ipv6_static_routes="12 231 232" \ +
-  ipv6_route_12="2001:db8:12:: -prefixlen 64 2001:db8:34::3"+
-  ipv6_route_231="2001:db8:231:: -prefixlen 64 2001:db8:34::3"+
-  ipv6_route_232="2001:db8:232:: -prefixlen 64 2001:db8:34::3"+
 service hostname restart service hostname restart
 service netif restart service netif restart
Line 266: Line 257:
 Copyright 1996-2005 Kunihiro Ishiguro, et al. Copyright 1996-2005 Kunihiro Ishiguro, et al.
  
-R1# sh ip route 10.0.34.0/24 +R1# sh ip route 10.0.0.0 
-Routing entry for 10.0.34.0/24 +Routing entry for 10.0.0.0/16 
-  Known via "ospf", distance 110, metric 110, best +  Known via "ospf", distance 110, metric 20, best 
-  Last update 00:01:51 ago+  Last update 00:02:26 ago
   * 10.0.231.3, via igb1, weight 1   * 10.0.231.3, via igb1, weight 1
   * 10.0.232.3, via igb2, weight 1   * 10.0.232.3, via igb2, weight 1
  
-R1# sh ipv6 route 2001:db8:34::/64 +R1# sh ipv6 route 2001:db8:: 
-Routing entry for 2001:db8:34::/64 +Routing entry for 2001:db8::/32
-  Known via "ospf6", distance 110, metric 110, best +
-  Last update 00:02:15 ago +
-  * fe80::20d:b9ff:fe45:7ad5, via igb1, weight 1 +
-  * fe80::20d:b9ff:fe45:7ad6, via igb2, weight 1 +
- +
-route1# sh ipv6 route 2001:db8:24::/64 +
-Routing entry for 2001:db8:24::/64+
   Known via "ospf6", distance 110, metric 20, best   Known via "ospf6", distance 110, metric 20, best
-  Last update 00:02:42 ago+  Last update 00:02:39 ago
   * fe80::20d:b9ff:fe45:7ad5, via igb1, weight 1   * fe80::20d:b9ff:fe45:7ad5, via igb1, weight 1
   * fe80::20d:b9ff:fe45:7ad6, via igb2, weight 1   * fe80::20d:b9ff:fe45:7ad6, via igb2, weight 1
documentation/examples/ecmp.1670780373.txt.gz · Last modified: 2022/12/11 18:39 by olivier

Except where otherwise noted, content on this wiki is licensed under the following license: BSD 2-Clause
Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki