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 revision Previous revision
Next revision
Previous revision
documentation:examples:ecmp [2020/01/15 12:40]
olivier [Testing Fail Over]
documentation:examples:ecmp [2020/02/19 10:45] (current)
olivier [Testing Load balancing]
Line 110: Line 110:
  
 VM 2 is a router with ECMP: 2 static routes toward the same destination but using 2 different next-hop. VM 2 is a router with ECMP: 2 static routes toward the same destination but using 2 different next-hop.
-Need to disable fastforward by re-enabling ICMP redirect (disabled on BSDRP by default). 
  
 <code> <code>
Line 130: Line 129:
  ipv6_route_VM4VM6="2001:db8:56:: -prefixlen 64 2001:db8:24::4" \  ipv6_route_VM4VM6="2001:db8:56:: -prefixlen 64 2001:db8:24::4" \
  ipv6_route_VM4VM5="2001:db8:45:: -prefixlen 64 2001:db8:24::4"  ipv6_route_VM4VM5="2001:db8:45:: -prefixlen 64 2001:db8:24::4"
-sed -i '' -e '/net.inet.ip.redirect=0/d' /etc/sysctl.conf 
-sed -i '' -e '/net.inet6.ip6.redirect=0/d' /etc/sysctl.conf 
-sysctl net.inet.ip.redirect=1 
-sysctl net.inet6.ip6.redirect=1 
 service hostname restart service hostname restart
 service netif restart service netif restart
Line 245: Line 240:
  ipv6_route_VM4VM1="2001:db8:12:: -prefixlen 64 2001:db8:45::4" \  ipv6_route_VM4VM1="2001:db8:12:: -prefixlen 64 2001:db8:45::4" \
  ipv6_route_VM4VM2="2001:db8:24:: -prefixlen 64 2001:db8:45::4"  ipv6_route_VM4VM2="2001:db8:24:: -prefixlen 64 2001:db8:45::4"
-sed -i '' -e '/net.inet.ip.redirect=0/d' /etc/sysctl.conf 
-sed -i '' -e '/net.inet6.ip6.redirect=0/d' /etc/sysctl.conf 
-sysctl net.inet.ip.redirect=1 
-sysctl net.inet6.ip6.redirect=1 
 service hostname restart service hostname restart
 service netif restart service netif restart
Line 285: Line 276:
 ==== Testing Load balancing ==== ==== Testing Load balancing ====
  
-Flows from VM1 to VM6 should be load-balanced by VM2 toward VM3 and VM4. Let's check using multiple sources and destination IP addresses.+Flows from VM1 to VM6 should be "flow-id shared" by VM2 toward VM3 and VM4. Let's check using multiple sources and destination IP addresses.
 Using ping record feature like with this example: Using ping record feature like with this example:
 <code> <code>
documentation/examples/ecmp.1579088449.txt.gz ยท Last modified: 2020/01/15 12:40 by olivier