Command Reference OSPFv2 Commands
2 OSPFv2 Commands
2.1 area
Use this command to configure the specified OSPF area. Use the no form of this command to restore
the default setting.
ID of the OSPF area. The value can be a decimal integer or an IP
address.
No OSPF area is configured by default.
Routing process configuration mode
Use the no form of this command to remove the specified OSPF area and its configuration, including
the area-based area authentication, area default-cost, area filter-list, and area nssa commands.
 Do not remove the OSPF area configuration under the following conditions:
 Virtual links exist in the backbone area. The virtual links must be removed at first.
 The corresponding network area command exists in any area. All network segment commands
added to an area must be removed at first.
The following example removes the configuration of OSPF area 2.
Ruijie(config)# router ospf 2
Ruijie(config-router)# no area 2
Defines the interface where OSPF runs and the
belonging area of the interface.