Configuration Examples For Implementing Ospf; Cisco Ios Xr Software For Ospf Version 2 Configuration: Example - Cisco ASR 9000 Series Configuration Manual

Aggregation services router
Hide thumbs Also See for ASR 9000 Series:
Table of Contents

Advertisement

Configuration Examples for Implementing OSPF

router ospf 1
router-id 1.1.1.1
segment-routing mpls
segment-routing forwarding mpls
segment-routing prefix-sid-map receive
segment-routing prefix-sid-map advertise-local
segment-routing sr-prefer prefix-list foo
area 0
interface Loopback0
prefix-sid index 1
!
interface GigabitEthernet0/0/0/0
!
interface GigabitEthernet0/2/0/0
!
interface GigabitEthernet0/2/0/3
!
!
area 1
interface GigabitEthernet0/2/0/7
!
Configuration Examples for Implementing OSPF
This section provides the following configuration examples:

Cisco IOS XR Software for OSPF Version 2 Configuration: Example

The following example shows how an OSPF interface is configured for an area 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 GigabitEthernet 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 GigabitEthernet 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 GigabitEthernet 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
Cisco ASR 9000 Series Aggregation Services Router Routing Configuration Guide, Release 5.1.x
414
Implementing OSPF
OL-30423-03

Advertisement

Table of Contents
loading

Table of Contents