The area command creates an OSPF area and displays the OSPF area view.
The undo area command deletes a specified area.
By default, no OSPF area is created.
Parameter | Description | Value |
---|---|---|
area-id |
Specifies the area ID in decimal format. |
The value is an integer from 0 to 4294967295. A decimal value is automatically converted to a dotted-decimal notation value based on the following rules:
|
area-idipv4 |
Specifies the area ID in dotted-decimal notation. |
The value is in the format X.X.X.X, where each X represents a value from 0 to 255 |
Usage Scenario
The number of devices increases with the network expansion, which leads to a large LSDB on each OSPF-enabled device on a large-scale network. Consequently, route flapping frequently occurs, and a large number of OSPF packets are transmitted on the network, which wastes bandwidth resources.
OSPF addresses the preceding problem by logically partitioning an AS into different areas.Prerequisites
Before creating and entering an OSPF area, you need to enter the OSPF process.
Precautions
After an AS is partitioned into different areas, not all areas are equal. The area with ID 0 is a backbone area. The backbone area is responsible for forwarding inter-area routes. In addition, the routing information between non-backbone areas must be forwarded through the backbone area.
The first time the area command is run, an OSPF area is created and the OSPF area view is displayed; running the area command later enters the OSPF area view only. If the undo area command is run, all configurations in the OSPF area are deleted. Therefore, exercise caution when using the command.