ospf area

Use ospf area to enable OSPF on an interface.

Use undo ospf area to disable OSPF on an interface.

Syntax

ospf process-id area area-id [ exclude-subip ]

undo ospf process-id area [ exclude-subip ]

Default

OSPF is not enabled on an interface.

Views

Interface view

Predefined user roles

network-admin

Parameters

process-id: Specifies an OSPF process by its ID in the range of 1 to 65535.

area-id: Specifies an area by its ID, an IP address or a decimal integer in the range of 0 to 4294967295 that is translated into the IP address format.

exclude-subip: Excludes secondary IP addresses. If you do not specify this keyword, the command enables OSPF also on secondary IP addresses.

Usage guidelines

The ospf area command has a higher priority than the network command.

If the specified process and area do not exist, the command creates the process and area. Disabling an OSPF process on an interface does not delete the OSPF process or the area.

Examples

# Enable OSPF process 1 on VLAN-interface 10 that is in Area 2 and exclude secondary IP addresses.

<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospf 1 area 2 exclude-subip

Related commands

network