Specifications

Chapter 5. IBM System Networking RackSwitch implementation 191
Use the following steps to configure ECMP static routes.
1. Define multiple static routes for the same destination but with different gateways.
Run ip route <IP subnet> <IP netmask> <IP nexthop> [<interface number>] to define
a static route. Enter all addresses by using dotted decimal notation, as shown in
Example 5-39.
Example 5-39 ECMP static routes configuration
ACC-1#configure terminal
Enter configuration commands, one per line. End with Ctrl/Z.
ACC-1(config)#ip route 10.0.0.0 255.255.0.0 10.0.101.2
wait ...
ACC-1(config)#ip route 10.0.0.0 255.255.0.0 10.0.102.2
wait ...
Aug 9 8:59:03 ACC-1 NOTICE ip: ECMP route configured, Gateway health check enabled
Aug 9 8:59:04 ACC-1 NOTICE system: ECMP route gateway 10.0.101.2 is up
Aug 9 8:59:04 ACC-1 NOTICE system: ECMP route gateway 10.0.102.2 is up
ACC-1(config)#^Z
ACC-1#
2. Configure hashing and health-check.
Define additional ECMP static routes parameters such as hashing, health-check timers,
and retries.
Run ip route ecmphash [sip][dip][protocol][tcpl4][udpl4][sport][dport] to
configure ECMP hashing. You may choose one or more of the following parameters:
sip: Source IP address (default)
dip: Destination IP address (default)
protocol: Layer 3 protocol
tcpl4: Layer 4 TCP traffic (default)
udpl4: Layer 4 UDP traffic (default)
sport: Source port (default)
dport: Destination port (default)
In Example 5-40, one more hashing parameter was configured in addition to the
default settings.
Example 5-40 Hashing parameter configuration
ACC-1#configure terminal
ACC-1(config)#ip route ecmphash protocol
Aug 9 9:26:00 ACC-1 WARNING cfg: ECMP hash got changed, Dataplane L3 hash
includes configured Trunk hash and ECMP hash
wait ...
ACC-1(config)#^Z
ACC-1#
Run ip route interval <1-60> to configure the ECMP health-check ping interval, in
seconds. The default value is 1 second.
Run ip route retries <1-60> to configure the number of ECMP health-check retries.
The default value is 3.
Important: For G8264 switch, only sip and dip hashing parameters are available