Implementing OSPF on Cisco IOS XR Software
Configuration Examples for Implementing OSPF on Cisco IOS XR Software
RC-237
Cisco IOS XR Routing Configuration Guide
•CLI Inheritance and Precedence for OSPF Version 2: Example, pageRC-238
•MPLS TE for OSPF Version 2: Example, pageRC-239
•ABR with Summarization for OSPFv3: Example, page RC-239
•ABR Stub Area for OSPFv3: Example, page RC-240
•ABR Totally Stub Area for OSPFv3: Example, pageRC-240
•Route Redistribution for OSPFv3: Example, page RC-240
•Virtual Link Configured Through Area 1 for OSPFv3: Example, pageRC-240
Cisco IOS XR for OSPF Version 2 Configuration: ExampleThe following example shows how an OSPF interface is configured for an area in
Cisco IOS XR software.
In Cisco IOS XR software, area 0 must be explicitly configured with the area command and all
interfaces that are in the range from 10.1.2.0 to 10.1.2.255 are bound to area 0. Interfaces are configured
with the interface command (while the router is in area configuration mode) and the area keyword is
not included in the interface statement.
Cisco IOS XR Software Configuration
interface POS 0/3/0/0
ip address 10.1.2.1 255.255.255.255
negotiation auto
!
router ospf 1
router-id 10.2.3.4
area 0
interface POS 0/3/0/0
!
!
The following example shows how OSPF interface parameters are configured for an area in
Cisco IOS XR software.
In Cisco IOS XR software, OSPF interface-specific parameters are configured in interface configuration
mode and explicitly defined for area 0. In addition, the ip ospf keywords are no longer required.
Cisco IOS XR Software Configuration
interface POS 0/3/0/0
ip address 10.1.2.1 255.255.255.0
negotiation auto
!
router ospf 1
router-id 10.2.3.4
area 0
interface POS 0/3/0/0
cost 77
mtu-ignore
authentication message-digest
message-digest-key 1 md5 0 test
!
!
The following example shows the hierarchical CLI structure of Cisco IOS XR software.