Implementing OSPF on Cisco IOS XR Software Open Shortest Path First (OSPF) is an Interior Gateway Protocol (IGP) developed by the OSPF working group of the Internet Engineering Task Force (IETF). Designed expressly for IP networks, OSPF supports IP subnetting and tagging of externally derived routing information. OSPF also allows packet authentication and uses IP multicast when sending and receiving packets.
Implementing OSPF on Cisco IOS XR Software Contents Contents • Prerequisites for Implementing OSPF on Cisco IOS XR Software, page RC-170 • Information About Implementing OSPF on Cisco IOS XR Software, page RC-170 • How to Implement OSPF on Cisco IOS XR Software, page RC-183 • Configuration Examples for Implementing OSPF on Cisco IOS XR Software, page RC-236 • Where to Go Next, page RC-241 • Additional References, page RC-243 Prerequisites for Implementing OSPF on Cisco IOS XR Software The follo
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software • Route Authentication Methods for OSPF Version 2, page RC-177 • Neighbors and Adjacency for OSPF, page RC-178 • Designated Router (DR) for OSPF, page RC-178 • Default Route for OSPF,, page RC-179 • Link-State Advertisement Types for OSPF Version 2, page RC-179 • Link-State Advertisement Types for OSPFv3, page RC-179 • Virtual Link and Transit Area for OSPF, page RC-180 • Route Redistribut
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software The networking devices running OSPF detect topological changes in the network, flood link-state updates to neighbors, and quickly converge on a new view of the topology. Each OSPF router in the network soon has the same topological view again. OSPF allows multiple equal-cost paths to the same destination.
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software • Not-so-stubby area (NSSA)—RFC 1587 is supported. • OSPF over demand circuit—RFC 1793 is supported. Comparison of Cisco IOS XR OSPFv3 and OSPFv2 Much of the OSPFv3 protocol is the same as in OSPFv2. OSPFv3 is described in RFC 2740.
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software Tip Understanding hierarchical CLI and CLI inheritance saves you considerable configuration time. See the “Configuring Authentication at Different Hierarchical Levels for OSPF Version 2” section on page 194 to understand how to implement these fundamentals. In addition, Cisco IOS XR examples are provided in the “Configuration Examples for Implementing OSPF on Cisco IOS XR Software” section on page 236.
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software Areas Areas allow the subdivision of an autonomous system into smaller, more manageable networks or sets of adjacent networks. As shown in Figure 10, autonomous system A consists of three areas: Area 0, Area 1, and Area 2. OSPF hides the topology of an area from the rest of the autonomous system. The network topology for an area is visible only to routers inside that area.
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software Routers The OSPF network is composed of ABRs, ASBRs, and interior routers. Area Border Routers An area border routers (ABR) is a router with multiple interfaces that connect directly to networks in two or more areas. An ABR runs a separate copy of the OSPF algorithm and maintains separate routing data for each area that is attached to, including the backbone area.
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software • The primary IPv4 address of the interface specified by the OSPF router-id command. • The 32-bit numeric value specified by the router-id command in global configuration mode. (This value must be an IPv4 address assigned to an interface on this router.) • By using the highest IPv4 address on a loopback interface in the system if the router is booted with saved loopback address configuration.
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software Authentication Strategies Authentication can be specified for an entire process or area, or on an interface or a virtual link. An interface or virtual link can be configured for only one type of authentication, not both. Authentication configured for an interface or virtual link overrides authentication configured for the area or process.
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software Default Route for OSPF, Type 5 (ASE) LSAs are generated and flooded to all areas except stub areas. For the routers in a stub area to be able to route packets to destinations outside the stub area, a default route is injected by the ABR attached to the stub area. The cost of the default route is 1 (default) or is determined by the value specified in the default-cost command.
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software • Interarea-prefix LSA for ABRs (Type 3)—Advertises internal networks to routers in other areas (interarea routes). Type 3 LSAs may represent a single network or set of networks aggregated into one prefix. Only ABRs generate Type 3 LSAs. In OSPFv3, addresses for these LSAs are expressed as “prefix and prefix length” instead of “address and mask.” The default route is expressed as a prefix with length 0.
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software In the case in which an area cannot be connected to Area 0, you must configure a virtual link between that area and Area 0. The two endpoints of a virtual link are ABRs, and the virtual link must be configured in both routers. The common nonbackbone area to which the two routers belong is called a transit area.
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software The interval at which the SPF calculations occur is chosen dynamically and based on the frequency of topology changes in the network. The chosen interval is within the boundary of the user-specified value ranges. If network topology is unstable, SPF throttling calculates SPF scheduling intervals to be longer until topology becomes stable.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software through intelligent line cards while the standby Route Processor (RP) assumes control from the failed RP. The ability of line cards to remain up through a failover and to be kept current with the Forwarding Information Base (FIB) on the active RP is key to Cisco IOS XR NSF operation. Routing protocols, such as OSPF, run only on the active RP or DRP and receive routing updates from their neighbor routers.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software • Controlling the Frequency that the Same LSA Is Originated or Accepted for OSPF, page RC-197 (optional) • Creating a Virtual Link with MD5 Authentication to Area 0 for OSPF, page RC-199 (optional) • Summarizing Subnetwork LSAs on an OSPF ABR, page RC-203 (optional) • Redistributing Routes from One IGP into OSPF, page RC-205 (optional) • Configuring OSPF Shortest Path First Throttling, page RC-209 (optional)
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router ospf process-name or router ospfv3 process-name Example: Enables OSPF routing for the specified routing process and places the router in router configuration mode.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 7 Command or Action Purpose log adjacency changes [detail] [enable | disable] (Optional) Requests notification of neighbor changes. Example: • By default, this feature is enabled. • The messages generated by neighbor changes are considered notifications, which are categorized as severity Level 5 in the logging console command.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software 6. stub or nssa 7. default-cost cost 8. end or commit 9. Repeat this task on all other routers in the stub area or NSSA. DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 or Enables OSPF routing for the specified routing process and places the router in router configuration mode.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 5 Command or Action Purpose stub [no-summary] Defines the nonbackbone area as a stub area. or • See the “Configuring Stub and Not-so-Stubby Area Types” section on page 186. • Specify the no-summary keyword to further reduce the number of LSAs sent into a stub area. This keyword prevents the ABR from sending summary link-state advertisements (Type 3) in the stub area.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 8 Command or Action Purpose end Saves configuration changes.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software 9. neighbor ip-address [priority number] [poll-interval seconds] [cost number] or neighbor ipv6-link-local-address [priority number] [poll-interval seconds] [cost number] [database-filter [all]] 10. Repeat Step 9 for all neighbors on the interface. 11. exit 12. interface type instance 13.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 5 Command or Action Purpose network {broadcast | non-broadcast | {point-to-multipoint [non-broadcast] | point-to-point}} Configures the OSPF network type to a type other than the default for a given medium. • The example sets the network type to NBMA.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 9 Command or Action Purpose neighbor ip-address [priority number] [poll-interval seconds][cost number] Configures the IPv4 address of OSPF neighbors interconnecting to nonbroadcast networks. or neighbor ipv6-link-local-address [priority number] [poll-interval seconds][cost number] [database-filter [all]] or Configures the link-local IPv6 address of OSPFv3 neighbors.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 13 Command or Action Purpose neighbor ip-address [priority number] [poll-interval seconds][cost number] [database-filter [all]] Configures the IPv4 address of OSPF neighbors interconnecting to nonbroadcast networks. or or neighbor ipv6-link-local-address [priority number] [poll-interval seconds][cost number] [database-filter [all]] Configures the link-local IPv6 address of OSPFv3 neighbors.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Command or Action Purpose Step 14 Repeat Step 13 for all neighbors on the interface. — Step 15 end Saves configuration changes.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software 5. message-digest-key key-id md5 {key | clear key | encrypted key} 6. area area-id 7. interface type instance 8. Repeat Step 7 for each interface that must communicate, using the same authentication. 9. exit 10. area area-id 11. authentication [message-digest | null] 12. interface type instance 13. Repeat Step 7 for each interface that must communicate, using the same authentication. 14.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 6 Command or Action Purpose area area-id Enters area configuration mode and configures a backbone area for the OSPF process. Example: RP/0/RP0/CPU0:router(config-ospf)# area 0 Step 7 interface type instance Example: Enters interface configuration mode and associates one or more interfaces to the backbone area.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 15 Command or Action Purpose authentication [message-digest | null] Specifies no authentication on POS interface 0/3/0/0, overriding the plain text authentication specified for area 1. • Example: RP/0/RP0/CPU0:router(config-ospf-ar-if)# authentication null Step 16 By default, all of the interfaces configured in the same area inherit the same authentication parameter values of the area.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software 8. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 or Enables OSPF routing for the specified routing process and places the router in router configuration mode.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 7 Command or Action Purpose timers lsa group-pacing seconds Changes the interval at which OSPF link-state LSAs are collected into a group for flooding. • Example: The default is 240 seconds. RP/0/RP0/CPU0:router(config-ospf)# timers lsa group-pacing 1000 Step 8 Saves configuration changes.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software • For a virtual link to be successful, you need a stable router ID at each end of the virtual link. You do not want them to be subject to change, which could happen if they are assigned by default (See the “OSPF Process and Router ID” section on page 176 for an explanation of how the router ID is determined.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose show ospf [process-name] (Optional) Displays general information about OSPF routing processes. or show ospfv3 [process-name] • Example: The output displays the router ID of the local router. You need this router ID to configure the other end of the link.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 8 Command or Action Purpose message-digest-key key-id md5 {key | clear key | encrypted key} Defines an OSPF virtual link. Example: RP/0/RP0/CPU0:router(config-ospf-ar-vl)# message-digest-key 4 md5 yourkey • See the “Virtual Link and Transit Area for OSPF” section on page 180 to understand a virtual link. • The key-id argument is a number in the range from 1 to 255.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Examples In the following example, the show ospfv3 virtual links EXEC command verifies that the OSPF_VL0 virtual link to the OSPFv3 neighbor is up, the ID of the virtual link interface is 2, and the IPv6 address of the virtual link endpoint is 2003:3000::1. RP/0/RP0/CPU0:router# show ospfv3 virtual-links Virtual Links for OSPFv3 1 Virtual Link OSPF_VL0 to router 10.0.0.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software 7. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 or Enables OSPF routing for the specified routing process and places the router in router configuration mode.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 6 Command or Action Purpose interface type instance Enters interface configuration mode and associates one or more interfaces to the area. Example: RP/0/RP0/CPU0:router(config-ospf-ar)# interface POS 0/2/0/3 Step 7 Saves configuration changes.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software 5. summary-prefix address mask [not-advertise] [tag tag] or summary-prefix ipv6-prefix/prefix-length [not-advertise] [tag tag] 6. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 4 Command or Action Purpose redistribute protocol [process-id] {level-1 | level-1-2 | level-2} [metric metric-value] [metric-type type-value] [match {internal | external [1 | 2} | nssa-external [1 | 2}] [tag tag-value] [route-map map-tag | policy policy-tag] Redistributes OSPF routes from one routing domain to another routing domain.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 5 Command or Action Purpose summary-prefix address mask [not-advertise] [tag tag] (Optional) Creates aggregate addresses for OSPF. or or summary-prefix ipv6-prefix/prefix-length [not-advertise] [tag tag] (Optional) Creates aggregate addresses for OSPFv3. Example: • This command provides external route summarization of the non-OSPF routes.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Configuring OSPF Shortest Path First Throttling This task explains how to configure SPF scheduling in millisecond intervals and potentially delay SPF calculations during times of network instability. This task is optional. Prerequisites See the “OSPF Shortest Path First Throttling” section on page 181 for information about OSPF SPF throttling. SUMMARY STEPS 1. configure 2.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 3 Command or Action Purpose router-id {ipv4-address | interface-type interface-instance} Configures a router ID for the OSPF process. Note We recommend using a stable IPv4 address as the router ID. Example: RP/0/RP0/CPU0:router(config-ospf)# router-id 192.168.4.3 Step 4 timers throttle spf spf-start spf-hold spf-max-wait Sets SPF throttling timers.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 7 Command or Action Purpose end Saves configuration changes.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Non-Stop Forwarding enabled Note For a description of each output display field, see the show ospf command in the OSPF Commands on Cisco IOS XR Software module in the Cisco IOS XR Routing Command Reference document. Configuring Nonstop Forwarding for OSPF Version 2 This task explains how to configure OSPF NSF on your NSF-capable router. This task is optional.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router ospf process-name Enables OSPF routing for the specified routing process and places the router in router configuration mode.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 5 Command or Action Purpose nsf interval seconds Sets the minimum time between NSF restart attempts. Note Example: RP/0/RP0/CPU0:router(config-ospf)# nsf interval 120 Step 6 When you use this command, the OSPF process must be up for at least 90 seconds before OSPF attempts to perform an NSF restart. Saves configuration changes.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Restrictions MPLS traffic engineering currently supports only a single OSPF area. SUMMARY STEPS 1. configure 2. router ospf process-name 3. router-id {ipv4-address | interface-type interface-instance} 4. mpls traffic-eng area area-id 5. mpls traffic-eng router-id {ip-address | interface-type interface-instance} 6. area area-id 7. interface type instance 8. end or commit 9.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 5 Step 6 Command or Action Purpose mpls traffic-eng router-id {ip-address | interface-type interface-instance} (Optional) Specifies that the traffic engineering router identifier for the node is the IP address associated with a given interface. Example: • This IP address is flooded to all nodes in TE LSAs.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 8 Command or Action Purpose end Saves configuration changes.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Sample Output for the show ospf mpls traffic-eng Command In the following example, the show ospf mpls traffic-eng EXEC command verifies that the MPLS TE fragments are configured correctly: RP/0/RP0/CPU0:router# show ospf 1 mpls traffic-eng fragment OSPF Router with ID (192.168.4.3) (Process ID 1) Area 0 has 1 MPLS TE fragment. Area instance is 3. MPLS router address is 192.168.4.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Priority Priority Priority Priority Affinity 0 : 3125000 2 : 3125000 4 : 3125000 6 : 3125000 Bit :0 Priority Priority Priority Priority 1 3 5 7 : : : : 3125000 3125000 3125000 3125000 Sample Output for the show ospf Command After Configuring MPLS TE In the following example, the show route ospf EXEC command verifies that the MPLS TE tunnels replaced POS interface 0/3/0/0 and that configuration was performed cor
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose show ospf [process-name] (Optional) Displays general information about OSPF routing processes. Example: RP/0/RP0/CPU0:router# show ospf group1 Step 2 show ospf [process-name] border-routers [router-id] (Optional) Displays the internal OSPF routing table entries to an ABR and ASBR.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Configuring OSPFv3 Graceful Restart This section describes the following tasks for configuring a graceful restart of an OSPFv3 process: • Enabling Graceful Restart, page RC-221 • Configuring the Maximum Lifetime of a Graceful Restart, page RC-221 • Configuring the Minimum Time Required Between Restarts, page RC-222 • Configuring the Helper Level of the Router, page RC-223 • Displaying Information About Gracef
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software SUMMARY STEPS 1. configuration 2. router ospfv3 3. graceful-restart lifetime DETAILED STEPS Step 1 Command or Action Purpose config Enters global configuration mode.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose config Enters global configuration mode. Example: RP/0/RP0/CPU0:single10-hfr#config RP/0/RP0/CPU0:single10-hfr(config) Step 2 router ospfv3 Example: RP/0/RP0/CPU0:single10-hfr(config)# router ospfv3 test Step 3 graceful-restart interval Enters router configuration mode for OSPFv3.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose config Enters global configuration mode. Example: RP/0/RP0/CPU0:single10-hfr#config RP/0/RP0/CPU0:single10-hfr(config) Step 2 router ospfv3 Example: RP/0/RP0/CPU0:single10-hfr(config)# router ospfv3 test Step 3 graceful-restart helper Enters router configuration mode for OSPFv3.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Displaying Graceful Restart Information for an OSPFv3 Instance The following screen output shows the link state for the instance of OSPFv3 called test: RP/0/0/CPU0:LA#show ospfv3 test database grace OSPFv3 Router with ID (2.2.2.2) (Process ID test) ADV Router 1.1.1.1 2.2.2.2 Router Link States (Area 0) Age Seq# Fragment ID 1949 0x8000000e 0 2007 0x80000011 0 ADV Router 1.1.1.1 s2.2.2.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 3 Command or Action Purpose mpls traffic-eng multicast-intact Enables multicast-intact. Example: RP/0/RP0/CPU0:router(config-isis)# mpls traffic-eng multicast-intact Step 4 Saves configuration changes.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Configuring the Multi-VRF Capability for OSPF Routing This task explains how to configure multi-VRF capability for OSPF Routing. This task is implemented for OSPFv2 only. SUMMARY STEPS 1. configure 2. router ospf process-name 3. vrf vrf-name 4. domain-id [secondary] type {0005 | 0105 | 0205 | 8005} value value 5. domain-tag tag 6. disable-dn-bit-check 7. interface type instance 8.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 6 Command or Action Purpose disable-dn-bit-check Specifies that down bits should be ignored. Example: RP/0/RP0/CPU0:router(config-ospf-vrf)# disable-dn-bit-check Step 7 interface type instance Enters interface configuration mode and associates one or more interfaces to the VRF. Example: RP/0/RP0/CPU0:router(config-ospf-vrf)# interface interface loopback0 Step 8 Saves configuration changes.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software 8. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router ospf process-name Enables OSPF routing for the specified routing process and places the router in router configuration mode.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 7 Command or Action Purpose ipv4 mtu mtu Sets the maximum transmission unit (MTU) size of IPv4 packets sent on the interface. Example: RP/0/RP0/CPU0:router(config-if)# ipv4 mtu 300 Step 8 Saves configuration changes.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software 11. disable-dn-bit-check 12. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router ospf process-name Enables OSPF routing for the specified routing process and places the router in router configuration mode.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 6 Command or Action Purpose area area-id Enters area configuration mode and configures an area for the OSPF process. Example: • RP/0/RP0/CPU0:router(config-ospf-vrf)# area 0 Step 7 interface type instance The area-id argument can be entered in dotted-decimal or IPv4 address notation, such as area 1000 or area 0.0.3.232. However, you must choose one form or the other for an area.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 11 Command or Action Purpose disable-dn-bit-check Specifies that down bits should be ignored. Example: RP/0/RP0/CPU0:router(config-ospf-vrf)# disable-dn-bit-check Step 12 Saves configuration changes.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router ospf process-name Enables OSPF routing for the specified routing process and places the router in router configuration mode.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Creating Multiple OSPF Instances (OSPF Process and a VRF) This task explains how to create multiple OSPF instances. In this case, the instances are a normal OSPF instance and a VRF instance. SUMMARY STEPS 1. configure 2. router ospf process-name 3. area area-id 4. interface type instance 5. exit 6. vrf vrf-name 7. area area-id 8. interface type instance 9.
Implementing OSPF on Cisco IOS XR Software Configuration Examples for Implementing OSPF on Cisco IOS XR Software Step 5 Command or Action Purpose exit Enters OSPF configuration mode. Example: RP/0/RP0/CPU0:router(config-ospf-ar)# exit Step 6 Creates a VRF instance and enters VRF configuration mode. vrf vrf-name Example: RP/0/RP0/CPU0:router(config-ospf)# vrf vrf1 Step 7 Enters area configuration mode and configures an area for a VRF instance under the OSPF process.
Implementing OSPF on Cisco IOS XR Software Configuration Examples for Implementing OSPF on Cisco IOS XR Software • CLI Inheritance and Precedence for OSPF Version 2: Example, page RC-238 • MPLS TE for OSPF Version 2: Example, page RC-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, page RC-240 • Route Redistribution for OSPFv3: Example, page RC-240 • Virtual Link Configured Through Area 1
Implementing OSPF on Cisco IOS XR Software Configuration Examples for Implementing OSPF on 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.
Implementing OSPF on Cisco IOS XR Software Configuration Examples for Implementing OSPF on Cisco IOS XR Software ! ! area 4 interface cost 20 ! interface ! interface ! ! area 6 cost 30 interface ! interface ! interface cost 1 ! ! POS 0/1/0/2 POS 0/2/0/2 POS 0/3/0/2 POS 0/1/0/3 POS 0/2/0/3 POS 0/3/0/3 MPLS TE for OSPF Version 2: Example The following example shows how to configure the OSPF portion of MPLS TE. However, you still need to build an MPLS TE topology and create an MPLS TE tunnel.
Implementing OSPF on Cisco IOS XR Software Configuration Examples for Implementing OSPF on Cisco IOS XR Software ABR Stub Area for OSPFv3: Example The following example shows that area 1 is configured as a stub area: router ospfv3 1 router-id 10.0.0.217 area 0 interface POS 0/2/0/1 area 1 stub interface POS 0/2/0/0 ABR Totally Stub Area for OSPFv3: Example The following example shows that area 1 is configured as a totally stub area: router ospfv3 1 router-id 10.0.0.
Implementing OSPF on Cisco IOS XR Software Where to Go Next interface POS 0/2/0/1 area 1 virtual-link 10.0.0.212 interface POS 0/2/0/0 ABR 2 Configuration router ospfv3 1 router-id 10.0.0.212 area 0 interface POS 0/3/0/1 area 1 virtual-link 10.0.0.217 interface POS 0/2/0/0 Virtual Link Configured with MD5 Authentication for OSPF Version 2: Example The following examples show how to configure a virtual link to your backbone and apply MD5 authentication.
Implementing OSPF on Cisco IOS XR Software Where to Go Next To build an MPLS TE topology, create tunnels, and configure forwarding over the tunnel for OSPF Version 2; see the Cisco IOS XR MPLS Configuration Guide.
Implementing OSPF on Cisco IOS XR Software Additional References Additional References The following sections provide references related to implementing OSPF on Cisco IOS XR software. Related Documents Related Topic Document Title OSPF and OSPFv3 commands: complete command syntax, command modes, command history, defaults, usage guidelines, and examples Cisco IOS XR Routing Command Reference, Release 3.
Implementing OSPF on Cisco IOS XR Software Additional References Technical Assistance Description Link http://www.cisco.com/techsupport The Cisco Technical Support website contains thousands of pages of searchable technical content, including links to products, technologies, solutions, technical tips, and tools. Registered Cisco.com users can log in from this page to access even more content.