Implementing OSPF on Cisco IOS XR Software
Configuration Examples for Implementing OSPF on CiscoIOS XR Software
RC-256Cisco IOS XR Routing Configuration Guide
OL-14356-01
CiscoIOS 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.CiscoIOS 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 CiscoIOS 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.CiscoIOS 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
!
router ospf 1
router-id 10.2.3.4
area 0
interface POS 0/3/0/0
!
area 1
interface POS 0/3/0/1
!
!