No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

CLI-based Configuration Guide - IP Unicast Routing

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R009

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring BGP Peers

Configuring BGP Peers

Context

During the configuration of BGP peers, if the AS number of the specified peer is the same as the local AS number, an IBGP peer is configured. If the AS number of the specified peer is different from the local AS number, an EBGP peer is configured. To enhance the stability of BGP connections, you are advised to use the reachable loopback interface addresses to establish BGP connections.

When loopback interface addresses are used to establish a BGP connection, run the peer connect-interface command on both ends of the BGP connection to ensure the correctness of interfaces and addresses on the TCP connection. If the command is run on only one end, the BGP connection may fail to be established.

When loopback interface addresses are used to establish an EBGP connection, the peer ebgp-max-hop command with hop-count greater than or equal to 2 must be run. Otherwise, the EBGP connection cannot be established.

To perform the same configuration on a large number of peers, configure a BGP peer group according to (Optional) Configuring a BGP Peer Group to reduce the configuration workload.

Procedure

  1. Run system-view

    The system view is displayed.

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

    The BGP view is displayed.

  3. Run peer { ipv4-address | ipv6-address } as-number { as-number-plain | as-number-dot }

    The BGP peer is created.

    By default, BGP does not create BGP peers.

  4. (Optional) Run peer ipv4-address connect-interface interface-type interface-number [ ipv4-source-address ]Or peer ipv6-address connect-interface interface-type interface-number [ ipv6-source-address ]

    A source interface from which BGP packets are sent, and a source address used for initiating a connection.

    By default, the outbound interface of a BGP packet serves as the source interface of a BGP packet.

  5. (Optional) Run peer { ipv4-address | ipv6-address } ebgp-max-hop [ hop-count ]

    The maximum number of hops allowed for the establishment of an EBGP connection is set.

    By default, the maximum number of hops allowed for an EBGP connection is 1. That is, an EBGP connection must be established on a directly connected physical link.

  6. (Optional) Run peer { ipv4-address | ipv6-address } description description-text

    The description of the peer is configured.

    NOTE:

    If a BGP peer group is configured on an IPv4 unicast network, steps 7 and 8 are not required. If a BGP peer group is configured on an IPv4 unicast network and an IPv6 unicast network, steps 7 and 8 are required.

  7. (Optional) Run the following commands as required.
    • Run ipv4-family multicast

      The BGP-IPv4 multicast address family view is displayed.

    • Run ipv6-family [ unicast ]

      The BGP-IPv6 unicast address family view is displayed.

  8. (Optional) Run peer { ipv4-address | ipv6-address } enable

    MP-BGP is enabled on the BGP peers to configure them as MP-BGP peers.

Translation
Download
Updated: 2019-05-17

Document ID: EDOC1000174069

Views: 114382

Downloads: 254

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next