peer transit-med-to-ebgp(BGP-EVPN address family view) (IPv6)

Function

The peer transit-med-to-ebgp command enables a device to advertise the MED attribute to its EBGP-EVPN peers.

The undo peer transit-med-to-ebgp command cancels the existing configuration.

The peer transit-med-to-ebgp disable command disables a device from advertising the MED attribute to a specified peer in an EBGP-EVPN peer group.

The undo peer transit-med-to-ebgp disable command cancels the existing configuration.

By default, the MED attribute is not forcibly advertised to any EBGP EVPN peer.

Format

peer peerIpv6Addr transit-med-to-ebgp [ disable ]

undo peer peerIpv6Addr transit-med-to-ebgp [ disable ]

Parameters

Parameter Description Value
peerIpv6Addr

Specifies the IPv6 address of a peer.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

Views

BGP-EVPN address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

The MED attribute is an optional non-transitive attribute. When EBGP EVPN peers are established between devices in two data centers in different BGP ASs, the MED attributes of EVPN routes are not transmitted between the EBGP EVPN peers by default. If a DC has active and standby gateways and the cost needs to be changed to trigger an active/standby switchover of service flows, you can configure peer transit-med-to-ebgp to enable the local gateway to advertise the MED attribute of received EVPN routes to the peer.

Precautions

By default, the MED attribute can be transmitted in an AS. Therefore, if the peer ip-address command is run to specify the address of a peer as an AS address, the command does not take effect.

Example

# Configure a device to advertise the MED attribute to EBGP EVPN peers.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] peer peer 2001:db8:1::1 as-number 200
[*HUAWEI-bgp] l2vpn-family evpn
[*HUAWEI-bgp-af-evpn] peer peer 2001:db8:1::1 enable
[*HUAWEI-bgp-af-evpn] peer peer 2001:db8:1::1 transit-med-to-ebgp
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >