Configuring OSPF
OSPF Configuration Examples

IPC-253

Cisco IOS IP Configuration Guide
Figure44 OSPF Administrative Distance
Router A Configuration
router ospf 1
redistribute ospf 2 subnet
distance ospf external 200
!
router ospf 2
redistribute ospf 1 subnet
distance ospf external 200
Router B Configuration
router ospf 1
redistribute ospf 2 subnet
distance ospf external 200
!
router ospf 2
redistribute ospf 1 subnet
distance ospf external 200
OSPF over On-Demand Routing Example

The following configuration allows OSPF over an on-demand circuit, as shown in Figure45. Note that

the on-demand circuit is defined on one side only BRI 0 on Router A). It is not required to be configured

on both sides.

Network
10.0.0.0
OSPF 1
14830
OSPF 2
External LSA 10.0.0.0
Router A Router B
Router C