197
Table 44
Functions of the keywords
Keywords Function
as-set
Enables the summary route to carry the AS path information of all summarized routes.
This feature can help avoid routing loops. However, if many routes are summarized and
are changed frequently, do not specify this keyword because this configuration causes
the summary route to flap with the more specific routes.
attribute-policy
Sets attributes except the AS-PATH attribute for the summary route. The
peer route-policy
command can achieve the same purpose.
detail-suppressed
Disables advertisement of all more specific routes. To disable advertisement of some
more specific routes, use the
suppress-policy
keyword or the
peer filter-policy
command.
origin-policy
Summarizes only routes satisfying a routing policy.
If the destination address of a route falls within the summary network but does not match
the routing policy, the route is not summarized, and is not controlled by the
detail-suppressed
and
suppress-policy
keywords.
There is no need to configure
apply
clauses for the routing policy referenced by the
origin-policy
keyword because they do not take effect.
suppress-policy
Disables advertisement of some more specific routes filtered by a routing policy. The
routing policy uses
if-match
clauses to filter routes.
There is no need to configure
apply
clauses for the routing policy referenced by the
suppress-policy
keyword because they do not take effect.
Examples
# In BGP IPv4 unicast instance view, create a summary route 1.1.0.0/16 in the BGP routing table.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family unicast
[Sysname-bgp-ipv4] aggregate 1.1.0.0 255.255.0.0
# In BGP IPv4 unicast instance view, create a summary route 1.1.0.0/16 in the BGP routing table. Specify
the AS_PATH attribute for the summary route to contain the AS path information of all summarized routes,
and advertise only the summary route.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family unicast
[Sysname-bgp-ipv4] aggregate 1.1.0.0 255.255.0.0 as-set detail-suppressed
# In BGP IPv4 unicast instance view, create a summary route 1.1.0.0/16 in the BGP routing table, and set
the COMMUNITY attribute of the summary route to INTERNET.
<Sysname> system-view
[Sysname] route-policy commu permit node 0
[Sysname-route-policy-commu-0] apply community internet
[Sysname-route-policy-commu-0] quit
[Sysname] bgp 100
[Sysname-bgp] ipv4-family unicast
[Sysname-bgp-ipv4] aggregate 1.1.0.0 255.255.0.0 attribute-policy commu
# In BGP IPv4 unicast instance view, create a summary route 1.1.0.0/16 in the BGP routing table, and
configure BGP to not summarize route 1.1.1.0/24.