Establishing BGP Peer Relationships

This section describes how to establish a BGP peer relationship between each of PE1 and PE2 and the EOR and configure BGP peers.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run bgp { as-number-plain | as-number-dot }

    BGP is enabled, and the BGP view is displayed.

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

    The TOR is specified as the BGP peer.

  4. Run peer ipv4-address ebgp-max-hop [ hop-count ]

    The maximum number of hops allowed for a BGP peer session is specified.

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

    The source interface for sending BGP messages is specified.

  6. Run l2vpn-family evpn

    The BGP-EVPN address family view is displayed.

  7. Run undo policy vpn-target

    The function of filtering received EVPN routes based on RTs is disabled.

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

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

  9. Run peer { ipv4-address | group-name } advertise encap-type vxlan

    The device is configured to advertise EVPN routes carrying the VXLAN encapsulation attribute to the EOR.

  10. Run commit

    The configuration is committed.

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