Routing Over Multiple Paths with Equal Costs
Problem
You want to restrict how many paths your router can use simultaneously to reach a particular destination.
Solution
By default, the router will install up to four routes to the same destination for most routing protocols, except BGP where the default is one, and static routes that allow six. You can change this default to any value between one and sixteen by using the configuration command maximum-paths. In IOS versions before 12.3(2)T, the maximum number of paths was six:
Router#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router(config)#router ospfRouter(config-router)#65510maximum-pathsRouter(config-router)#2endRouter#
The same syntax works for other routing protocols:
Router#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router(config)#router eigrpRouter(config-router)#99maximum-pathsRouter(config-router)#2endRouter#
In IOS Version 12.2T, Cisco introduced a new command to allow you to configure the number iBGP paths separately from eBGP. You set the maximum number of eBGP paths using the standard maximum-paths command, and specify the number of paths for iBGP separately:
Router#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router(config)#router bgpRouter(config-router)#65511maximum-pathsRouter(config-router)#2maximum-paths ibgpRouter(config-router)#3endRouter#
IOS releases prior to 12.2T only include a standard maximum-paths ...