ip router ospf multi-area

To configure a multi-area adjacency on an Open Shortest Path First (OSPF) interface, use the ip router ospf multi-area command. To return to the default, use the no form of this command.

ip router ospf instance-tag multi-area area-id

no ip router ospf instance-tag multi-area area-id

Syntax Description

instance-tag
Instance tag. Specify as an case-sensative alphanumeric string up to 20 characters.
area-id
Identifier for the OSPF area where you want to add as another area to the primary interface. The area ID can be either a positive integer value from 0 to 4294967295 or an IP address.

Command Default

None

Command Modes

Interface configuration mode

Command History

Release
Modification
5.0(3)N1(1)
This command was introduced.

Usage Guidelines

Before you use this command, make sure that you enable OSPF on the switch.

This command requires the LAN Base Services license.

Examples

This example shows how to configure a multi-area adjacency:

switch# configure terminal
switch(config)# interface ethernet 1/2
switch(config-if)# no switchport
switch(config-if)# ip router ospf Base area 33
switch(config-if)# ip router ospf Base multi-area 99
switch(config-if)#
 

Related Commands

Command
Description
copy running-config startup-config
Saves the configuration changes to the startup configuration file.
feature ospf
Enables OSPF on the switch.
show ip ospf interface
Displays OSPF interface-related information.