Specifications

Implementing OSPF on Cisco IOS XR Software
Configuration Examples for Implementing OSPF on Cisco IOS XR Software
RC-296
Cisco IOS XR Routing Configuration Guide
Configuration Examples for Implementing OSPF on Cisco IOS XR
Software
This section provides the following configuration examples:
Cisco IOS XR for OSPF Version 2 Configuration: Example, page RC-296
CLI Inheritance and Precedence for OSPF Version 2: Example, page RC-298
MPLS TE for OSPF Version 2: Example, page RC-299
ABR with Summarization for OSPFv3: Example, page RC-299
ABR Stub Area for OSPFv3: Example, page RC-299
ABR Totally Stub Area for OSPFv3: Example, page RC-299
Route Redistribution for OSPFv3: Example, page RC-300
Virtual Link Configured Through Area 1 for OSPFv3: Example, page RC-300
Cisco IOS XR for OSPF Version 2 Configuration: Example
The 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
Step 6
show {ospf | ospfv3}[
process-name
] [
area-id
]
neighbor [
interface-type interface-instance
]
[
neighbor-id
] [detail]
Example:
RP/0/RP0/CPU0:router# show ospf 100 neighbor
(Optional) Displays OSPF neighbor information on an
individual interface basis.
Step 7
clear {ospf | ospfv3}[
process-name
] process
Example:
RP/0/RP0/CPU0:router# clear ospf 100 process
(Optional) Resets an OSPF router process without stopping
and restarting it.
Step 8
clear {ospf | ospfv3}[
process-name
] statistics
[neighbor [
interface-type interface-instance
]
[
ip-address
]]
Example:
RP/0/RP0/CPU0:router# clear ospf 100 statistics
(Optional) Clears the OSPF statistics of neighbor state
transitions.
Command or Action Purpose