NetEngine AR600, AR6100, AR6200, and AR6300 V300R019 CLI-based Configuration Guide - IP Unicast Routing

Configuring BGP Route Summarization

Configuring BGP Route Summarization

On IPv4 networks, BGP supports automatic route summarization and manual route summarization. Manual route summarization takes precedence over automatic route summarization. On IPv6 networks, BGP supports only manual route summarization.

Pre-configuration Tasks

Before configuring BGP route summarization, complete the following task:

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. 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 | vpnv4 [ unicast ] | vpn-instance vpn-instance-name }

        The IPv4 address family view is displayed.

      • Run ipv6-family [ unicast | vpnv6 | vpn-instance vpn-instance-name ]

        The IPv6 address family view is displayed.

        The vpnv6 parameter is supported in V300R019C13 and later versions.

    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 } or the aggregate ipv6-address prefix-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.