bestroute med-plus-igp (BGP-IPv6 unicast address family view)

Function

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.

Format

bestroute med-plus-igp [ igp-multiplier igp-multiplier | med-multiplier med-multiplier ] *

undo bestroute med-plus-igp [ igp-multiplier igp-multiplier | med-multiplier med-multiplier ] *

Parameters

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.

Views

BGP-IPv6 unicast address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

By default, the MED and IGP cost of each route are used as separate route selection criteria. To enable 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, 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.

Example

# Enable BGP to use the sum of MED multiplied by an MED multiplier and IGP cost multiplied by an IGP cost multiplier to select routes when MED is required to determine the optimal route.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] ipv6-family unicast
[*HUAWEI-bgp-af-ipv6] bestroute med-plus-igp
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >