88
OSPF commands
abr-summary (OSPF area view)
Use
abr-summary
to configure a summary route on an area border router (ABR).
Use
undo abr-summary
to remove a summary route.
Syntax
abr-summary
ip-address
{
mask-length
|
mask
} [
advertise
|
not-advertise
] [
cost
cost
]
undo
abr-summary
ip-address
{
mask-length
|
mask
}
Default
No route summarization is 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
: 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 is available only on an ABR to summarize multiple contiguous networks into one network.
To enable ABR to advertise more-specific routes, issue 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