13.5.3 BGP4 multipath configuration
- <Structure of this section>
(1) List of configuration commands
The following tables list the commands used to configure BGP4 multipathing.
Command name |
Description |
---|---|
bgp always-compare-med |
Enables comparison of the MED attribute of routes learned from different ASs. (If this command has not been set, you cannot set the all-as parameter in the maximum-paths command.) |
maximum-paths |
Sets the maximum number of paths to a given destination. |
(2) Configuring BGP4 Multipathing
- Points to note
-
To specify the all-as parameter in the maximum-paths command, you must first set the bgp always-compare-med command.
Command examples
-
(config)# router bgp 65531
(config-router)# bgp router-id 192.168.1.100
(config-router)# neighbor 172.16.2.2 remote-as 65532
(config-router)# neighbor 172.17.2.2 remote-as 65533
Configures the peers that will participate in multipath routing. In this example, the routes learned from AS65532 and AS65533 will be alternative paths in a multipath route.
-
(config-router)# bgp always-compare-med
(config-router)# maximum-paths 4 all-as
(config-router)# exit
Specifies that a maximum of four paths, including paths learned from different ASs, can be in a multipath.