4-2
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
area (OSPF view)
Syntax
area
area-id
undo area area-id
View
OSPF view
Default Level
2: System level
Parameters
area-id
: ID of an area, an IP address or a decimal integer in the range 0 to 4294967295 that is
translated into the IP address format by the system.
Description
Use the
area
command to create an area and enter area view.
Use the
undo area
command to remove a specified area.
No OSPF area is created by default.
Examples
# Create area 0 and enter area 0 view
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] area 0
[Sysname-ospf-100-area-0.0.0.0]
asbr-summary
Syntax
asbr-summary
ip-address
{
mask
|
mask-length
} [
cost
cost
|
not-advertise
|
tag tag
] *
undo asbr-summary ip-address
{
mask
|
mask-length
}
View
OSPF view
Default Level
2: System level