Configuring equal cost multi-path (ECMP) routing for static IP routes

ECMP routing allows multiple entries for routes to the same destination. Each path has the same cost as the other paths, but a different next-hop router. The ip load-sharing command specifies the maximum number of equal paths that can be configured. Values range from 2 to 4.

Example of an ECMP set with the same destination but different next-hop routers

This example shows configuration of an ECMP set with two different gateways to the same destination address but through different next-hop routers. For more information, see IPv6 Configuration Guide for your switch.

switch(config)# ip route 127.10.144.21/24 10.10.10.2 metric 12 distance 10
switch(config)# ip route 127.10.144.21/24 10.10.10.3 metric 12 distance 10