asbr-summary

Use asbr-summary to configure a summary route on an ASBR.

Use undo asbr-summary to remove a summary route on an ASBR.

Syntax

asbr-summary ip-address { mask-length | mask } [ cost cost | not-advertise | nssa-only | tag tag ] *

undo asbr-summary ip-address { mask-length | mask }

Default

No route summarization is configured on an ASBR.

Views

OSPF view

Predefined user roles

network-admin

mdc-admin

Parameters

ip-address: Specifies the destination IP address of the summary route.

mask-length: Specifies the mask length in the range of 0 to 32.

mask: Specifies the mask in dotted decimal notation.

cost cost: Specifies the cost of the summary route, in the range of 1 to 16777214. Without this option, the cost of Type-1 external routes defaults to the largest cost among routes that are summarized, and the cost of Type-2 external routes 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.

nssa-only: Limits the route advertisement to the NSSA area by setting the P-bit of Type-7 LSAs to 0. By default, the P-bit of Type-7 LSAs is set to 1. If the ASBR is also an ABR and FULL state neighbors exist in the backbone area, the P-bit of Type-7 LSAs originated by the ASBR is set to 0. This keyword applies to the NSSA ASBR.

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 within 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-7 LSAs, and advertises the summary route to neighbors in Type-5 LSAs. 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