ip ospf <instance-tag> area
Syntax
ip ospf <INSTANCE-TAG> area <AREA-ID>
no ip ospf <INSTANCE-TAG> area <AREA-ID>
Description
Runs the OSPF protocol on the interface with the configured IPv4 address for the area specified. The interfaces which have an IP address configured in this network or in a subset of this network, will participate in the OSPF protocol.
For moving an interface to a new area, unmap the existing area and then associate a new area to the interface.
The
no
form of this command disables OSPF on the interface. The interfaces which have an IP address configured in this network or in a subset of this network, will stop participating in the OSPF protocol.
Command context
config-if-vlan
Parameters
<INSTANCE-TAG>
Specifies the OSPF Process Id. Range: 1 to 63.
<AREA-ID>
- Specifies the OSPF area ID in one of the following formats.
Area identifier in IPv4 format (
x.x.x.x
), wherex
is a decimal number from 0 to 255.Area identifier in decimal format. Range: 0 to 4294967295.
Authority
Administrators or local user group members with execution rights for this command.
Examples
Setting OSPF network for the area:
switch(config)# interface vlan 1 switch(config-if-vlan)# ip ospf 1 area 1 switch(config-if-vlan)# ip ospf 1 area 0.0.0.1
Disabling OSPF network for the area:
switch(config)# interface vlan 1 switch(config-if-vlan)# no ip ospf 1 area 1 switch(config-if-vlan)# no ip ospf 1 area 0.0.0.1