abr-summary (OSPF area view)
Use abr-summary to configure route summarization on an ABR.
Use undo abr-summary to remove the configuration.
Syntax
abr-summary ip-address { mask-length | mask } [ advertise | not-advertise ] [ cost cost-value ]
undo abr-summary ip-address { mask-length | mask }
Default
Route summarization is not configured on an ABR.
Views
OSPF area view
Predefined user roles
network-admin
Parameters
ip-address: Specifies the destination IP address of the summary route in dotted decimal notation.
mask-length: Specifies the mask length in the range of 0 to 32.
mask: Specifies the mask of the IP address, in dotted decimal notation.
advertise | not-advertise: Advertises the summary route or not. By default, the command advertises the summary route.
cost cost-value: Specifies the cost of the summary route, in the range of 1 to 16777215. The default cost is the largest cost value among routes that are summarized.
Usage guidelines
This command applies only to an ABR to summarize multiple contiguous networks into one network.
To enable ABR to advertise specific routes that have been summarized, use the undo abr-summary command.
Examples
# Summarize networks 36.42.10.0/24 and 36.42.110.0/24 in Area 1 into 36.42.0.0/16.
<Sysname> system-view [Sysname] ospf 100 [Sysname-ospf-100] area 1 [Sysname-ospf-100-area-0.0.0.1] network 36.42.10.0 0.0.0.255 [Sysname-ospf-100-area-0.0.0.1] network 36.42.110.0 0.0.0.255 [Sysname-ospf-100-area-0.0.0.1] abr-summary 36.42.0.0 255.255.0.0