< Home

Configuring BGP Route Summarization

Pre-configuration Tasks

Before configuring BGP route summarization, configure basic BGP functions.

Procedure

  • Configure automatic route summarization.
    1. Run system-view

      The system view is displayed.

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

      The BGP view is displayed.

    3. Enter the corresponding address family view based on network type to configure BGP devices on networks.

      • Run ipv4-family { unicast | multicast }

        The IPv4 address family view is displayed.

    4. Run summary automatic

      BGP summarizes subnet routes based on natural mask.

      The command summarizes the routes imported by BGP. These routes can be direct routes, static routes, RIP routes, OSPF routes, or IS-IS routes. The command, however, is invalid for the routes imported using the network command.

  • Configure manual route summarization.
    1. Run system-view

      The system view is displayed.

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

      The BGP view is displayed.

    3. Enter the corresponding address family view based on network type to configure BGP devices on networks.

      • Run ipv4-family { unicast | multicast }

        The IPv4 address family view is displayed.

      • Run ipv6-family [ unicast ]

        The IPv6 address family view is displayed.

    4. Perform any of the following operations to configure manual route summarization.

      • To advertise the summarized routes and specific routes, run the aggregate ipv4-address { mask | mask-length } command.

      • To advertise only the summarized routes, run the aggregate ipv4-address { mask | mask-length } detail-suppressed or the aggregate ipv6-address prefix-length detail-suppressed command.

      • To advertise the summarized routes and specific routes that meet the specified route-policy, run the aggregate ipv4-address { mask | mask-length } suppress-policy route-policy-name or the aggregate ipv6-address prefix-length suppress-policy route-policy-name command.

      • To advertise the summarized routes of which the AS_Set attribute helps detect routing loops, run the aggregate ipv4-address { mask | mask-length } as-set or the aggregate ipv6-address prefix-length as-set command.

      • To set attributes for the summarized routes, run the aggregate ipv4-address { mask | mask-length } attribute-policy route-policy-name or the aggregate ipv6-address prefix-length attribute-policy route-policy-name command.

      • To summarize the specific routes that meet the specified route-policy, run the aggregate ipv4-address { mask | mask-length } origin-policy route-policy-name or the aggregate ipv6-address prefix-length origin-policy route-policy-name command.

      Manual route summarization is valid for the routes in the local BGP routing table. For example, if the local BGP routing table does not contain routes with mask longer than 16 bits, such as 10.1.1.1/24, BGP will not generate an aggregated route for it even if the aggregate 10.1.1.1 16 command is used.

Verifying the Configuration

  • Run the display bgp routing-table [ ipv4-address [ { mask | mask-length } [ longer-prefixes ] ] ] command to check information about summarized routes.

  • Run the display bgp multicast routing-table [ ip-address [ mask-length [ longer-prefixes ] | mask [ longer-prefixes ] ] ] command to check the MBGP routing table.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >