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/01/15 12:39] – [Testing Load balancing] olivier | documentation:examples:ecmp [2020/01/26 19:46] – [Testing Load balancing] olivier | ||
---|---|---|---|
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). | ||
< | < | ||
Line 130: | Line 129: | ||
ipv6_route_VM4VM6=" | ipv6_route_VM4VM6=" | ||
ipv6_route_VM4VM5=" | ipv6_route_VM4VM5=" | ||
- | sed -i '' | ||
- | sed -i '' | ||
- | 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=" | ipv6_route_VM4VM1=" | ||
ipv6_route_VM4VM2=" | ipv6_route_VM4VM2=" | ||
- | sed -i '' | ||
- | sed -i '' | ||
- | 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 | + | Flows from VM1 to VM6 should be "flow-id shared" |
Using ping record feature like with this example: | Using ping record feature like with this example: | ||
< | < | ||
Line 308: | Line 299: | ||
| 10.0.12.1 | 10.0.35.5 | VM3 | VM4 | | | 10.0.12.1 | 10.0.35.5 | VM3 | VM4 | | ||
| 10.0.12.1 | 10.0.45.5 | VM4 | VM4 | | | 10.0.12.1 | 10.0.45.5 | VM4 | VM4 | | ||
- | | 10.0.12.1 | 10.0.56.6 | VM4 | VM4 | | + | | 10.0.12.1 | 10.0.56.6 | VM3 | VM4 | |
- | | 10.0.12.11 | 10.0.56.16 | VM4 | VM4 | | + | | 10.0.12.11 | 10.0.56.16 | VM3 | VM4 | |
- | | 10.0.12.21 | 10.0.56.26 | VM4 | VM4 | | + | | 10.0.12.21 | 10.0.56.26 | VM3 | VM4 | |
- | | 10.0.12.31 | 10.0.56.36 | VM4 | VM4 | | + | | 10.0.12.31 | 10.0.56.36 | VM3 | VM4 | |
- | | 10.0.12.41 | 10.0.56.46 | VM4 | VM4 | | + | | 10.0.12.41 | 10.0.56.46 | VM3 | VM4 | |
- | | 10.0.12.51 | 10.0.56.56 | VM4 | VM4 | | + | | 10.0.12.51 | 10.0.56.56 | VM3 | VM4 | |
| 2001: | | 2001: | ||
| 2001: | | 2001: | ||
Line 383: | Line 374: | ||
</ | </ | ||
+ | < | ||
+ | [root@VM1]~# | ||
+ | PING 10.0.56.26 (10.0.56.26) from 10.0.12.21: 56 data bytes | ||
+ | |||
+ | --- 10.0.56.26 ping statistics --- | ||
+ | 1 packets transmitted, | ||
+ | </ |
documentation/examples/ecmp.txt · Last modified: 2024/03/28 23:19 by olivier