The bestroute med-plus-igp command enables BGP to use the sum of MED multiplied by a MED multiplier and IGP cost multiplied by an IGP cost multiplier to select routes when MED is required to determine the optimal route.
The undo bestroute med-plus-igp command restores the default configuration.
By default, the MED and IGP cost of each route are used as separate route selection criteria.
Parameter | Description | Value |
---|---|---|
igp-multiplier igp-multiplier |
Specifies an IGP cost multiplier. |
The value is an integer ranging from 1 to 1000. The default value is 1. |
med-multiplier med-multiplier |
Specifies a MED multiplier. |
The value is an integer ranging from 1 to 1000. The default value is 1. |
Usage Scenario
To enable MBGP to use the sum of MED multiplied by a MED multiplier and IGP cost multiplied by an IGP cost multiplier to select routes when MED is required to determine the optimal route, run the bestroute med-plus-igp command. If you need two routes with different MEDs and IGP costs to balance traffic, ensure that the sum of MED multiplied by the MED multiplier and IGP cost multiplied by the IGP cost multiplier is the same between the two routes.
By default, if routes carry no MED, 0 is used as the MED.<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] ipv4-family multicast [*HUAWEI-bgp-af-multicast] bestroute med-plus-igp