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. Specify as an case-sensative alphanumeric string up to 20 characters.
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


Command Modes

Interface configuration mode

Command History

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.


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

Related Commands

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.