If the path to a destination is known via more than one equal-cost path, the routing table will install multiple paths in the routing table and balance traffic over those paths. To override the default maximum number of paths (which is 6 for the current IOS releases) that can be installed in the routing table, use the following command in router configuration mode:
maximum-paths maximum
Note that this command does not apply to BGP, which installs only one route to a destination.