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 [2022/12/11 17:56] – [Server] olivier | documentation:examples:ecmp [2022/12/11 18:17] – [Client] olivier | ||
---|---|---|---|
Line 22: | Line 22: | ||
==== Client ==== | ==== Client ==== | ||
- | A simple host with multiples aliases: | + | A simple host with static routes: |
< | < | ||
Line 29: | Line 29: | ||
ipv6_gateway_enable=NO \ | ipv6_gateway_enable=NO \ | ||
ifconfig_igb1=" | ifconfig_igb1=" | ||
- | ifconfig_igb1_alias1=" | ||
- | ifconfig_igb1_alias2=" | ||
- | ifconfig_igb1_alias3=" | ||
- | ifconfig_igb1_alias4=" | ||
- | ifconfig_igb1_alias5=" | ||
ifconfig_igb1_ipv6=" | ifconfig_igb1_ipv6=" | ||
- | ifconfig_igb1_alias61=" | ||
- | ifconfig_igb1_alias62=" | ||
- | ifconfig_igb1_alias63=" | ||
- | ifconfig_igb1_alias64=" | ||
- | ifconfig_igb1_alias65=" | ||
static_routes=" | static_routes=" | ||
route_LAB=" | route_LAB=" | ||
Line 148: | Line 138: | ||
==== Server ==== | ==== Server ==== | ||
- | A simple host with multiple aliases: | + | A simple host with some static routes: |
< | < | ||
Line 155: | Line 145: | ||
ipv6_gateway_enable=NO \ | ipv6_gateway_enable=NO \ | ||
ifconfig_igb1=" | ifconfig_igb1=" | ||
- | ifconfig_igb1_alias1=" | ||
- | ifconfig_igb1_alias2=" | ||
- | ifconfig_igb1_alias3=" | ||
- | ifconfig_igb1_alias4=" | ||
- | ifconfig_igb1_alias5=" | ||
ifconfig_igb1_ipv6=" | ifconfig_igb1_ipv6=" | ||
- | ifconfig_igb1_alias61=" | ||
- | ifconfig_igb1_alias62=" | ||
- | ifconfig_igb1_alias63=" | ||
- | ifconfig_igb1_alias64=" | ||
- | ifconfig_igb1_alias65=" | ||
static_routes=" | static_routes=" | ||
route_12=" | route_12=" | ||
Line 186: | Line 166: | ||
==== R1 (ECMP router) ==== | ==== R1 (ECMP router) ==== | ||
- | In place of static routes, FRR is enabled: | + | In place of static routes, |
< | < | ||
Line 198: | Line 178: | ||
frr version 7.4 | frr version 7.4 | ||
frr defaults traditional | frr defaults traditional | ||
- | hostname | + | hostname |
! | ! | ||
interface igb0 | interface igb0 | ||
Line 206: | Line 186: | ||
ospf router-id 1.1.1.1 | ospf router-id 1.1.1.1 | ||
| | ||
- | | + | |
- | | + | |
- | | + | |
! | ! | ||
router ospf6 | router ospf6 | ||
Line 224: | Line 204: | ||
==== R2 (ECMP router) ==== | ==== R2 (ECMP router) ==== | ||
- | In place of static routes, | + | Same as R1 with OSPF and FRR: |
< | < | ||
sysrc frr_vtysh_boot=" | sysrc frr_vtysh_boot=" | ||
Line 235: | Line 215: | ||
frr version 7.4 | frr version 7.4 | ||
frr defaults traditional | frr defaults traditional | ||
- | hostname | + | hostname |
! | ! | ||
interface igb0 | interface igb0 | ||
Line 243: | Line 223: | ||
ospf router-id 2.2.2.2 | ospf router-id 2.2.2.2 | ||
| | ||
- | | + | |
- | | + | |
- | | + | |
! | ! | ||
router ospf6 | router ospf6 | ||
Line 297: | Line 277: | ||
===== Test Load balancing IP packets ===== | ===== Test Load balancing IP packets ===== | ||
- | Flows from the client to the server should be " | + | Flows from the client to the server should be " |
+ | |||
+ | On server: | ||
+ | < | ||
+ | root@server: | ||
+ | </ | ||
+ | |||
+ | On client: | ||
+ | < | ||
+ | root@client: | ||
+ | </ | ||
+ | |||
+ | On R1: | ||
+ | < | ||
+ | systat -ifstat -match igb0, | ||
+ | |||
+ | /0 / | ||
+ | Load Average | ||
+ | |||
+ | Interface | ||
+ | | ||
+ | | ||
+ | |||
+ | | ||
+ | | ||
+ | |||
+ | | ||
+ | | ||
+ | |||
+ | </ | ||
+ | |||
+ | => We confirm that 20 Kps entering igb0 and are equally split by exiting by igb1 and igb2 | ||
+ | |||
+ | On R2: | ||
+ | < | ||
+ | systat -ifstat -match igb0, | ||
+ | |||
+ | /0 / | ||
+ | Load Average | ||
+ | |||
+ | Interface | ||
+ | | ||
+ | | ||
+ | |||
+ | | ||
+ | | ||
+ | |||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | => R2 has no choice than receiving packets from igb1 and igb2, and forwarding them through igb0. | ||
- | ^ Source ^ Destination ^ Ongoing path selected by R1 ^ Returning path selected by R2^ | ||
- | | 10.0.31.3 | 10.0.24.4 | igb1 | igb2 | | ||
- | | 10.0.31.3 | 10.0.24.14 | igb2 | igb1 | | ||
- | | 10.0.31.13 | 10.0.24.14 | igb2 | igb1 | | ||
- | | 10.0.31.23 | 10.0.24.24 | igb1 | igb2 | | ||
- | | 10.0.31.33 | 10.0.24.34 | igb2 | igb2 | | ||
- | | 10.0.31.43 | 10.0.24.44 | igb1 | igb2 | | ||
- | | 10.0.31.53 | 10.0.24.54 | igb1 | igb1 | | ||
- | | 2001: | ||
- | | 2001: | ||
- | | 2001: | ||
- | | 2001: | ||
- | | 2001: |
documentation/examples/ecmp.txt · Last modified: 2024/03/28 23:19 by olivier