Last Updated : Jun 28, 2019 |

Configures the area ID of a router. Use no area to delete the area ID.

Syntax

Note:

The OSPF routing protocol is not available when FIPS mode is enabled.

[no] area area_id [stub]

Parameters

Parameter

Description

Possible Values

Default Value

area_id

The IP address

stub

Keyword indicating to configure a stub area

User level

read-write

Context

Router OSPF

Examples

To configure an area for this OSPF interface with IP address 192.168.49.1:

Gxxx-001(router:ospf)# area 192.168.49.1

To configure a stub area for this OSPF interface with IP address 176.1.13.12:

Gxxx-001(router:ospf)# area 176.1.13.12 stub

To remove the area with IP address 192.168.49.1:

Gxxx-001(router:ospf)# no area 192.168.49.1