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 [2019/10/30 15:32] – [VM 5 (ECMP router)] olivier | documentation:examples:ecmp [2020/01/14 01:22] – [VM 1 (client)] olivier | ||
---|---|---|---|
Line 84: | Line 84: | ||
< | < | ||
- | sysrc hostname=VM1 | + | sysrc hostname=VM1 |
- | sysrc gateway_enable=NO | + | gateway_enable=NO |
- | sysrc ipv6_gateway_enable=NO | + | ipv6_gateway_enable=NO |
- | sysrc ifconfig_vtnet0=" | + | ifconfig_vtnet0=" |
- | sysrc ifconfig_vtnet0_alias1=" | + | ifconfig_vtnet0_alias1=" |
- | sysrc ifconfig_vtnet0_alias2=" | + | ifconfig_vtnet0_alias2=" |
- | sysrc ifconfig_vtnet0_alias3=" | + | ifconfig_vtnet0_alias3=" |
- | sysrc ifconfig_vtnet0_alias4=" | + | ifconfig_vtnet0_alias4=" |
- | sysrc ifconfig_vtnet0_alias5=" | + | ifconfig_vtnet0_alias5=" |
- | sysrc ifconfig_vtnet0_ipv6=" | + | ifconfig_vtnet0_ipv6=" |
- | sysrc ifconfig_vtnet0_alias61=" | + | ifconfig_vtnet0_alias61=" |
- | sysrc ifconfig_vtnet0_alias62=" | + | ifconfig_vtnet0_alias62=" |
- | sysrc ifconfig_vtnet0_alias63=" | + | ifconfig_vtnet0_alias63=" |
- | sysrc ifconfig_vtnet0_alias64=" | + | ifconfig_vtnet0_alias64=" |
- | sysrc ifconfig_vtnet0_alias65=" | + | ifconfig_vtnet0_alias65=" |
- | sysrc defaultrouter=" | + | defaultrouter=" |
- | sysrc ipv6_defaultrouter=" | + | ipv6_defaultrouter=" |
service hostname restart | service hostname restart | ||
service netif restart | service netif restart | ||
Line 140: | Line 140: | ||
</ | </ | ||
+ | And first problem using static route: | ||
+ | |||
+ | < | ||
+ | add net 10.0.56.0: gateway 10.0.23.3 fib 0 | ||
+ | add net 10.0.35.0: gateway 10.0.23.3 fib 0 | ||
+ | add net 10.0.56.0: gateway 10.0.24.4 fib 0: route already in table | ||
+ | add net 10.0.45.0: gateway 10.0.24.4 fib 0 | ||
+ | add net 2001: | ||
+ | add net 2001: | ||
+ | add net 2001: | ||
+ | add net 2001: | ||
+ | [root@VM2]~# | ||
+ | route to: 10.0.56.0 | ||
+ | destination: | ||
+ | mask: 255.255.255.0 | ||
+ | gateway: 10.0.23.3 | ||
+ | fib: 0 | ||
+ | interface: vtnet1 | ||
+ | flags: < | ||
+ | | ||
+ | | ||
+ | </ | ||
==== VM 3 (router) ==== | ==== VM 3 (router) ==== | ||
Line 246: | Line 268: | ||
==== 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 load-balanced by VM2 toward VM3 and VM4. Let's check using multiple sources and destination IP addresses. |
+ | Using ping record feature like with this example: | ||
+ | < | ||
+ | [root@VM1]~# | ||
+ | PING 10.0.56.26 (10.0.56.26) from 10.0.12.21: 56 data bytes | ||
+ | 64 bytes from 10.0.56.26: icmp_seq=0 ttl=61 time=0.358 ms | ||
+ | RR: | ||
+ | 10.0.35.3 | ||
+ | 10.0.56.5 | ||
+ | 10.0.56.26 | ||
+ | 10.0.35.5 | ||
+ | 10.0.23.3 | ||
+ | 10.0.12.2 | ||
+ | 10.0.12.21 | ||
+ | |||
+ | --- 10.0.56.26 ping statistics --- | ||
+ | 1 packets transmitted, | ||
+ | round-trip min/ | ||
+ | </ | ||
^ Source ^ Destination ^ Ongoing path selected by VM2 ^ Returning path selected by VM5^ | ^ Source ^ Destination ^ Ongoing path selected by VM2 ^ Returning path selected by VM5^ | ||
Line 263: | Line 303: | ||
| 10.0.12.1 | 10.0.45.5 | VM4 | VM3 | | | 10.0.12.1 | 10.0.45.5 | VM4 | VM3 | | ||
- | < | + | < |
documentation/examples/ecmp.txt · Last modified: 2024/03/28 23:19 by olivier