62
mask-length
: Specifies the mask length in the range of 0 to 32 bits.
cost
cost
: Specifies the cost of the summary route, in the range of 1 to 16777214. For Type-1 external
routes, the cost defaults to the largest cost among routes that are summarized. For Type-2 external routes,
the cost defaults to the largest cost among routes that are summarized plus 1.
not-advertise
: Disables advertising the summary route. Without this keyword, the command advertises
the route.
tag
tag
: Specifies a tag for marking the summary route, in the range of 0 to 4294967295. The default is
1. The tag can be used by a routing policy to control summary route advertisement.
Usage guidelines
With the
asbr-summary
command configured, an ASBR summarizes redistributed routes that fall into the
specified address range into a single route and advertises the summary route in a Type-5 LSA to
neighbors. If the ASBR resides in an NSSA area, it advertises the summary route in a Type-7 LSA.
With the
asbr-summary
command configured, an NSSA ABR summarizes matching routes described by
Type-5 LSAs that are translated from Type-7 LSAs, and advertises the summary route to neighbors. This
command does not take effect on non NSSA ABRs.
To enable ASBR to advertise more-specific routes, issue the
undo asbr-summary
command.
Examples
# Summarize redistributed static routes into a single route, and specify a tag value of 2 and a cost of 100
for the summary route.
<Sysname> system-view
[Sysname] ip route-static 10.2.1.0 24 null 0
[Sysname] ip route-static 10.2.2.0 24 null 0
[Sysname] ospf 100
[Sysname-ospf-100] import-route static
[Sysname-ospf-100] asbr-summary 10.2.0.0 255.255.0.0 tag 2 cost 100
Related commands
display ospf asbr-summary
authentication-mode
Use
authentication-mode
to specify an authentication mode for the OSPF area.
Use
undo authentication-mode
to restore the default.
Syntax
authentication-mode
{
md5
|
simple
}
undo authentication-mode
Default
No authentication mode is configured for an area.
Views
OSPF area view
Predefined user roles
network-admin