< Home

Configuring a BGP Confederation

Context

A confederation divides an AS into sub-ASs. Within each sub-AS, IBGP peers establish full-mesh connections or have an RR configured. Sub-ASs establish EBGP connections. On a large BGP network, configuring a confederation can reduce the number of IBGP connections, simplify routing policy management, and improve route advertisement efficiency.

Other devices may implement the confederation not in accordance with RFC 3065. You can configure confederation compatibility to make standard devices compatible with nonstandard devices.

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 confederation id { as-number-plain | as-number-dot }

    A confederation ID is configured.

    By default, no BGP confederation is configured.

    An old speaker that has a 2-byte AS number cannot be in the same confederation with a new speaker that has a 4-byte AS number. Otherwise, a routing loop may occur. This is because the AS4_Path attribute does not support confederations.

  4. Run confederation peer-as { as-number-plain | as-number-dot } &<1-32>

    A sub-AS number is configured for a confederation.

    By default, no sub-AS number of the confederation is configured.

  5. (Optional) Run confederation nonstandard

    Confederation compatibility is configured.

    By default, confederations comply with RFC 3065.

Verifying the Configuration

  • Run the display bgp peer [ ipv4-address ] verbose command to check detailed information about BGP peers.
  • Run the display bgp routing-table [ ipv4-address [ { mask | mask-length } [ longer-prefixes ] ] ] command to check routing information in a BGP routing table.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic