For BGP:
maximum-paths [ ibgp | eibgp ] maxPaths
no maximum-paths [ ibgp | eibgp ] [ maxPaths ]
For IS-IS and RIP:
maximum-paths maxPaths
no maximum-paths
For OSPF:
maximum-paths maxPaths
no maximum-paths maxPaths
Command introduced before JUNOSe Release 7.1.0.
Controls the maximum number of equal-cost paths to the same destination that BGP, IS-IS, OSPF, or RIP can install in the routing table to support ECMP.
For BGP and RIP, issue the command from Router Configuration mode to apply the value to routes in the global RIB. In Address Family Configuration mode, issue the command only in the context of IPv4 unicast and IPv6 unicast address families to apply the value only to routes in the global RIB or the specific VRF for the IPv4 unicast or IPv6 unicast address family; This command is not supported for VPNv4 or VPNv6 address families.
For IS-IS or OSPF, issue the command from Router Configuration mode.
The no version restores the default value, 1 path for BGP or 4 paths for IS-IS, OSPF, and RIP.
Address Family Configuration, Router Configuration