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 revisionBoth sides next revision
documentation:examples:ecmp [2020/09/23 14:49] – [Testing Load balancing] olivierdocumentation:examples:ecmp [2020/09/23 14:56] – [FRR Multipath setup] olivier
Line 236: Line 236:
 ===== FRR Multipath setup ===== ===== FRR Multipath setup =====
  
 +Replacing static routes by FRR (OSPF) compiled with MULTIPATH option.
 +
 +==== R1 (ECMP router) ====
 +
 +In place of static routes, FRR is enabled:
 +
 +<code>
 +sysrc frr_vtysh_boot="YES" \
 +  frr_enable="YES" \
 +  frr_daemons="zebra ospfd ospf6d" \
 +  watchfrr_flags=" -d -r /usr/sbin/servicebBfrrbBrestartbB%s -s /usr/sbin/servicebBfrrbBstartbB%s -k /usr/sbin/servicebBfrrbBstopbB%s -b bB -t 30 zebra ospfd ospf6d" \
 +  watchfrr_enable="YES"
 +
 +cat > /usr/local/etc/frr/frr.conf <EOF
 +frr version 7.4
 +frr defaults traditional
 +hostname router1
 +!
 +router ospf
 + ospf router-id 1.1.1.1
 + passive-interface igb0
 + network 10.0.31.0/24 area 0
 + network 10.0.112.0/24 area 0
 + network 10.0.212.0/24 area 0
 +!
 +line vty
 +!
 +EOF
 +service frr start
 +service watchfrr start
 +</code>
 +
 +==== R2 (ECMP router) ====
 +
 +In place of static routes, FRR is enabled:
 +<code>
 +sysrc frr_vtysh_boot="YES" \
 +  frr_enable="YES" \
 +  frr_daemons="zebra ospfd ospf6d" \
 +  watchfrr_flags=" -d -r /usr/sbin/servicebBfrrbBrestartbB%s -s /usr/sbin/servicebBfrrbBstartbB%s -k /usr/sbin/servicebBfrrbBstopbB%s -b bB -t 30 zebra ospfd ospf6d" \
 +  watchfrr_enable="YES"
 +
 +cat > /usr/local/etc/frr/frr.conf <EOF
 +frr version 7.4
 +frr defaults traditional
 +hostname router2
 +!
 +router ospf
 + ospf router-id 2.2.2.2
 + passive-interface igb0
 + network 10.0.24.0/24 area 0
 + network 10.0.112.0/24 area 0
 + network 10.0.212.0/24 area 0
 +!
 +line vty
 +!
 +EOF
 +service frr start
 +service watchfrr start
 +</code>
 +
 +==== Checking routes installed ====
 +
 +On R1:
 +<code>
 +[root@router1]~# vtysh
 +
 +Hello, this is FRRouting (version 7.4).
 +Copyright 1996-2005 Kunihiro Ishiguro, et al.
 +
 +homelab1# sh ip route 10.0.24.0/24
 +Routing entry for 10.0.24.0/24
 +  Known via "ospf", distance 110, metric 20, best
 +  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]~# netstat -rn4 | grep 10.0.24.0/24
 +10.0.24.0/24       10.0.212.2         UG1        igb2
 +10.0.24.0/24       10.0.112.2         UG1        igb1
 +</code>
  
 === Testing Load balancing === === Testing Load balancing ===
documentation/examples/ecmp.txt · Last modified: 2024/03/28 23:19 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