Configuring a BGP EVPN Peer Relationship

After two provider edges (PEs) establish a Border Gateway Protocol (BGP) Ethernet VPN (EVPN) peer relationship, they can exchange EVPN routes.

Context

In provider backbone bridge (PBB)-EVPN networking, PEs need to have BGP EVPN peer relationships established before they can exchange EVPN routes and implement communication between EVPN instances.

Perform the following steps on each PE.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run bgp as-number

    The BGP view is displayed.

  3. Run peer ipv4-address as-number as-number

    A BGP EVPN peer IP address is specified.

  4. Run peer ipv4-address connect-interface loopback interface-number

    The interface on which a TCP connection to the specified peer is to be established is specified.

    A PE must use a loopback interface address with a 32-bit mask to set up an MP-IBGP peer relationship with the peer PE, so that EVPN routes can be relayed to tunnels. EVPN routes destined for a loopback interface address are advertised to the peer device using an Interior Gateway Protocol (IGP) on the Multiprotocol Label Switching (MPLS) backbone network.

  5. Run l2vpn-family evpn

    The BGP-EVPN address family view is displayed.

  6. Run peer { ipv4-address | group-name } enable

    The capability to exchange EVPN routes with the specified peer or peer group is enabled.

  7. (Optional) Run peer ipv4-address group group-name

    The BGP EVPN peer is added to a peer group.

    Adding BGP EVPN peers to peer groups simplifies BGP network configuration and management.

  8. (Optional) Run timer df-delay delay-value

    A designated forwarder (DF) election delay is configured.

    If a network is unstable, PE interfaces connecting to CEs will frequently alternate between up and down, resulting in frequent DF elections and subsequent network performance deterioration. To prevent frequent DF elections, run the timer df-delay command to set a longer DF election delay to improve network stability.

    In a PBB-EVPN dual-homing scenario where interface-based DF election is enabled, you need to run this command to set the DF election delay to 0s to prevent traffic interruption caused by the long-time existence of dual backup devices during switchback.

  9. (Optional) Run peer { group-name | ipv4-address } mac-limit number [ percentage ] [ alert-only | idle-forever | idle-timeout times ]

    The maximum number of MAC advertisement routes that can be received from each peer is configured.

    If an EVPN instance imports many invalid MAC advertisement routes from peers and these routes occupy a large proportion of the total MAC advertisement routes, run the mac-limit command to configure the maximum number of MAC advertisement routes that can be received from each peer. If the number of received MAC advertisement routes exceeds the specified maximum number, the system displays an alarm, instructing you to check the validity of the MAC advertisement routes received in the EVPN instance.

  10. Run commit

    The configuration is committed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >