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).
(Optional) Configuring a BGP Peer Group

(Optional) Configuring a BGP Peer Group

Context

A large BGP network has a large number of peers. It is difficult to configure and maintain these peers. You can add the BGP peers with the same configurations to a BGP peer group and then configure the BGP peers in batches. This simplifies peer management and improves route advertisement efficiency.

NOTE:
  • If a function is configured on a peer and its peer group, the function configured on the peer takes precedence over that configured on the peer group.
  • When loopback interface or sub-interface addresses are used to establish a BGP connection, you are advised to perform step 6 on both ends of the BGP connection simultaneously to ensure the correct establishment of the connection. If step 6 is performed on only one end, the BGP connection may fail to be established.

  • When loopback interfaces are used to establish an EBGP connection, step 7 is required and hop-count in the peer ebgp-max-hop command must be greater than or equal to 2. Otherwise, the EBGP connection cannot be established.

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 group group-name [ external | internal ]

    A BGP peer group is created.

    NOTE:

    The AS number of an IBGP peer group is the local AS number. Therefore, step 4 is not required.

  4. Run peer group-name as-number { as-number-plain | as-number-dot }

    An AS number is configured for the EBGP peer group.

    NOTE:

    To add an EBGP peer to a peer group, configure the EBGP peer according to Configuring BGP Peers and then perform step 5.

    To add an IBGP peer to a peer group, perform step 5. The system creates an IBGP peer in the BGP view and sets its AS number as the AS number of the peer group.

  5. Run peer { ipv4-address | ipv6-address } group group-name

    A peer is added to the peer group.

    NOTE:

    You can repeat step 5 to add multiple peers to a peer group.

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

    A source interface and a source IP address are specified for the peer to establish a TCP connection.

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

    NOTE:

    The configurations of GTSM and EBGP-MAX-HOP affect the TTL values of BGP packets, which may cause a conflict between TTL values. Therefore, you can configure only one of the two functions for a peer or peer group.

  7. (Optional) Run peer group-name 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.

  8. (Optional) Run peer group-name description description-text

    The description is configured for the peer group.

    NOTE:

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

  9. (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.

  10. Run peer group-name 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: 114205

Downloads: 254

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