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 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.
Run system-view
The system view is displayed.
Run bgp{ as-number-plain | as-number-dot }
The BGP view is displayed.
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.
Perform any of the following operations to configure
manual route summarization.
To advertise the summarized routes and specific routes, run
the aggregateipv4-address { mask | mask-length } command.
To advertise only the summarized routes, run the aggregateipv4-address { mask | mask-length } detail-suppressed or the aggregateipv6-addressprefix-lengthdetail-suppressed command.
To advertise the summarized routes and specific routes that
meet the specified route-policy, run the aggregateipv4-address { mask | mask-length } suppress-policyroute-policy-name or the aggregateipv6-addressprefix-lengthsuppress-policyroute-policy-name command.
To advertise the summarized routes of which the AS_Set attribute
helps detect routing loops, run the aggregateipv4-address { mask | mask-length } as-set or the aggregateipv6-addressprefix-lengthas-set command.
To set attributes for the summarized routes, run the aggregateipv4-address { mask | mask-length } attribute-policyroute-policy-name or the aggregateipv6-addressprefix-lengthattribute-policyroute-policy-name command.
To summarize the specific routes that meet the specified route-policy,
run the aggregateipv4-address { mask | mask-length } origin-policyroute-policy-name or the aggregateipv6-addressprefix-lengthorigin-policyroute-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.