Change OSPF Area (CHGOSPFARA)

The Change OSPF Area (CHGOSPFARA) command can change the attributes of an existing OSPF area in the routing domain. An OSPF area is a collection of subnetted networks in which the OSPF interfaces are attached. Each OSPF area has an unique 32-bit identifier. The main purpose of an OSPF area is to reduce the routing traffic and be hidden to other areas, thereby reducing the size of the Link-State database.

This command can change the attributes of OSPF areas in either the IPv4 or IPv6 routing domains.

Restrictions:

Parameters

Keyword Description Choices Notes
AREA Area identifier Character value Required, Key, Positional 1
AUTHTYPE Authentication type *SAME, *NONE, *MD5, *PASSWORD Optional
STUB Stub area *SAME, *NO, *YES Optional
STUBCOST Stub cost 1-65535, *SAME Optional
IMPORT Import *SAME, *NO, *YES Optional
IPVERSION IP version *SAME, *IPV4, *IPV6 Optional

Area identifier (AREA)

Specifies the OSPF area identifier to be changed.

This is a required parameter.

character-value
Specify the internet address for the OSPF area in the form a.a.a.a where a is a decimal number between 1 and 255.

Authentication type (AUTHTYPE)

Specifies the default security schema to be used in this area. This parameter is only valid for OSPF IPv4.

*SAME
Current security schema type is used.
*NONE
No authentication is necessary to pass packets.
*MD5
MD5 cryptographic authentication is used.
*PASSWORD
Simple password authentication is used.

Stub area (STUB)

Specifies whether or not this area is a stub area. A stub area is a small OSPF area that will not import autonomous system external link advertisements.

*SAME
Current stub area option is used.
*NO
This area is not a stub area.
*YES
The area is a stub area. The area will not receive any autonomous system external link advertisements, reducing the size of your database and decreasing memory usage for routers in the stub area. You cannot configure virtual links through a stub area. You cannot configure a router within the stub area as an autonomous system boundary router.

Stub cost (STUBCOST)

Specifies the cost of the default summary_LSA that the system should advertise into the area, if the area has been configured as a stub area and the system is participating as a area border router.

*SAME
Current stub cost is used.
1-65535
Specify the stub default cost value. A value of 1 is the lowest stub cost value.

Import (IMPORT)

Specifies whether this stub area will import either a routing summary (IPv4) or prefixes from (IPv6) a neighbor area.

*SAME
Current import option is used.
*NO
Specifies this area will not import routing information.
*YES
Specifies this area will import routing information.

IP version (IPVERSION)

Specifies whether the area is part of the IPv4 or IPv6 routing domain.

*SAME
The current IP version is used.
*IPV4
This area will be part of an OSPF IPv4 routing domain.
*IPV6
This area will be part of an OSPF IPv6 routing domain.

Examples

Example 1:Changing an OSPF IPv4 Area

CHGOSPFARA   AREA('1.1.1.1')  AUTHTYPE(*PASSWORD)

This command changes the OSPF IPv4 area with area identifier 1.1.1.1 to use password authentication.

Example 2:Changing an OSPF IPv6 Area

CHGOSPFARA   AREA('67.67.67.67')  STUB(*YES)  IPVERSION(*IPV6)

This command changes the OSPF IPv6 area with area identifier 67.67.67.67 to be a stub area.

Error messages

*ESCAPE Messages

TCP8050
*IOSYSCFG authority required to use &1.
TCP6517
OSPF Area &1 has not been changed in the configuration file. Fails with reason code &2.
TCP9999
Internal system error in program &1.