area <AREA-ID> stub

Syntax

area <AREA-ID> stub [no-summary]

no area <AREA-ID> stub [no-summary]

Description

Creates the stub area with <AREA-ID> if not present. If area is present and not stub area, this command changes the area type to stub area. If the no-summary parameter is used, area type will be stub No-Summary.

The no form of this command unsets the area type as stub. That is, the configured area will be changed to the default normal area. The no area <AREA-ID> stub no_summary command enables sending inter-area routes into the stub area, but will not unset the area as stub.

Command context

config-ospf

Parameters

<AREA-ID>
Specifies the area ID in one of the following formats.
  • OSPF area identifier in IPv4 address format. Format: A.B.C.D

  • OSPF area identifier in decimal format. Range: 0-4294967295.

stub [no-summary]

Specifies stub area type. If area is present and not stub area, this parameter changes the area type to stub area. If no-summary is specified, area type will be stub No-Summary (totally stubby area), which means do not inject summary link advertisements into stub areas.

Authority

Administrators

Examples

Creating a STUB area:

switch# configure terminal
switch(config)# router ospf 1
switch(config-ospf-1)# area 1 stub
switch(config-ospf-1)# area 1 stub no-summary

Unsetting the area type as stub:

switch# configure terminal
switch(config)# router ospf 1
switch(config-ospf-1) # no area 1 stub
switch(config-ospf-1) # no area 1 sub no-summary