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.
<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] local-cross-routing non-med