R3303-HP HSR6800 Routers Layer 3 - IP Routing Command Reference

64
OSPF configuration commands
For OSPF TE related commands and OSPF VPN related commands, see MPLS Command Reference.
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 | mask-length } [ advertise | not-advertise ] [ cost cost ]
undo abr-summary ip-address { mask | mask-length }
Default
No route summarization is configured on an ABR.
Views
OSPF area view
Default command level
2: System level
Parameters
ip-address: Specifies the destination IP address of the summary route, in dotted decimal notation.
mask: Specifies the mask of the IP address, in dotted decimal notation.
mask-length: Specifies the mask length in the range of 0 to 32 bits.
advertise | not-advertise: Advertises the summary route or not. If none of the advertise and not-advertise
keywords is set, the summary route is advertised.
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
You can choose whether to enable advertising of the summary route, and you can specify a route cost.
This command is available only on an ABR to summarize multiple contiguous networks into one network.
With the undo abr-summary command used, summarized routes are advertised.
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