local-cross-routing non-med

Function

The local-cross-routing non-med command enables BGP to remove the MED attribute from the imported routes that are locally crossed and are to be advertised to a specified peer after an export policy for which the apply cost-type command is run is applied to the peer.

The undo local-cross-routing non-med command restores the default configuration.

By default, BGP does not remove the MED attribute from the imported routes that are locally crossed and are to be advertised to a specified peer after an export policy for which the apply cost-type command is run is applied to the peer.

Format

local-cross-routing non-med

undo local-cross-routing non-med

Parameters

None

Views

BGP view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

Run the local-cross-routing non-med command to removes the MED attribute from the imported routes that are locally crossed and are to be advertised to a specified peer after an export policy for which the apply cost-type command is run is applied to the peer.

Example

# Enable BGP to remove the MED attribute from the imported routes that are locally crossed and are to be advertised to a specified peer after an export policy for which the apply cost-type command is run is applied to the peer.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] local-cross-routing non-med
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >