Cisco Systems IOS XR Laptop User Manual


 
Implementing OSPF on Cisco IOS XR Software
Configuration Examples for Implementing OSPF on Cisco IOS XR Software
RC-188
Cisco IOS XR Routing Configuration Guide
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
!
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.
In Cisco IOS XR software, OSPF areas must be explicitly configured, and interfaces configured under
the area configuration mode are explicitly bound to that area. In this example, interface 10.1.2.0/24 is
bound to area 0 and interface 10.1.3.0/24 is bound to area 1.
Cisco IOS XR Software Configuration
interface POS 0/3/0/0
ip address 10.1.2.1 255.255.255.0
negotiation auto
!
interface POS 0/3/0/1
ip address 10.1.3.1 255.255.255.0
negotiation auto
!