Configuring 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.

An ECMP set with the same destination but different next-hop routers shows configuration of an ECMP set with two different gateways to the same destination address but through different next-hop routers.

An ECMP set with the same destination but different next-hop routers

HP Switch(config)# ip route 127.10.144.21/24 10.10.10.2 metric 12 distance 10 1


HP Switch(config)# ip route 127.10.144.21/24 10.10.10.3 metric 12 distance 10

1

Configures an ECMP set with 2 different gateways to the same destination address.