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
Last revisionBoth sides next revision
documentation:examples:ecmp [2022/12/11 18:17] – [Server] olivierdocumentation:examples:ecmp [2022/12/11 18:40] – [Checking routes installed] olivier
Line 22: Line 22:
 ==== Client ==== ==== Client ====
  
-A simple host with multiples aliases:+A simple host with static routes:
  
 <code> <code>
Line 122: Line 122:
   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="DST1 DST2 SRC1 SRC2" \
-  route_DST1="-net 10.0.0.0/16 10.0.231.3" \ +  route_DST1="-net 10.0.0.0/16 10.0.231.4" \ 
-  route_DST2="-net 10.0.0.0/16 10.0.232.3" \+  route_DST2="-net 10.0.0.0/16 10.0.232.4" \
   route_SRC1="-net 10.0.12.0/24 10.0.231.2" \   route_SRC1="-net 10.0.12.0/24 10.0.231.2" \
   route_SRC2="-net 10.0.12.0/24 10.0.232.2" \   route_SRC2="-net 10.0.12.0/24 10.0.232.2" \
   ipv6_static_routes="DST1 DST2 SRC1 SRC2" \   ipv6_static_routes="DST1 DST2 SRC1 SRC2" \
-  ipv6_route_MPATH1="2001:db8:: -prefixlen 32 2001:db8:231::3" \ +  ipv6_route_MPATH1="2001:db8:: -prefixlen 32 2001:db8:231::4" \ 
-  ipv6_route_MPATH2="2001:db8:: -prefixlen 32 2001:db8:231::3" \+  ipv6_route_MPATH2="2001:db8:: -prefixlen 32 2001:db8:231::4" \
   ipv6_route_SRC1="2001:db8:12:: -prefixlen 64 2001:db8:231::2" \   ipv6_route_SRC1="2001:db8:12:: -prefixlen 64 2001:db8:231::2" \
   ipv6_route_SRC2="2001:db8:12:: -prefixlen 64 2001:db8:231::2"   ipv6_route_SRC2="2001:db8:12:: -prefixlen 64 2001:db8:231::2"
Line 176: Line 176:
  
 cat > /usr/local/etc/frr/frr.conf <EOF cat > /usr/local/etc/frr/frr.conf <EOF
-frr version 7.4+frr version 8.4.1
 frr defaults traditional frr defaults traditional
 hostname R1 hostname R1
 ! !
 interface igb0 interface igb0
 + ip ospf passive
 + ipv6 ospf6 area 0.0.0.0
  ipv6 ospf6 passive  ipv6 ospf6 passive
 +exit
 +!
 +interface igb1
 + ipv6 ospf6 area 0.0.0.0
 +exit
 +!
 +interface igb2
 + ipv6 ospf6 area 0.0.0.0
 +exit
 ! !
 router ospf router ospf
  ospf router-id 1.1.1.1  ospf router-id 1.1.1.1
- passive-interface igb0 
  network 10.0.12.0/24 area 0  network 10.0.12.0/24 area 0
  network 10.0.231.0/24 area 0  network 10.0.231.0/24 area 0
  network 10.0.232.0/24 area 0  network 10.0.232.0/24 area 0
 +exit
 ! !
 router ospf6 router ospf6
- interface igb0 area 0.0.0.0 +exit
- interface igb1 area 0.0.0.0 +
- interface igb2 area 0.0.0.0 +
-+
-line vty+
 ! !
 EOF EOF
Line 208: Line 215:
 sysrc frr_vtysh_boot="YES" \ sysrc frr_vtysh_boot="YES" \
   frr_enable="YES" \   frr_enable="YES" \
-  frr_daemons="zebra ospfd ospf6d" \+  frr_daemons="zebra staticd 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_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"   watchfrr_enable="YES"
  
 cat > /usr/local/etc/frr/frr.conf <EOF cat > /usr/local/etc/frr/frr.conf <EOF
-frr version 7.4+frr version 8.4.1
 frr defaults traditional frr defaults traditional
 hostname R2 hostname R2
 +!
 +ip route 10.0.0.0/16 10.0.34.4
 +ipv6 route 2001:db8::/32 2001:db8:231::4
 ! !
 interface igb0 interface igb0
 + ip ospf passive
 + ipv6 ospf6 area 0.0.0.0
  ipv6 ospf6 passive  ipv6 ospf6 passive
 +exit
 +!
 +interface igb1
 + ipv6 ospf6 area 0.0.0.0
 +exit
 +!
 +interface igb2
 + ipv6 ospf6 area 0.0.0.0
 +exit
 ! !
 router ospf router ospf
  ospf router-id 2.2.2.2  ospf router-id 2.2.2.2
- passive-interface igb0+ redistribute static
  network 10.0.34.0/24 area 0  network 10.0.34.0/24 area 0
  network 10.0.231.0/24 area 0  network 10.0.231.0/24 area 0
  network 10.0.232.0/24 area 0  network 10.0.232.0/24 area 0
 +exit
 ! !
 router ospf6 router ospf6
- interface igb0 area 0.0.0.0 + redistribute static 
- interface igb1 area 0.0.0.0 +exit
- interface igb2 area 0.0.0.0 +
-+
-line vty+
 ! !
 EOF EOF
Line 243: Line 262:
 On R1: On R1:
 <code> <code>
-[root@router1]~# vtysh +root@R1:~ # vtysh 
- +Hello, this is FRRouting (version 8.4.1).
-Hello, this is FRRouting (version 7.4).+
 Copyright 1996-2005 Kunihiro Ishiguro, et al. Copyright 1996-2005 Kunihiro Ishiguro, et al.
  
-router1# sh ip route 10.0.24.0/24 +R1# sh ip route 10.0.0.0 
-Routing entry for 10.0.24.0/24+Routing entry for 10.0.0.0/16
   Known via "ospf", distance 110, metric 20, best   Known via "ospf", distance 110, metric 20, best
-  Last update 00:06:39 ago +  Last update 00:02:26 ago 
-  * 10.0.112.2, via igb1, weight 1 +  * 10.0.231.3, via igb1, weight 1 
-  * 10.0.212.2, via igb2, weight 1+  * 10.0.232.3, via igb2, weight 1
  
-route1# sh ipv6 route 2001:db8:24::/64 +R1# sh ipv6 route 2001:db8:: 
-Routing entry for 2001:db8:24::/64+Routing entry for 2001:db8::/32
   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
- 
- 
-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 
- 
-[root@router1]~# netstat -rn6 | grep 2001:db8:24::/64 
-2001:db8:24::/64                  fe80::20d:b9ff:fe45:7ad6%igb2 UG1        igb2 
-2001:db8:24::/64                  fe80::20d:b9ff:fe45:7ad5%igb1 UG1        igb1 
- 
 </code> </code>
  
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