set protocols bgp bestpath as-path type multipath-relax
The set protocols bgp bestpath as-path type multipath-relax command configures Border Gateway Protocol (BGP) to treat two BGP routes as equal cost even if their AS-paths differ, as long as their AS-path lengths and other relevant attributes are the same. This allows routes with different AS-paths to be programmed into the forwarding table as equal cost multipath routes. Any changes in BGP configuration are applied by restarting the current BGP sessions on the VRFs.
The delete protocols bgp bestpath as-path type multipath-relax command restores the default behavior which configures BGP to treat two BGP routes as different costs when their AS-paths differ.
Command Syntax
set protocols bgp [vrf<vrf-name>] bestpath as-path multipath-relax type [as-set|no-as-set]
delete protocols bgp [vrf<vrf-name>] bestpath as-path multipath-relax type [as-set|no-as-set]
Parameter
Parameter | Description |
vrf <vrf-name> | Optional. Specifies a VRF name. The value is a string. It’s a user-defined VRF set by the command set ip vrf <vrf-name> [description <string>]. |
[as-set|no-as-set] | Optional. Specifies the AS_PATH attribute advertised for this route weather contain or not contain an AS_SET.
|
Example
• This example configures Border Gateway Protocol (BGP) to treat two BGP routes as equal cost without considering the AS-paths value.
admin@XorPlus# set protocols bgp bestpath as-path multipath-relax admin@XorPlus# commit
Copyright © 2024 Pica8 Inc. All Rights Reserved.