< Home

(Optional)Configuring a BGP4+ Peer Group

By configuring a BGP4+ peer group, you can simplify the management of routing policies, and therefore improve the efficiency of route advertisement.

Context

A great number of peers exist in a large-scale BGP4+ network, which is not convenient for configuration and maintenance. In this case, you can configure peer groups to simplify the management and improve the efficiency of route advertisement. According to the AS where the peers reside, you can classify peer groups into IBGP peer groups and EBGP peer groups. You can classify EBGP peer groups into pure EBGP peer groups and mixed EBGP peer groups. This classification is performed according to the position of the peers in the same external AS.

Procedure

  • Create IBGP peer groups.
    1. Access the system view.

      system-view

    2. Access the BGP view.

      bgp { as-number-plain | as-number-dot }

    3. Create an IBGP peer group.

      group group-name internal

    4. Access the BGP IPv6 unicast address family view.

      ipv6-family [ unicast ]

    5. Enable the peer group.

      peer group-name enable

    6. Add the IPv6 peer to the peer group.

      peer ipv6-address group group-name

      After an IBGP peer is added to a peer group, the system automatically creates the IPv6 peer in the BGP view. Besides, the system enables this IBGP peer in the IPv6 address family view.

  • Creating pure EBGP peer groups.
    1. Access the system view.

      system-view

    2. Access the BGP view.

      bgp { as-number-plain | as-number-dot }

    3. Create a pure EBGP peer group.

      group group-name external

    4. Set the AS number of the peer group.

      peer group-name as-number { as-number-plain | as-number-dot }

    5. Access the BGP IPv6 unicast address family view.

      ipv6-family [ unicast ]

    6. Enable the peer group.

      peer group-name enable

    7. Add the IPv6 peer to the peer group.

      peer ipv6-address group group-name

      After an EBGP peer is added to the peer group, the system automatically creates the EBGP peer in the BGP view. Besides, the system enables this EBGP peer in the IPv6 address family view.

      When creating a pure EBGP peer group, you need to specify the AS number of the peer group.

      If there are peers in the peer group, you cannot specify the AS number for this peer group.

  • Create mixed EBGP peer groups.
    1. Access the system view.

      system-view

    2. Access the BGP view.

      bgp { as-number-plain | as-number-dot }

    3. Create a mixed EBGP peer group.

      group group-name external

    4. Set the AS number of the IPv6 peer.

      peer ipv6-address as-number { as-number-plain | as-number-dot }

    5. Access the BGP IPv6 unicast address family view.

      ipv6-family [ unicast ]

    6. Enable the peer group.

      peer group-name enable

    7. Add the IPv6 peer to this peer group.

      peer ipv6-address group group-name

      After an EBGP peer is added to the peer group, the system automatically enables each EBGP peer in the IPv6 address family view.

      When creating a mixed EBGP peer group, you need to create peers separately, and you can configure different AS numbers for them, but cannot configure the AS number for the peer group.

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