hit counter script
Cisco NCS 6000 Series Configuration Manual

Cisco NCS 6000 Series Configuration Manual

Ios xr release 6.4.x
Hide thumbs Also See for NCS 6000 Series:
Table of Contents

Advertisement

Quick Links

Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS
XR Release 6.4.x
First Published: 2018-03-01
Americas Headquarters
Cisco Systems, Inc.
170 West Tasman Drive
San Jose, CA 95134-1706
USA
http://www.cisco.com
Tel: 408 526-4000
800 553-NETS (6387)
Fax: 408 527-0883

Advertisement

Table of Contents
loading

Summary of Contents for Cisco NCS 6000 Series

  • Page 1 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x First Published: 2018-03-01 Americas Headquarters Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 http://www.cisco.com Tel: 408 526-4000 800 553-NETS (6387) Fax: 408 527-0883...
  • Page 2 Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental. Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com trademarks.
  • Page 3: Table Of Contents

    Commands Autonomous System Number Formats in BGP 2-byte Autonomous System Number Format 4-byte Autonomous System Number Format as-format Command BGP Configuration Configuration Modes Neighbor Submode Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 4 Default Address Family for show Commands BGP Keychains BGP Nonstop Routing BGP Best-External Path BGP Local Label Retention BGP Over GRE Interfaces Command Line Interface (CLI) Consistency for BGP Commands Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 5 Configuring a Route Reflector for BGP Configuring BGP Route Filtering by Route Policy Configuring BGP Attribute Filtering Configuring BGP Next-Hop Trigger Delay Disabling Next-Hop Processing on BGP Updates Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 6 Originating Prefixes With AiGP: Example VRF Dynamic Route Leaking Configuration: Example Flow-tag propagation Restrictions for Flow-Tag Propagation Configuring Destination-Based Flow-Tag Propagation Where to Go Next Additional References Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 7 Information About BFD Differences in BFD in Cisco IOS XR Software and Cisco IOS Software BFD Modes of Operation BFD Packet Information BFD Source and Destination Ports Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 8 Specifying the Echo Packet Source Address on an Individual Interface or Bundle Configuring BFD Session Teardown Based on Echo Latency Detection Delaying BFD Session Startup Until Verification of Echo Path and Latency Disabling Echo Mode Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x viii...
  • Page 9 BFD Peers on Routers Running Cisco IOS and Cisco IOS XR Software: Example BFD over MPLS TE LSPs: Examples BFD over MPLS TE Tunnel Head-end Configuration: Example BFD over MPLS TE Tunnel Tail-end Configuration: Example Where to Go Next Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 10 Configuring Route Summarization for an EIGRP Process Redistributing Routes for EIGRP Creating a Route Policy and Attaching It to an EIGRP Process Configuring Stub Routing for an EIGRP Process Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 11 Multitopology IPv6 for IS-IS IS-IS Authentication Nonstop Forwarding Multi-Instance IS-IS Multiprotocol Label Switching Traffic Engineering Overload Bit on Router Overload Bit Configuration During Multitopology Operation IS-IS Overload Bit Avoidance Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 12 ISIS Link Group Configure Link Group Profile Configure Link Group Interface Configuration Examples for Implementing IS-IS Configuring Single-Topology IS-IS for IPv6: Example Configuring Multitopology IS-IS for IPv6: Example Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 13 Link-State Advertisement Types for OSPFv3 Virtual Link and Transit Area for OSPF Passive Interface OSPF SPF Prefix Prioritization Route Redistribution for OSPF OSPF Shortest Path First Throttling Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x xiii...
  • Page 14 Redistribute Routes into OSPF Configuring OSPF Shortest Path First Throttling Examples Configuring Nonstop Forwarding Specific to Cisco for OSPF Version 2 Configuring OSPF Version 2 for MPLS Traffic Engineering Examples Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 15 Virtual Link Configured Through Area 1 for OSPFv3: Example Virtual Link Configured with MD5 Authentication for OSPF Version 2: Example OSPF Queue Tuning Parameters Configuration: Example Where to Go Next Additional References Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 16 Output of show route Command: Example Output of show route backup Command: Example Output of show route best-local Command: Example Output of show route connected Command: Example Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 17 C H A P T E R 1 1 Implementing Routing Policy Prerequisites for Implementing Routing Policy Restrictions for Implementing Routing Policy Information About Implementing Routing Policy Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x xvii...
  • Page 18 OSPFv3 Policy Attach Points IS-IS Policy Attach Points EIGRP Policy Attach Points RIP Policy Attach Points Attached Policy Modification Nonattached Policy Modification Editing Routing Policy Configuration Elements Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x xviii...
  • Page 19 Fully Specified Static Routes Floating Static Routes Configuration Examples Configuring Traffic Discard: Example Configuring a Fixed Default Route: Example Configuring a Floating Static Route: Example Where to Go Next Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 20 Contents Additional References C H A P T E R 1 3 Implementing RCMD Route Convergence Monitoring and Diagnostics Configuring Route Convergence Monitoring and Diagnostics Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 21 What's New in Cisco Product Documentation. To receive new and revised Cisco technical content directly to your desktop, you can subscribe to the . RSS feeds are a free service. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 22 Preface Obtaining Documentation and Submitting a Service Request Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x xxii...
  • Page 23: New And Changed Routing Features

    Table 2: Routing Features Added or Modified in IOS XR Release 6.4.x Feature Description Changed in Release Where Documented None No new features Not Applicable Not Applicable introduced Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 24 New and Changed Routing Features New and Changed Routing Features Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 25: Implementing Bgp

    This module provides the conceptual and configuration information for BGP on Cisco IOS XR software. Note For more information about BGP on the Cisco IOS XR software and complete descriptions of the BGP commands listed in this module, see Related Documents, on page 99 section of this module.
  • Page 26: Information About Implementing Bgp

    Note We strongly recommend that the bgp router-id command is configured to prevent unnecessary changes to the router ID (and consequent flapping of BGP sessions). Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 27: Bgp Default Limits

    BGP Default Limits Cisco IOS XR BGP imposes maximum limits on the number of neighbors that can be configured on the router and on the maximum number of prefixes that are accepted from a peer for a given address family. This limitation safeguards the router from resource depletion caused by misconfiguration, either locally or on the remote neighbor.
  • Page 28: Next Hop As The Ipv6 Address Of Peering Interface

    For information on route policy filtering for next hops using the next-hop attach point, see the Implementing Routing Policy Language on Cisco IOS XR Software module of Cisco IOS XR Routing Configuration Guide (this publication). Next Hop as the IPv6 Address of Peering Interface BGP can carry IPv6 prefixes over an IPv4 session.
  • Page 29: Scoped Ipv4 Table Walk

    Reordered Address Family Processing The Cisco IOS XR software walks address family tables based on the numeric value of the address family. When a next-hop notification batch is received, the order of address family processing is reordered to the following order: •...
  • Page 30: Byte Autonomous System Number Format

    BGP Configuration BGP in Cisco IOS XR software follows a neighbor-based configuration model that requires that all configurations for a particular neighbor be grouped in one place under the neighbor configuration. Peer groups are not supported for either sharing configuration between neighbors or for sharing update messages. The concept of peer group has been replaced by a set of configuration groups to be used as templates in BGP configuration and automatically generated update groups to share update messages between neighbors.
  • Page 31: Neighbor Submode

    Cisco IOS XR BGP uses a neighbor submode to make it possible to enter configurations without having to prefix every configuration with the neighbor keyword and the neighbor address: • Cisco IOS XR software has a submode available for neighbors in which it is not necessary for every command to have a “neighbor x.x.x.x” prefix: In Cisco IOS XR software, the configuration is as follows: RP/0/RP0/CPU0:router(config-bgp)# neighbor 192.23.1.2...
  • Page 32 • Commands entered at the address family group level define address family-dependent commands for a specified address family (the same commands as in the neighbor-address family configuration submode). Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 33: Template Inheritance Rules

    Template Inheritance Rules In Cisco IOS XR software, BGP neighbors or groups inherit configuration from other configuration groups. For address family-independent configurations: • Neighbors can inherit from session groups and neighbor groups.
  • Page 34 In the example that follows, the advertisement interval from the neighbor group is used because it is not configured directly on the neighbor and no session group is used: Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 35 RP/0/RP0/CPU0:router(config-bgp-nbrgrp)# advertisement-interval 25 RP/0/RP0/CPU0:router(config-bgp-nbrgrp)# address-family ipv4 unicast RP/0/RP0/CPU0:router(config-bgp-nbrgrp-af)# route-policy POLICY_1 in RP/0/RP0/CPU0:router(config-bgp-nbrgrp-af)# exit RP/0/RP0/CPU0:router(config-bgp-nbrgrp)# exit RP/0/RP0/CPU0:router(config-bgp)# exit RP/0/RP0/CPU0:router(config-bgp)# neighbor 192.168.2.2 RP/0/RP0/CPU0:router(config-bgp-nbr)# remote-as 1 RP/0/RP0/CPU0:router(config-bgp-nbr)# use session-group ADV Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 36 Last read 00:00:00, hold time is 180, keepalive interval is 60 seconds Received 0 messages, 0 notifications, 0 in queue Sent 0 messages, 0 notifications, 0 in queue Minimum time between advertisement runs is 30 seconds Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 37: Viewing Inherited Configurations

    RP/0/RP0/CPU0:router(config-bgp-nbrgrp-af)# send-community-ebgp RP/0/RP0/CPU0:router(config-bgp-nbrgrp-af)# exit RP/0/RP0/CPU0:router(config-bgp-nbrgrp)# exit RP/0/RP0/CPU0:router(config-bgp)# neighbor 192.168.0.1 RP/0/RP0/CPU0:router(config-bgp-nbr)# remote-as 2 RP/0/RP0/CPU0:router(config-bgp-nbr)# use neighbor-group GROUP_1 RP/0/RP0/CPU0:router(config-bgp-nbr)# address-family ipv4 unicast RP/0/RP0/CPU0:router(config-bgp-nbr-af)# use af-group GROUP_3 RP/0/RP0/CPU0:router(config-bgp-nbr-af)# weight 200 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 38 [a:GROUP_2] The following example displays sample output from the show bgp af-group command using the users keyword: RP/0/RP0/CPU0:router# show bgp af-group GROUP_2 users IPv4 Unicast: a:GROUP_1 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 39 The following is sample output from the show bgp session-group command with the inheritance keyword showing that the GROUP_1 session group inherits session parameters from the GROUP_3 and GROUP_2 session groups: RP/0/RP0/CPU0:router# show bgp session-group GROUP_1 inheritance Session: s:GROUP_2 s:GROUP_3 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 40 GROUP_1, and the send community setting is inherited from neighbor group GROUP_2, which in turn inherits the setting from address family group GROUP_3: RP/0/RP0/CPU0:router# show bgp neighbor-group GROUP_1 configuration Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 41: No Default Address Family

    Neighbor Address Family Combinations For default VRF, starting from Cisco IOS XR Software Release 6.2.x, both IPv4 Unicast and IPv4 Labeled-unicast address families are supported under the same neighbor.
  • Page 42: Routing Policy Enforcement

    Address Family: IPv4 Unicast ============================ BGP router identifier 10.0.0.1, local AS number 1 BGP generic scan interval 60 secs BGP main routing table version 41 BGP scan interval 60 secs Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 43: Table Policy

    Implementing Routing Policy on Cisco IOS XR Software module in the Routing Configuration Guide for Cisco NCS 6000 Series Routers for details on table policy use. See the Cisco Express Forwarding Commands on Cisco IOS XR Software module in the IP Addresses and Services Command Reference for Cisco NCS 6000 Series Routers for details on BGP policy accounting.
  • Page 44: Bgp Cost Community

    The cost community attribute is applied to internal routes by configuring the set extcommunity cost command in a route policy. See the Routing Policy Language Commands on Cisco IOS XR Software module of Cisco IOS XR Routing Command Reference for information on the set extcommunity cost command. The cost community set clause is configured with a cost community ID number (0–255) and cost community number...
  • Page 45: Cost Community Support For Aggregate Routes And Multipaths

    • 10.0.0.1 • POI=IGP • cost community ID=1 • cost number=100 • 192.168.0.1 • POI=IGP • cost community ID=1 • cost number=200 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 46: Influencing Route Preference In A Multiexit Igp Network

    This figure shows an IGP network with two autonomous system boundary routers (ASBRs) on the edge. Each ASBR has an equal cost path to network 10.8/16. Figure 1: Multiexit Point IGP Network Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 47: Adding Routes To The Routing Information Base

    BGP routers typically receive multiple paths to the same destination. The BGP best-path algorithm determines the best path to install in the IP routing table and to use for forwarding traffic. This section describes the Cisco IOS XR software implementation of BGP best-path algorithm, as specified in Section 9.1 of the Internet Engineering Task Force (IETF) Network Working Group draft-ietf-idr-bgp4-24.txt document.
  • Page 48: Comparing Pairs Of Paths

    When calculating the length of the AS path, confederation segments are ignored, and AS sets count as 1. Note eiBGP specifies internal and external BGP multipath peers. eiBGP allows simultaneous use of internal and external paths. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 49 Where the originator is used as the router ID, it is possible to have two paths with the same router ID. It is also possible to have two BGP sessions with the same peer router, and therefore receive two paths with the same router ID. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 50: Order Of Comparisons

    4. If the paths have different weights, local preferences, origins, or IGP metrics to their next hops, then the change cannot be suppressed. Note that all these values are calculated using the rules in Comparing Pairs of Paths, on page Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 51: Administrative Distance

    For information on specifying the administrative distance for BGP, see the BGP Commands module of the Routing Command Reference for Cisco NCS 6000 Series Routers Normally, a route can be learned through more than one protocol. Administrative distance is used to discriminate between routes learned from more than one protocol.
  • Page 52: Route Dampening

    2, in turn, propagates the withdrawal message to autonomous system 3. When the route to network A reappears, autonomous system 1 sends an advertisement message to autonomous system 2, which sends it to Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 53: Minimizing Flapping

    Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 54 (nonclient peers). A route reflector reflects routes between these two groups. The route reflector and its client peers form a cluster. The nonclient peers must be fully meshed with each other, but the Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 55 A route reflector can be configured to have other route reflectors in a client group or nonclient group. In a simple configuration, the backbone could be divided into many clusters. Each route Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 56: Remotely Triggered Blackhole Filtering With Rpl Next-Hop Discard Configuration

    RTBH filtering sets the next-hop of the victim's prefix to the null interface. The traffic destined to the victim is dropped at the ingress. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 57 Configure a static route with the special tag for the source prefix that has to be block-holed: router static address-family ipv4 unicast 10.7.7.7/32 Null0 tag 777 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 58: Verification

    Received Path ID 0, Local Path ID 1, version 12 Community: 1234:4321 no-export RP/0/RSP0/CPU0:router#show route 10.7.7.7/32 Routing entry for 10.7.7.7/32 Known via "bgp 65001", distance 200, metric 0, type internal Installed Jul 4 14:37:29.394 for 01:47:02 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 59: Default Address Family For Show Commands

    Most of the show commands provide address family (AFI) and subaddress family (SAFI) arguments (see RFC 1700 and RFC 2858 for information on AFI and SAFI). The Cisco IOS XR software parser provides the ability to set the afi and safi so that it is not necessary to specify them while running a show command. The parser commands are: •...
  • Page 60 • CLI commands to enable and disable NSR NSR can be provisioned on a multishelf router. The following guidelines should be observed when provisioning NSR on a multishelf router: Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 61: Bgp Best-External Path

    BGP considers the external and confederations BGP paths for a prefix to calculate the best–external path. BGP advertises the best path and the best–external path as follows: Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 62: Bgp Additional Paths

    Reserved0 field set to zero. A receiver that is compliant with RFC 1701 treats key present, sequence number, and strict source route as zero and do not expect key and sequence number. The Cisco IOS XR software discards a GRE packet with any of the bits in Reserved0 field set.
  • Page 63: Bgp Selective Multipath

    • BGP selective multipath does not impact best path calculations. A best path is always included in the set of multipaths. • For VPN prefixes, the PE paths are always eligible to be multipaths. For information on the maximum-paths and multipath commands, see the Cisco ASR 9000 Series Aggregation Services Router Routing Command Reference. Topology A sample topology to illustrate the configuration used in this section is shown in the following figure.
  • Page 64: Accumulated Interior Gateway Protocol Attribute

    OSPF/LDP carries the prefix/label information only in the local area. Then, BGP carries the prefix/lable to all the remote areas by redistributing the routes into BGP at area boundaries. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 65: Bfd Multihop Support For Bgp

    Bi-directional Forwarding Detection Multihop (BFD-MH) support is enabled for BGP. BFD Multihop establishes a BFD session between two addresses that may span multiple network hops. Cisco IOS XR Software BFD Multihop is based on RFC 5883. For more information on BFD Multihop, refer Interface and Hardware...
  • Page 66: Bgp Prefix Independent Convergence For Rib And Fib

    • All configuration changes for a single BGP instance can be committed together. However, configuration changes for multiple instances cannot be committed together. • Cisco recommends that BGP update-source should be unique in the default VRF over all instances while peering with the same remote router.
  • Page 67: Bgp Attribute Filter Actions

    PE. However, the paths are still advertised to the CEs. • Importing from non-default-VRF to default VRF, using the export to default-vrf route-policy route-policy-name command in VRF address-family configuration mode. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 68: How To Implement Bgp

    TTL value which is at least equal to the number of hops between them. For example, if there are 2 hops (R2, R3) between two BGP peering routers R1 and R4, you need to set a TTL value of 3. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 69 Specifies the BGP AS number and enters the BGP configuration mode, allowing you to configure the BGP Example: routing process. RP/0/RP0/CPU0:router(config)# router bgp 120 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 70: Configuring Multiple Bgp Instances For A Specific Autonomous System

    Perform this task to configure multiple BGP instances for a specific autonomous system. All configuration changes for a single BGP instance can be committed together. However, configuration changes for multiple instances cannot be committed together. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 71: Configuring A Routing Domain Confederation For Bgp

    1. configure 2. router bgp as-number 3. bgp confederation identifier as-number 4. bgp confederation peers as-number 5. commit DETAILED STEPS Command or Action Purpose Step 1 configure Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 72: Resetting An Ebgp Session Immediately Upon Link Failure

    Logging neighbor changes is enabled by default. Use the log neighbor changes disable command to turn off logging. The no log neighbor changes disable command can also be used to turn logging back on if it has been disabled. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 73: Adjusting Bgp Timers

    RP/0/RP0/CPU0:router(config-bgp)# neighbor 172.168.40.24 Step 5 timers keepalive hold-time (Optional) Sets the keepalive timer and the hold-time timer for the BGP neighbor. Example: RP/0/RP0/CPU0:router(config-bgp-nbr)# timers 60 Step 6 commit Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 74: Changing The Bgp Default Local Preference Value

    (routes that were received with no MED attribute). SUMMARY STEPS 1. configure 2. router bgp as-number 3. default-metric value 4. commit DETAILED STEPS Command or Action Purpose Step 1 configure Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 75: Configuring Bgp Weights

    Specifies the autonomous system number and enters the BGP configuration mode, allowing you to configure the Example: BGP routing process. RP/0/RP0/CPU0:router(config)# router bgp 120 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 76: Tuning The Bgp Best-Path Calculation

    4. bgp bestpath med always 5. bgp bestpath med confed 6. bgp bestpath as-path ignore 7. bgp bestpath compare-routerid 8. commit DETAILED STEPS Command or Action Purpose Step 1 configure Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 77: Indicating Bgp Back-Door Routes

    BGP route, causing it to be less preferred than an Interior Gateway Protocol (IGP) route. SUMMARY STEPS 1. configure 2. router bgp as-number 3. address-family { ipv4 | ipv6 } unicast Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 78: Configuring Aggregate Addresses

    4. aggregate-address address/mask-length [ as-set ] [ as-confed-set ] [ summary-only ] [ route-policy route-policy-name ] 5. commit DETAILED STEPS Command or Action Purpose Step 1 configure Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 79: Redistributing Ibgp Routes Into Igp

    BGP routes into the IP routing table. Caution Redistributing iBGP routes into IGPs may cause routing loops to form within an autonomous system. Use this command with caution. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 80: Redistributing Prefixes Into Multiprotocol Bgp

    • redistribute ospfv3 process-id [ match { external [ 1 | 2 ] | internal | nssa-external [ 1 | 2 ]]} [ metric metric-value ] [ route-policy route-policy-name ] Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 81 • redistribute rip [ metric metric-value ] [ route-policy route-policy-name ] • redistribute static [ metric metric-value ] [ route-policy route-policy-name ] Example: RP/0/RP0/CPU0:router(config-bgp-af)# redistribute ospf 110 Step 5 commit Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 82: Configuring Bgp Route Dampening

    Perform this task to apply a routing policy to routes being installed into the routing table. Before you begin See the Implementing Routing Policy on module of Routing Configuration Guide for Cisco NCS 6000 Series Routers (this publication) for a list of the supported attributes and operations that are valid for table policy filtering.
  • Page 83: Setting Bgp Administrative Distance

    2. router bgp as-number 3. address-family { ipv4 | ipv6 } unicast 4. distance bgp external-distance internal-distance local-distance 5. commit DETAILED STEPS Command or Action Purpose Step 1 configure Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 84: Configuring A Bgp Neighbor Group And Neighbors

    Note All commands that can be configured under a specified neighbor group can be configured under a neighbor. SUMMARY STEPS configure router bgp as-number Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 85 RP/0/RP0/CPU0:router(config-bgp-nbrgrp)# remote-as 2002 Step 7 address-family { ipv4 | ipv6 } unicast Specifies either an IPv4 or IPv6 address family unicast and enters address family configuration submode. Example: Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 86: Configuring A Route Reflector For Bgp

    In such instances, the cluster is identified by the software as the router ID of the route reflector. To increase redundancy and avoid a single point of failure in the network, a cluster can have more than one route reflector. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 87 Example: To see a list of all the possible keywords and arguments for this command, use the CLI help (?). RP/0/RP0/CPU0:router(config-nbr)# address-family ipv4 unicast Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 88: Configuring Bgp Route Filtering By Route Policy

    Perform this task to configure BGP routing filtering by route policy. Before you begin See the Implementing Routing Policy on module of Cisco Routing Configuration Guide (this publication) for a list of the supported attributes and operations that are valid for inbound and outbound neighbor policy filtering.
  • Page 89: Configuring Bgp Attribute Filtering

    2. router bgp as-number 3. attribute-filter group attribute-filter group name 4. attribute attribute code { discard | treat-as-withdraw } DETAILED STEPS Command or Action Purpose Step 1 configure Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 90: Configuring Bgp Next-Hop Trigger Delay

    Specifies the autonomous system number and enters the BGP configuration mode, allowing you to configure the Example: BGP routing process. RP/0/RP0/CPU0:router(config)# router bgp 120 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 91: Disabling Next-Hop Processing On Bgp Updates

    Specifies the autonomous system number and enters the BGP configuration mode, allowing you to configure the Example: BGP routing process. RP/0/RP0/CPU0:router(config)# router bgp 120 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 92: Configuring Bgp Community And Extended-Community Advertisements

    BGP community and extended-community filtering cannot be configured for iBGP neighbors. Communities and extended-communities are always sent to iBGP neighbors under IPv4, and IPv6 address families. SUMMARY STEPS 1. configure 2. router bgp as-number 3. neighbor ip-address Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 93 Use one of these commands: Specifies that the router send community attributes or extended community attributes (which are disabled by • send-community-ebgp default for eBGP neighbors) to a specified eBGP neighbor. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 94: Configuring The Bgp Cost Community

    [ 1 | 2 ] | internal | nssa-external [ 1 | 2 ]}] [ metric metric-value ] [ route-policy route-policy-name ] • address-family { ipv4 | ipv6 } unicast redistribute rip [ metric metric-value ] [ route-policy route-policy-name ] Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 95 ] • address-family { ipv4 | ipv6 } unicast redistribute eigrp process-id [ match { external | internal }] [ metric metric-value ] [ route-policy route-policy-name ] Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 96: Configuring Software To Store Updates From A Neighbor

    If the neighbor is not route refresh capable, the neighbor must be reset to relearn received routes using the clear bgp soft command. See the Resetting Neighbors Using BGP Inbound Soft Reset, on page Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 97 Soft reconfiguration enables the software to store the incoming updates before apply policy if route refresh is not supported by the peer (otherwise a copy of the update is not Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 98: Configuring Keychains For Bgp

    IP address as a BGP Example: peer. RP/0/RP0/CPU0:router(config-bgp)# neighbor 172.168.40.24 Step 4 remote-as as-number Creates a neighbor and assigns a remote autonomous system number to it. Example: RP/0/RP0/CPU0:router(config-bgp-nbr)# remote-as 2002 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 99: Disabling A Bgp Neighbor

    Perform this task to trigger an inbound soft reset of the specified address families for the specified group or neighbors. The group is specified by the * , ip-address , as-number , or external keywords and arguments. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 100: Resetting Neighbors Using Bgp Outbound Soft Reset

    If an outbound soft reset is triggered, BGP resends all routes for the address family to the given neighbors. To determine whether the neighbor has advertised the ROUTE_REFRESH capability, use the show bgp neighbors command. SUMMARY STEPS 1. show bgp neighbors 2. out Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 101: Resetting Neighbors Using Bgp Hard Reset

    Clearing a cache, table, or database can become necessary when the contents of the particular structure have become, or are suspected to be, invalid. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 102: Displaying System And Network Statistics

    5. show bgp neighbors ip-address [ advertised-routes | dampened-routes | flap-statistics | performance-statistics | received prefix-filter | routes ] 6. show bgp paths 7. show bgp neighbor-group group-name configuration 8. show bgp summary Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 103 • The routes keyword displays routes learned from the neighbor. Step 6 show bgp paths Displays all BGP paths in the database. Example: RP/0/RP0/CPU0:router# show bgp paths Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 104: Displaying Bgp Process Information

    Example: RP/0/RP0/CPU0:router# show bgp processes detail Step 4 show bgp summary Displays the status of all BGP connections. Example: Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 105: Monitoring Bgp Update Groups

    ID (dot) index. Process ID range is from 0 to 254. Index range is from 0 to 4294967295. • The summary keyword displays summary information for neighbors in a particular update group. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 106: Configuring Bgp Nonstop Routing

    Step 4 commit Re-enable BGP Nonstop Routing If BGP Nonstop Routing (NSR) is disabled, use the following steps to turn BGP NSR back on using the following steps: Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 107: Configuring Bgp Additional Paths

    | ipv6 unicast } additional-paths receive additional-paths send additional-paths selection route-policy route-policy-name commit DETAILED STEPS Command or Action Purpose Step 1 configure Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 108 . Example: RP/0/RP0/CPU0:router(config-bgp-af)#additional-paths send Step 10 additional-paths selection route-policy Configures additional paths selection capability for a route-policy-name prefix. Example: RP/0/RP0/CPU0:router(config-bgp-af)#additional-paths selection route-policy add_path_policy Step 11 commit Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 109: Originating Prefixes With Aigp

    Sets the internal routing protocol cost as the aigp metric. Example: RP/0/RP0/CPU0:router(config-rpl)# set aigp-metric igp-cost Step 4 exit Exits route-policy configuration mode. Example: RP/0/RP0/CPU0:router(config-rpl)# exit Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 110: Configuring Vrf Dynamic Route Leaking

    • export to default-vrf route-policy route-policy-name 5. commit DETAILED STEPS Command or Action Purpose Step 1 configure Step 2 vrf vrf_name Enters VRF configuration mode. Example: RP/0/RSP0/CPU0:PE51_-9010(config)#vrf vrf_1 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 111: Configuration Examples For Implementing Bgp

    Configuration Examples for Implementing BGP This section provides the following configuration examples: Enabling BGP: Example The following shows how to enable BGP. prefix-set static 2020::/64, 2012::/64, 10.10.0.0/16, 10.2.0.0/24 end-set Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 112 10.0.101.62 remote-as 3 address-family ipv4 unicast route-policy pass-all in route-policy pass-all out neighbor 10.0.101.64 remote-as 5 update-source Loopback0 address-family ipv4 unicast route-policy pass-all in route-policy pass-all out Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 113: Displaying Bgp Update Groups: Example

    167 exit address-family ipv4 unicast route-policy pass-all in route-policy pass-out out neighbor 131.108.234.2 remote-as 109 exit address-family ipv4 unicast neighbor 150.136.64.19 remote-as 99 exit address-family ipv4 unicast Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 114: Bgp Confederation: Example

    6001 6003 exit address-family ipv4 unicast neighbor 170.70.70.1 remote-as 6002 exit address-family ipv4 unicast neighbor 171.69.232.57 remote-as 6001 exit address-family ipv4 unicast neighbor 171.69.232.56 remote-as 6003 exit Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 115 701 address-family ipv4 unicast neighbor 171.69.232.56 remote-as 666 exit address-family ipv4 unicast route-policy pass-all in route-policy pass-all out exit address-family ipv4 unicast neighbor 200.200.200.205 remote-as 701 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 116: Bgp Route Reflector: Example

    Originating Prefixes With AiGP: Example The following is a sample configuration for originating prefixes with the AiGP metric attribute: route-policy aigp-policy set aigp-metric 4 set aigp-metric igp-cost end-policy Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 117: Vrf Dynamic Route Leaking Configuration: Example

    • Divert traffic to application or cache server. Restrictions for Flow-Tag Propagation Some restrictions are placed with regard to using Quality-of-service Policy Propagation Using Border Gateway Protocol (QPPB) and flow-tag feature together. These include: Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 118: Configuring Destination-Based Flow-Tag Propagation

    Router(config-pmap)# class type traffic FLOWMATCH36 Router(config-pmap-c)# redirect ipv4 nexthop 20.20.20.1 Router(config-pmap-c)# exit Router(config-pmap)# class type traffic FLOWMATCH38 Router(config-pmap-c)# drop Router(config-pmap-c)# exit Router(config-pmap)# class type traffic DEFAULT Router(config-pmap-c)# exit Router(config-pmap)# end-policy-map Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 119 36 end-class-map class-map type traffic match-any FLOWMATCH40 match flow-tag 40 end-class-map policy-map type pbr FLOWMATCH class type traffic FLOWMATCH36 transmit class type traffic FLOWMATCH40 transmit Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 120 20.20.20.1/24 remote-as 20 address-family ipv4 unicast route-policy BGPIN in route-policy BGPOUT out route-policy BGPIN pass end-policy route-policy BGPOUT pass end-policy You have successfully configured destination-based flow-tag propagation. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 121: Where To Go Next

    Implementing BGP Where to Go Next Where to Go Next For detailed information about BGP commands, see Routing Command Reference for Cisco NCS 6000 Series Routers Additional References The following sections provide references related to implementing BGP. Related Documents Related Topic...
  • Page 122 Additional References MIBs MIBs MIBs Link — To locate and download MIBs using Cisco IOS XR software, use the Cisco MIB Locator found at the following URL and choose a platform under the Cisco Access Products menu: http://cisco.com/public/ sw-center/netmgmt/cmtk/mibs.shtml RFCs...
  • Page 123 Registered Cisco.com users can log in from this page to access even more content. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 124 Implementing BGP Additional References Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 125: Implementing Bgp Flowspec

    Note For more information about BGP Flowspec and complete descriptions of the BGP Flowspec commands listed in this module, see the BGP Flowspec Commands chapter in the Routing Command Reference for Cisco NCS 6000 Series Routers. Feature History for Implementing BGP Flowspec Release This feature was introduced.
  • Page 126: Limitations

    The action in this scenario is to 'drop' the DDoS traffic at the edge of the network itself and deliver only clean and legitimate traffic to the Customer Edge. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 127: Information About Implementing Bgp Flowspec

    Next-Hop information, this is encoded as a 0-octet length Next Hop in the MP_REACH_NLRI attribute and ignored on receipt. The NLRI field of the MP_REACH_NLRI and MP_UNREACH_NLRI is Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 128 Protocol are used to match the IP protocol value byte in IP packets. Encoding: <type (1 octet), [op, value]+> Syntax: Type 3: match protocol {protocol-value |min-value -max-value} Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 129 TCP or UDP packet. Values are encoded as 1- or 2-byte quantities. Encoding: <type (1 octet), [op, value]+> Syntax: match source-port {source-port-value |[min-value - max-value]} Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 130 Multi value range Layer 2, but including IP header). Values are encoded using 1- or 2-byte quantities. Encoding: <type (1 octet), [op, value]+> Syntax: matchpacket length {packet-length-value |min-value -max-value} Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 131: Traffic Filtering Actions

    A traffic-rate of 0 should result on all traffic for the particular flow to be discarded. Command syntax police rate < > | drop Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 132: Bgp Flowspec Client-Server (Controller) Model And Configuration With Epbr

    NRLI entry. The client (acting as a BGP speaker) receives that NRLI and programs the hardware forwarding to act on the instruction from the Controller. An illustration of this model is provided below. BGP Flowspec Client Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 133 • Configure a Policy Map, on page 115 • Configure a Class Map, on page 113 • Link BGP Flowspec to ePBR Policies , on page 116 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 134: Configuring Bgp Flowspec With Epbr

    Example: global address family for flowspec policy mapping. RP/0/RP0/CPU0:router(config-bgp)# address-family ipv4 flowspec Step 4 exit Returns the router to BGP configuration mode. Example: Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 135: Configure A Class Map

    Any combination of tuples 1-13 Example: match statements can be specified here. The tuple definition possibilities include: RP/0/RP0/CPU0:router(config-cmap)# match protocol ipv4 1 60 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 136 RP/0/RP0/CPU0:router(config-cmap)# end-class-map What to do next Associate the class defined in this procedure to a PBR policy as described in Configure a Policy Map, on page 115. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 137: Configure A Policy Map

    • Traffic rate: police rate rate RP/0/RP0/CPU0:router(config-pmap-c)# set dscp 5 • Redirect VRF: redirect { ipv4 }extcommunity rt route_target_string • Traffic Marking: set { dscp rate | destination-address {ipv4} 8-bit value} Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 138: Link Bgp Flowspec To Epbr Policies

    6. service-policy type pbr policy-name 7. commit 8. exit 9. show flowspec { afi-all | client | ipv4 | summary | vrf DETAILED STEPS Command or Action Purpose Step 1 configure Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 139 { afi-all | client | ipv4 | summary (Optional) Displays flowspec policy applied on an interface. | vrf Example: RP/0/RP0/CPU0:routershow flowspec vrf vrf1 ipv4 summary Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 140: Verify Bgp Flowspec

    In this example, IPv4 has been enabled, and a Example: single flow has been defined across the entire table. # show flowspec summary FlowSpec Manager Summary: Tables: Flows: RP/0/3/CPU0:RA01_R4# Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 141 Advertised to update-groups (with more than one peer): Local 0.0.0.0 from 0.0.0.0 (3.3.3.3) Origin IGP, localpref 100, valid, redistributed, best, group-best Received Path ID 0, Local Path ID 1, version Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 142: Preserving Redirect Nexthop

    { ipv4 } Specifies the IPv4 address family and enters address family configuration submode, and initializes the global address Example: family. RP/0/RP0/CPU0:router(config-bgp)# router bgp 100 neighbor 1.1.1.1 address-family ipv4 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 143: Validate Bgp Flowspec

    Disabling BGP Flowspec This procedure disables BGP flowspec policy on an interface. SUMMARY STEPS 1. configure 2. interface type interface-path-id 3. { ipv4 } flowspec disable 4. commit Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 144: Disable Flowspec Redirect And Validation

    2. router bgp as-number 3. neighbor ip-address 4. address-family { ipv4 } 5. flowspec validation { disable | redirect disable } DETAILED STEPS Command or Action Purpose Step 1 configure Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 145: Configuration Examples For Implementing Bgp Flowspec

    The goal is also to disable flowspec getting enabled on gig 0/0/0/0. class-map type traffic match-all fs_tuple match destination-address ipv4 10.0.1.0/24 match source-address ipv4 192.0.0.0/8 match destination-port 137-139 8080 end-class-map policy-map type pbr fs_table_blue class type traffic fs_tuple Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 146 Interface GigabitEthernet 0/0/0/0 vrf blue ipv4 flowspec disable Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 147: Drop Packet Length

    Related Topic Document Title BGP flowspec commands: complete command syntax, Routing Command Reference for Cisco NCS command modes, command history, defaults, usage 6000 Series Routers guidelines, and examples Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 148 Registered Cisco.com users can log in from this page to access even more content. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 149: Implementing Bfd

    C H A P T E R Implementing BFD This module describes the configuration of bidirectional forwarding detection (BFD) on the Cisco NCS 6000 Series Router. Bidirectional forwarding detection (BFD) provides low-overhead, short-duration detection of failures in the path between adjacent forwarding engines. BFD allows a single mechanism to be used for failure detection over any media and at any protocol layer, with a wide range of detection times and overhead.
  • Page 150: Restrictions For Implementing Bfd

    • For BFD on bundle member links, only a single BFD session for each bundle member link is created, monitored, and maintained for the IPv4 addressing type only. IPv6 and VLAN links in a bundle have the following restrictions: Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 151: Information About Bfd

    • In Cisco IOS XR software, BFD is an application that is configured under a dynamic routing protocol, such as an OSPF or BGP instance. This is not the case for BFD in Cisco IOS software, where BFD is only configured on an interface.
  • Page 152: Bfd Packet Information

    The BFD over bundle member feature increments each byte of the UDP source port on echo packets with each transmission. UDP source port ranges from 0xC0C0 to 0xFFFF. For example: 1st echo packet: 0xC0C0 2nd echo packet: 0xC1C1 3rd echo packet: 0xC2C2 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 153: Bfd Packet Intervals And Failure Detection

    The standard echo failure detection scheme is done through a counter that is based on the value of the bfd multiplier command on non-bundle interfaces, and the value of the bfd address-family ipv4 multiplier command for bundle interfaces. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 154 3 and echo failure is detected. In this case, echo failure detection occurs at the 150 ms (I x M) window: Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 155 Time Examples on Bundle Interfaces): • Value of I—Minimum period between sending of BFD control packets. • Value of I x M • BFD control packet failure detection time. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 156 BFD session to change state. For more information, see the Delaying BFD Session Startup Until Verification of Echo Path Latency. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 157: Priority Settings For Bfd Packets

    Cisco IOS XR software supports bidirectional forwarding detection (BFD) singlehop and multihop for both IPv4 and IPv6. In BFD for IPv4 single-hop connectivity, Cisco IOS XR software supports both asynchronous mode and echo mode over physical numbered Packet-over-SONET/SDH (POS) and Gigabit Ethernet links, as follows: •...
  • Page 158: Enabling Bfd On A Static Route

    For example, BFD cannot be configured on BVI and interflex. • Cisco IOS XR software supports BFD Version 0 and Version 1. BFD sessions are established using either version, depending upon the neighbor. BFD Version 1 is the default version and is tried initially for session creation.
  • Page 159: Bfd For Ipv6

    0.0.0.0/0 2.6.0.2 Step 6 commit BFD for IPv6 BFD on Bundled VLANs • Note For more information on configuring a VLAN bundle, see the module. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 160: Bfd Over Member Links On Link Bundles

    A BFD member link is “IIR Active” if the link is in LACP distributing state and the BFD session is up. • A BFD member link is “IIR Attached” when the BFD session is down, unless a LACP state transition is received. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 161 Whenever a member’s state changes, the bundle manager determines if the number of active members is less than the minimum number of active links threshold. If so, then the bundle is placed, or remains, Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 162: Bfd For Multihop Paths

    IPv6 routes using iBGP/eBGP as the client application. BFD Multihop provides continuity check (CC) on arbitrary paths spanning multiple network hops and provides failure notifications for Multihop protocols like BGP, MPLS Traffic Engineering, and LDP. The Cisco IOS XR Software BFD MHv6 implementation is in accordance with IETF RFC5883 for IPv6 networks.
  • Page 163: Bfd Over Mpls Traffic Engineering Lsps

    LSP Ping messages, BFD can be deployed for faster detection of data plane failure for a large number of LSPs. The BFD over MPLS TE LSPs implementation in Cisco IOS XR Software is based on RFC 5884: Bidirectional Forwarding Detection (BFD) for MPLS Label Switched Paths (LSPs). LSP Ping is an existing mechanism for detecting MPLS data plane failures and for verifying the MPLS LSP data plane against the control plane.
  • Page 164: How To Configure Bfd

    • FRR/TE, FRR/IP, and FRR/LDP using BFD is supported on POS interfaces and Ethernet interfaces. • To establish a BFD neighbor in Cisco IOS XR software, BFD must either be configured under a dynamic routing protocol, or using a static route.
  • Page 165 RP/0/RP0/CPU0:router(config-bgp-nbr)# bfd fast-detect set up as the BGP peer. In this example, BFD is enabled between the local networking devices and the neighbor 172.168.40.24. Step 8 commit Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 166: Enabling Bfd For Ospf On An Interface

    For example, for MPLS-TE, enter MPLS-TE configuration mode. Step 4 bfd minimum-interval milliseconds Sets the BFD minimum interval. Range is 15-30000 milliseconds. Example: Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 167: Enabling Bfd For Ospfv3 On An Interface

    BFD per-interface configuration is supported for OSPF, OSPFv3, IS-IS, and MPLS-TE only. For information about configuring BFD on an OSPF interface, see Enabling BFD for OSPF on an Interface. SUMMARY STEPS 1. configure Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 168 Enters interface configuration mode and specifies the interface name and notation rack/slot/module/port. Example: • The example indicates a Gigabit Ethernet interface in modular services card slot 1. RP/0/RP0/CPU0:router(config-ospfv3-ar)# interface gigabitEthernet 0/1/5/0 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 169: Configuring Bfd On Bundle Member Links

    Command or Action Purpose Step 1 configure Step 2 interface Bundle-Ether | Bundle-POS] bundle-id Enters interface configuration mode for the specified bundle Example: RP/0/RP0/CPU0:router(config)# interface Bundle-Ether 1 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 170: Enabling Bfd Sessions On Bundle Members

    Whenever the state of a member changes, the bundle manager determines whether the number of active members or available bandwidth is less than the minimum. If so, then the bundle is placed, or remains, in Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 171: Configuring Bfd Packet Transmission Intervals And Failure Detection Times On A Bundle

    The BFD echo packet interval and all failure detection times are determined by a combination of the interval and multiplier values in these commands. For more information see the BFD Packet Intervals and Failure Detection. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 172 The range is from 2 to 50. The default is 3. ipv4 multiplier 30 • Although the command allows you to Note configure a minimum of 2, the supported minimum is 3. Step 5 commit Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 173: Configuring Allowable Delays For Bfd State Change Notifications Using Timers On A Bundle

    RP/0/RP0/CPU0:router(config-if)# configuration issue is not resolved before the specified timer is reached, the BFD session is declared down. The range is 30 to 3600. Step 5 commit Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 174: Enabling Echo Mode To Test The Forwarding Path To A Bfd Peer

    2. bfd 3. echo ipv4 source ip-address 4. commit DETAILED STEPS Command or Action Purpose Step 1 configure Step 2 Enters BFD configuration mode. Example: RP/0/RP0/CPU0:router(config)# bfd Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 175: Specifying The Echo Packet Source Address On An Individual Interface Or Bundle

    Specifies an IPv4 address to be used as the source address in BFD echo packets, where ip-address is the 32-bit IP Example: address in dotted-decimal format (A.B.C.D). RP/0/RP0/CPU0:router(config-bfd)# echo ipv4 source 10.10.10.1 Step 5 commit Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 176: Configuring Bfd Session Teardown Based On Echo Latency Detection

    You can verify that the echo packet path is working and within configured latency thresholds before starting a BFD session on non-bundle interfaces. Note Echo startup validation is not supported on bundle interfaces. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 177 • The remote router echo capability is not considered (received control packet from remote system has zero or non-zero "Required Min Echo RX Interval" value). Step 4 commit Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 178: Disabling Echo Mode

    Step 2 Enters BFD configuration mode. Example: RP/0/RP0/CPU0:router(config)# bfd Step 3 echo disable Disables echo mode on the router. Example: RP/0/RP0/CPU0:router(config-bfd)# echo disable Step 4 commit Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 179: Disabling Echo Mode On An Individual Interface

    To configure BFD dampening to control BFD session flapping, complete the following steps. SUMMARY STEPS 1. configure 2. bfd 3. dampening [bundle-member] {initial-wait | maximum-wait | secondary-wait} milliseconds 4. commit Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 180: Enabling And Disabling Ipv6 Checksum Support

    To enable or disable IPv6 checksum calculations globally on the router complete the following steps: SUMMARY STEPS 1. configure 2. bfd 3. ipv6 checksum [disable] 4. commit DETAILED STEPS Command or Action Purpose Step 1 configure Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 181: Bundle

    Example: RP/0/RP0/CPU0:router(config-bfd)# interface gigabitEthernet 0/1/5/0 Step 4 ipv6 checksum [disable] Enables IPv6 checksum support on the interface. To disable, use the disable keyword. Example: RP/0/RP0/CPU0:router(config-bfd-if)# ipv6 checksum Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 182: Clearing And Displaying Bfd Counters

    TE waits for the bringup timeout before bringing down the tunnel. BFD is disabled on TE tunnels by default. Perform these tasks to configure BFD parameters and enable BFD over TE Tunnels. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 183 Once LSP is signaled and BFD session is created, TE allows given time for the BFD session to come up. If BFD session fails to come up within timeout, the LSP is torn down. Hence it is required to configure BFD bring up timeout Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 184: Configuring Bfd Bring Up Timeout

    Before you begin • BFD must be enabled under MPLS TE tunnel interface. • BFD bring up timeout interval must be configured using the bfd bringup-timeout command. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 185 The secondary-wait bring up delay time interval range is 1 RP/0/RP0/CPU0:router(config-if)#bfd dampening to 518400000 milliseconds. Default secondary-wait interval secondary-wait 30000 is 20000 milliseconds. Step 6 commit What to do next Configure periodic LSP ping option. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 186: Configuring Periodic Lsp Ping Requests

    60 and 3600 seconds. Step 4 commit What to do next Configure BFD at the tail-end. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 187: Configuring Bfd At The Tail End

    BFD over LSP sessions, both head-end and tail-end, will be hosted on line cards with following configuration enabled. SUMMARY STEPS 1. configure 2. bfd 3. multipath include location node-id 4. commit Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 188: Configuring Bfd Object Tracking

    Example: RP/0/RP0/CPU0:router(config-track)# type bfdrtr rate 4 Step 4 debouncedebounce debounce - count of consecutive BFD probes whose status should match before BFD notifies OT Example: Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 189: Configuration Examples For Configuring Bfd

    The following example shows how to enable BFD for OSPF on a Gigabit Ethernet interface: RP/0/RP0/CPU0:router#configure RP/0/RP0/CPU0:router(config)#router ospf 0 RP/0/RP0/CPU0:router(config-ospf)#area 0 RP/0/RP0/CPU0:router(config-ospf-ar)#interface gigabitEthernet 0/3/0/1 RP/0/RP0/CPU0:router(config-ospf-ar-if)#bfd fast-detect RP/0/RP0/CPU0:router(config-ospf-ar-if)#commit RP/0/RP0/CPU0:router(config-ospf-ar-if)#end RP/0/RP0/CPU0:router#show run router ospf router ospf 0 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 190: Bfd Over Static Routes: Examples

    Bundle-Ether1.100 routed interface BVI100 router vrrp interface BVI100 bfd minimum-interval 15 address-family ipv4 vrrp 100 address 192.168.1.254 bfd fast-detect peer ipv4 192.168.1.2 router ospf 100 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 191 BVI100 bfd minimum-interval 15 address-family ipv4 vrrp 100 address 192.168.1.254 bfd fast-detect peer ipv4 192.168.1.1 router ospf 100 vrf cctv1 router-id 192.168.1.2 area 0 interface BVI100 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 192: Bfd On Bundle Member Links: Examples

    1 mode active interface Pos0/1/0/3 bundle id 1 mode active router static address-family ipv4 unicast ! IPv4 Bundle-Pos1 session, shares ownership with bundle manager 192.168.177.1/32 192.168.77.2 bfd fast-detect Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 193 Bundle-Ether4 bfd address-family ipv4 destination 192.168.4.2 bfd address-family ipv4 fast-detect bfd address-family ipv4 min 83 bfd address-family ipv4 mul 3 ipv4 address 192.168.4.1/30 bundle minimum-active links 1 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 194: Echo Packet Source Address: Examples

    RP/0/RP0/CPU0:router(config-bfd-if)#echo ipv4 source 10.10.10.1 Echo Latency Detection: Examples In the following examples, consider that the BFD minimum interval is 50 ms, and the multiplier is 3 for the BFD session. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 195: Echo Startup Validation: Examples

    The following example shows how to disable echo mode on a router: RP/0/RP0/CPU0:router#configure RP/0/RP0/CPU0:router(config)#bfd RP/0/RP0/CPU0:routerr(config-bfd)#echo disable The following example shows how to disable echo mode on an interface: Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 196: Bfd Dampening: Examples

    RP/0/RP0/CPU0:router(config-bfd)#interface gigabitethernet 0/1/0/0 RP/0/RP0/CPU0:router(config-bfd-if)#ipv6 checksum The following example shows how to disable echo mode for BFD sessions on an individual interface: RP/0/RP0/CPU0:router#configure RP/0/RP0/CPU0:router(config)#bfd RP/0/RP0/CPU0:router(config-bfd)#interface gigabitethernet 0/1/0/0 RP/0/RP0/CPU0:router(config-bfd-if)#ipv6 checksum disable Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 197: Bfd Peers On Routers Running Cisco Ios And Cisco Ios Xr Software: Example

    IOS software, and use the bfd neighbor command to designate the IP address 192.0.2.1 of an interface as its BFD peer on Router 2. Router 2 is running Cisco IOS XR software and uses the router static command and address-family ipv4 unicast command to designate the path back to Router 1’s interface with IP address 192.0.2.2.
  • Page 198: Bfd Over Mpls Te Tunnel Tail-End Configuration: Example

    Where to Go Next BFD is supported over multiple platforms. For more detailed information about these commands, see the related chapters in the corresponding Cisco IOS XR Routing Command Reference and Cisco IOS XR MPLS Command Reference for your platform at: http://www.cisco.com/en/US/products/ps5845/prod_command_reference_list.html...
  • Page 199: Rfcs

    Registered Cisco.com users can log in from this page to access even more content. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 200 Implementing BFD Technical Assistance Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 201: Implementing Eigrp

    Note For more information about EIGRP on the Cisco IOS XR software and complete descriptions of the EIGRP commands listed in this module, see the EIGRP Commands chapter in the Routing Command Reference for Cisco NCS 6000 Series Routers. To locate documentation for other commands that might appear while executing a configuration task, search online in the Cisco IOS XR software master command index.
  • Page 202: Restrictions For Implementing Eigrp

    Restrictions for Implementing EIGRP Restrictions for Implementing EIGRP The following restrictions are employed when running EIGRP on this version of Cisco IOS XR software: • • The characters allowed for EIGRP process name are @ . # : - _ only.
  • Page 203: Eigrp Components

    Neighbor discovery or neighbor recovery is achieved with low overhead by periodically sending small hello packets. As long as hello packets are received, the Cisco IOS XR software can determine that a neighbor is alive and functioning. After this status is determined, the neighboring routers can exchange routing information.
  • Page 204: Eigrp Configuration Grouping

    IP routing protocols. EIGRP Configuration Grouping Cisco IOS XR software groups all EIGRP configuration under router EIGRP configuration mode, including interface configuration portions associated with EIGRP. To display EIGRP configuration in its entirety, use the show running-config router eigrp command.
  • Page 205: Redistribution For An Eigrp Process

    K values are used. The default K values are 1, 0, 1, 0, and 0. hostname ROUTER-B! interface GigabitEthernet0/6/0/1 ipv4 address 10.1.1.2 255.255.255.0 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 206: Goodbye Message

    RP/0//CPU0:Mar 13 09:13:17:eigrp[163]:%ROUTING-EIGRP-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 10.0.0.20 (GigabitEthernet0/6/0/0) is down: Interface Goodbye received A Cisco router that runs a software release that does not support the goodbye message can misinterpret the message as a K-value mismatch and display the following message: RP/0//CPU0:Mar 13 09:13:17:eigrp[163]:%ROUTING-EIGRP-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 10.0.0.20 (GigabitEthernet0/6/0/0) is down: K-value mismatch...
  • Page 207 Router-C. If the connection between Router-E and Router-C fails, the network continues to operate normally. All traffic flows from Router-C through Router-B to the hosts attached to Router-A and Router-D. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 208: Split Horizon For An Eigrp Process

    EIGRP configured, you may want to disable split horizon. Adjustment of Hello Interval and Hold Time for an EIGRP Process You can adjust the interval between hello packets and the hold time. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 209: Stub Routing For An Eigrp Process

    The stub routing feature by itself does not prevent routes from being advertised to the remote router. In the example in Figure 13: Simple Hub-and-Spoke Network, on page 187 , the remote router can access the corporate Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 210: Route Policy Options For An Eigrp Process

    • route-policy—Match statements are allowed for destination, next hop, and tag. Set statements are allowed for eigrp-metric and tag. • redistribute—Match statements are allowed for destination, next hop, source-protocol, tag and route-type. Set statements are allowed for eigrp-metric and tag. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 211: Eigrp V4/V6 Authentication Using Keychain

    Message Digest 5 (MD5) authentication. The EIGRP routing authentication uses the Cisco IOS XR software security keychain infrastructure to store and retrieve secret keys and to authenticate incoming and outgoing traffic on a per-interface basis.
  • Page 212 (Optional) Configures the hold time for an interface. Example: RP/0/RP0/CPU0:router(config-eigrp-af-if)# holdtime Step 9 bandwidth-percent percent (Optional) Configures the percentage of bandwidth that may be used by EIGRP on an interface. Example: RP/0/RP0/CPU0:router(config-eigrp-af-if)# bandwidth-percent 75 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 213: Configuring Route Summarization For An Eigrp Process

    Specifies the AS number of the routing process to configure an EIGRP routing process Example: RP/0/RP0/CPU0:router(config)# router eigrp 100 Step 3 address-family { ipv4 } Enters an address family configuration mode. Example: Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 214: Redistributing Routes For Eigrp

    7. maximum paths maximum 8. maximum-prefix maximum [ threshold ] [[ dampened ] [ reset-time minutes ] [ restart minutes ] [ restart-count number ] | [ warning-only]] 9. commit Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 215 Limits the number of prefixes that are accepted under an ] [ reset-time minutes ] [ restart minutes ] [ address family by EIGRP. restart-count number ] | [ warning-only]] Example: RP/0/RP0/CPU0:router(config-eigrp-af)# maximum-prefix 50000 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 216: Creating A Route Policy And Attaching It To An Eigrp Process

    RP/0/RP0/CPU0:router(config-rpl)# set eigrp metric 42 100 200 100 1200 Step 4 end-policy Ends the definition of a route policy and exits route-policy configuration mode. Example: RP/0/RP0/CPU0:router(config-rpl)# end-policy Step 5 commit Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 217: Configuring Stub Routing For An Eigrp Process

    6. show eigrp [ ipv4 ] neighbors [ as-number ] [ detail ] [ type interface-path-id | static ] DETAILED STEPS Command or Action Purpose Step 1 configure Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 218: Monitoring Eigrp Routing

    12. show eigrp [ as-number ] [ ipv4 | ipv6 ] topology [ ip-address mask ] [ active | all-links | detail-links | pending | summary | zero-successors ] Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 219 [ as-number ] [ ipv4 | ipv6 ] interfaces Displays information about interfaces configured for [ type interface-path-id ] [ detail ] EIGRP. Example: RP/0/RP0/CPU0:router# show eigrp interfaces detail Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 220: Configuration Examples For Implementing Eigrp

    144 address-family ipv4 metric maximum-hops 20 router-id 10.10.9.4 route-policy GLOBAL_FILTER_POLICY in log-neighbor-changes log-neighbor-warnings interface Loopback0 interface GigabitEthernet 0/2/0/0 passive-interface interface GigabitEthernet 0/6/0/0 hello-interval 8 hold-time 30 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 221: Configuring An Eigrp Stub Operation: Example

    Series Routers Standards Standards Title No new or modified standards are supported by this feature, and support for existing standards has not — been modified by this feature. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 222 Additional References MIBs MIBs MIBs Link — To locate and download MIBs using Cisco IOS XR software, use the Cisco MIB Locator found at the following URL and choose a platform under the Cisco Access Products menu: http://cisco.com/public/ sw-center/netmgmt/cmtk/mibs.shtml RFCs...
  • Page 223: Prerequisites For Implementing Is-Is

    10589 and RFC 1195, and adds the standard extensions for single topology and multitopology IS-IS for IP Version 6 (IPv6). This module describes how to implement IS-IS (IPv4 and IPv6) on your Cisco IOS XR network. • Prerequisites for Implementing IS-IS, on page 201 •...
  • Page 224: Is-Is Functional Overview

    Key Features Supported in the Cisco IOS XR IS-IS Implementation The Cisco IOS XR implementation of IS-IS conforms to the IS-IS Version 2 specifications detailed in RFC 1195 and the IPv6 IS-IS functionality based on the Internet Engineering Task Force (IETF) IS-IS Working Group draft-ietf-isis-ipv6.txt document.
  • Page 225: Is-Is Configuration Grouping

    IS-IS Configuration Grouping IS-IS Configuration Grouping Cisco IOS XR groups all of the IS-IS configuration in router IS-IS configuration mode, including the portion of the interface configurations associated with IS-IS. To display the IS-IS configuration in its entirety, use the show running router isis command. The command output displays the running configuration for all configured IS-IS instances, including the interface assignments and interface attributes.
  • Page 226: Is-Is Interfaces

    By default, IPv6 routing is disabled in the software. To enable IPv6 routing, you must assign IPv6 addresses to individual interfaces in the router using the ipv6 enable or ipv6 address command. See the Network Stack IPv4 and IPv6 Commands on module of IP Addresses and Services Command Reference for Cisco NCS 6000 Series Routers.
  • Page 227: Flood Blocking On Specific Interfaces

    LSPs from timing out. Single-Topology IPv6 Support Single-topology IPv6 support on Cisco IOS XR software software allows IS-IS for IPv6 to be configured on interfaces along with an IPv4 network protocol. All interfaces must be configured with the identical set of network protocols, and all routers in the IS-IS area (for Level 1 routing) or the domain (for Level 2 routing) must support the identical set of network layer protocols on all interfaces.
  • Page 228: Is-Is Authentication

    Nonstop Forwarding On Cisco IOS XR software, NSF minimizes the amount of time a network is unavailable to its users following a route processor (RP) failover. The main objective of NSF is to continue forwarding IP packets and perform a graceful restart following an RP failover.
  • Page 229: Multi-Instance Is-Is

    NSF. Note If you configure IETF NSF on the Cisco IOS XR router and a neighbor router does not support IETF NSF, the affected adjacencies flap, but nonstop forwarding is maintained to all neighbors that do support IETF NSF.
  • Page 230: Multiprotocol Label Switching Traffic Engineering

    When the IS-IS overload bit avoidance feature is activated, all nodes with the overload bit set, including head nodes, mid nodes, and tail nodes, are ignored, which means that they are still available for use with label switched paths (LSPs). Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 231: Default Routes

    You can force a default route into an IS-IS routing domain. Whenever you specifically configure redistribution of routes into an IS-IS routing domain, the Cisco IOS XR software does not, by default, redistribute the default route into the IS-IS routing domain. The default-information originate command generates a default route into IS-IS, which can be controlled by a route policy.
  • Page 232: Mpls Label Distribution Protocol Igp Synchronization

    (for example, when LDP is used for transport in the core) and on multiple IGP instances simultaneously. This feature supports the IPv4 address family for the default VPN routing and forwarding (VRF) instance. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 233: Mpls Te Forwarding Adjacency

    IPFRR LFA. IPFRR LFA is different from Multiprotocol Label Switching (MPLS) as it is applicable to networks using conventional IP routing and forwarding. See MPLS Configuration Guide for Cisco NCS 6000 Series Routers for information on configuring MPLS IPFRR.
  • Page 234: Unequal Cost Multipath Load-Balancing For Is-Is

    This task explains how to enable IS-IS and configure the routing level for an area. Note Configuring the routing level in Step 4 is optional, but is highly recommended to establish the proper level of adjacencies. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 235 1 adjacencies are established. The software learns about destinations inside its area only. Any packets containing destinations outside the area are sent to the nearest level-1-2 router in the area. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 236: Configuring Single Topology For Is-Is

    You may configure the metric style in the address-family ipv6 stanza, but it is ignored in this case. If only IPv6 is enabled and single topology is configured, then the metric style is configured in the address-family ipv6 stanza. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 237 IPv6 processing on the interface with the eui-64 keyword. Example: RP/0/RP0/CPU0:router(config-if)# ipv4 address Specifies an IPv6 address assigned to the interface and 10.0.1.3 255.255.255.0 enables IPv6 processing on the interface with the link-local keyword. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 238 • This example configures a router with area ID 47.0004.004d.0001 and system ID 0001.0c11.1110.00. • To specify more than one area address, specify additional NETs. Although the area address portion Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 239 [ instance instance-id ] interface [ type (Optional) Displays information about the IS-IS interface. interface-path-id ] [ detail ] [ level { 1 | 2 }] Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 240: Controlling Lsp Flooding For Is-Is

    16. show isis interface [ type interface-path-id | level { 1 | 2 }] [ brief ] show isis [ instance instance-id ] database [ level { 1 | 2 }] [ detail | summary | verbose ] [ * | lsp-id ] Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 241 • This is the amount of time that the LSP persists in the database of a neighbor unless the LSP is regenerated RP/0/RP0/CPU0:router(config-isis)# max-lsp-lifetime 11000 or refreshed. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 242 Example: • This command is appropriate only for an NBMA network with highly meshed, point-to-point RP/0/RP0/CPU0:router(config-isis-if)# mesh-group blocked topologies. Step 15 commit Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 243: Configuring Nonstop Forwarding For Is-Is

    RP/0/RP0/CPU0:router# show isis database-log level Configuring Nonstop Forwarding for IS-IS This task explains how to configure your router with NSF that allows the Cisco IOS XR software to resynchronize the IS-IS link-state database with its IS-IS neighbors after a process restart. The process restart could be due to an: •...
  • Page 244 Step 7 commit Step 8 show running-config [ command ] (Optional) Displays the entire contents of the currently running configuration file or a subset of that file. Example: Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 245: Configuring Authentication For Is-Is

    • The level 1 keyword sets a password for authentication in the area (in Level 1 LSPs and Level SNPs). Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 246: Configuring Keychains For Is-Is

    3. l sp-password keychain keychain-name [ level { 1 | 2 }] [ send-only ] [ snp send-only ] 4. interface type interface-path-id 5. h ello-password keychain keychain-name [ level { 1 | 2 }] [ send-only ] Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 247: Configuring Mpls Traffic Engineering For Is-Is

    Traffic Engineering on MPLS Configuration Guide for Cisco NCS 6000 Series Routers Before you begin Your network must support the MPLS Cisco IOS XR software feature before you enable MPLS TE for IS-IS on your router. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 248 { 1 | 2 } Configures a router running IS-IS to flood MPLS TE link information into the indicated IS-IS level. Example: RP/0/RP0/CPU0:router(config-isis-af)# mpls traffic-eng level 1 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 249: Tuning Adjacencies For Is-Is

    The options configurable in the interface submode apply only to that interface. By default, the values are applied to both Level 1 and Level 2. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 250 Step 5 hello-padding { disable | sometimes } [ level { 1 | 2 Configures padding on IS-IS hello PDUs for an IS-IS interface on the router. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 251 (Optional) Displays information about the IS-IS interface. interface-path-id ] [ brief | detail ] [ level { 1 | 2 }] Example: RP/0/RP0/CPU0:router# show isis interface GigabitEthernet 0/1/0/1 brief Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 252: Setting Spf Interval For A Single-Topology Ipv4 And Ipv6 Configuration

    Command or Action Purpose Step 1 configure Step 2 router isis instance-id Enables IS-IS routing for the specified routing instance, and places the router in router configuration mode. Example: Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 253: Customizing Routes For Is-Is

    This task explains how to perform route functions that include injecting default routes into your IS-IS routing domain and redistributing routes learned in another IS-IS instance. This task is optional. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 254 ] routing domain. Example: • The route-policy keyword and route-policy-name argument specify the conditions under which the IPv4 or IPv6 default route is advertised. RP/0/RP0/CPU0:router(config-isis-af)# default-information originate Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 255 (Optional) Configures an IS-IS instance with an attached attached-bit send { always-set | never-set } bit in the Level 1 LSP. Example: RP/0/RP0/CPU0:router(config-isis-af)# attached-bit send always-set Step 11 commit Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 256: Configuring Mpls Ldp Is-Is Synchronization

    [ level { 1 | 2 }] Enables MPLS LDP synchronization for the IPv4 address family under interface GigabitEthernet 0/1/0/3. Example: RP/0/RP0/CPU0:router(config-isis-if-af)# mpls ldp sync level 1 Step 6 commit Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 257: Tagging Is-Is Interface Routes

    Exits router address family configuration mode, and returns the router to router configuration mode. Example: RP/0/RP0/CPU0:router(config-isis-af)# exit Step 6 interface type number Enters interface configuration mode. Example: RP/0/RP0/CPU0:router(config-isis)# interface GigabitEthernet 0/1/0/3 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 258: Setting The Priority For Adding Prefixes To The Rib

    RP/0/RP0/CPU0:router(config)# router isis isp Step 3 address-family { ipv4 | ipv6 } [ unicast ] Specifies the IPv4 or IPv6 address family, and enters router address family configuration mode. Example: Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 259: Configuring Ip Fast Reroute Loop-Free Alternate

    IS-IS. Before you begin Note IPFRR is supported on the Cisco IOS XR. IPv4 address families and single-level interfaces are supported. Multiprotocol Label Switching (MPLS) FRR and IPFRR cannot be configured on the same interface simultaneously.
  • Page 260: Configure Remote Loop-Free Alternate Paths For Is-Is

    (directly-connected neighbors) as backups to a destination. Though this works well in most topologies, it fails in ring topologies, because the immediate next hop is likely to use the source router itself to forward traffic, thereby creating loops. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 261 In this example, Router A chooses Router C as its RLFA backup, and uses LDP to establish a tunnel between them. Traffic from Router A is routed to Router C on fast reroute trigger. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 262 RP/0/RP0/CPU0:router(config)#router isis rlfa RP/0/RP0/CPU0:router(config-isis)#net 10.0001.0001.0001.00 cted 3. Configure RLFA for IS-IS. RP/0/RP0/CPU0:router(config-isis)# interface gigabitEthernet 0/0/0/1 RP/0/RP0/CPU0:router(config-isis-if)#address-family ipv4 unicast RP/0/RP0/CPU0:router(config-isis-if-af)#fast-reroute per-prefix remote-lfa tunnel mpls-ldp RP/0/RP0/CPU0:router(config-isis-if-af)#fast-reroute per-prefix remote-lfa maximum-metric RP/0/RP0/CPU0:router(config-isis-if-af)#exit Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 263 The maximum-metric command is required to limit the range of remote LFAs. The microloop avoidance command is used to avoid micro-loops by delaying the convergence of all or protected prefixes (as configured in this example). For more information on these commands, see the Cisco ASR 9000 Series Aggregation Services Router Routing Command Reference.
  • Page 264 0x400] path-idx 0 bkup-idx 1 [0x1dc560cc 0x0] next hop 2.2.2.3 local label 16011 labels imposed {16001} via 1.1.1.2, GigabitEthernet0/1/0/0, 2 dependencies, weight 0, class 0, backup (remote) Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 265 Switched ------ ----------- ------------------ ------------ --------------- ------------ 16011 16001 10.1.1.1/32 GI0/1/CPU0 2.2.2.3 Updated Apr 29 14:25:09.770 Path Flags: 0x400 [ BKUP-IDX:1 (0x1dc460cc) ] Version: 5, Priority: 3 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 266 [ Backup (remote); path-id 33; peer 3.3.3.3:0 remote LFA 4.4.4.4, remote peer 4.4.4.4:0 ] Routing update : Apr 23 17:22:33.102 (00:08:02 ago) Forwarding update: Apr 23 17:22:47.183 (00:07:48 ago) -------------------------------------------------------------------------------- Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 267 IPv4 paths: 10 (1 backup [1 remote], 2 protected) IP subscriber: 0 Ingress Forwarding Chain Verification (Backup over Non-TE) Verify the presence of remote backup paths in the ingress forwarding chain. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 268 : no rp drop : no hash type uidb index : 0x5 FRR backup info FRR Flags : 0x28c /* updated to indicate PQ is active */ Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 269: Configuring Is-Is Overload Bit Avoidance

    Configuring IS-IS Overload Bit Avoidance This task describes how to activate IS-IS overload bit avoidance. Before you begin The IS-IS overload bit avoidance feature is valid only on networks that support the following Cisco IOS XR features: • MPLS • IS-IS SUMMARY STEPS 1.
  • Page 270: Isis Link Group

    6. show isis lsp DETAILED STEPS Command or Action Purpose Step 1 configure Step 2 router isis instance-id Enters IS-IS configuration submode. Example: RP/0/RP0/CPU0:router(config)# router isis purple Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 271 The following is an example configuration, along with the show isis interface output: router isis 1 is-type level-2-only net 49.1111.0000.0000.0006.00 link-group foo metric-offset 100 revert-members 4 minimum-members 2 address-family ipv4 unicast metric-style wide interface GigabitEthernet0/0/0/1 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 272: Configure Link Group Interface

    Can send up to 9 back-to-back LSPs in the next 0 ms Configure Link Group Interface Perform this task to configure link group under Intermediate System-to-Intermediate System (IS-IS) interface and address-family sub-mode: Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 273 [ level {1 | 2 } ] Specifies the link-group name and sets the tag at the level specified. Example: RP/0/RP0/CPU0:router(config-isis-if)# )#address-family ipv4 unicast link-group access level 1 Step 6 commit Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 274: Configuration Examples For Implementing Is-Is

    The following example shows multitopology IS-IS being configured in IPv6. router isis isp net 49.0000.0000.0001.00 interface POS0/3/0/0 address-family ipv6 unicast metric-style wide level 1 exit interface POS0/3/0/0 ipv6 address 2001::1/64 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 275: Redistributing Is-Is Routes Between Multiple Instances: Example

    (5.5.5.0/24 eq 24) then set tag 555 pass else drop endif end-policy router static address-family ipv4 unicast 0.0.0.0/0 2.6.0.1 5.5.5.0/24 Null0 router isis uut net 00.0000.0000.12a5.00 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 276: Configuring Is-Is Overload Bit Avoidance: Example

    MPLS TE feature information Implementing MPLS Traffic Engineering on module in MPLS Configuration Guide for Cisco NCS 6000 Series Routers Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 277 MIBs MI B s MIBs Link — To locate and download MIBs using Cisco IOS XR software, use the Cisco MIB Locator found at the following URL and choose a platform under the Cisco Access Products menu: http://cisco.com/public/ sw-center/netmgmt/cmtk/mibs.shtml RFCs...
  • Page 278 Registered Cisco.com users can log in from this page to access even more content. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 279: Prerequisites For Implementing Ospf

    OSPF Version 3 (OSPFv3) expands on OSPF Version 2, providing support for IPv6 routing prefixes. This module describes the concepts and tasks you need to implement both versions of OSPF on your Cisco NCS 6000 Series Router . The term “OSPF" implies both versions of the routing protocol, unless otherwise noted.
  • Page 280: Information About Implementing Ospf

    See the Implementing Network Stack IPv4 and IPv6 on module of the IP Addresses and Services Configuration Guide for Cisco NCS 6000 Series Routers for information on IPv6 routing and addressing. • Before you enable OSPFv3 on an interface, you must perform the following tasks: •...
  • Page 281: Key Features Supported In The Cisco Ios Xr Software Ospf Implementation

    Key Features Supported in the Cisco IOS XR Software OSPF Implementation The Cisco IOS XR Software implementation of OSPF conforms to the OSPF Version 2 and OSPF Version 3 specifications detailed in the Internet RFC 2328 and RFC 2740, respectively.
  • Page 282: Comparison Of Cisco Ios Xr Software Ospfv3 And Ospfv2

    With CLI inheritance support, you need not explicitly configure a parameter for an area or interface. In Cisco IOS XR Software, the parameters of interfaces in the same area can be exclusively configured with a single command, or parameter values can be inherited from a higher hierarchical level—such as from the area configuration level or the router ospf configuration levels.
  • Page 283: Ospf Routing Components

    An autonomous system is also referred to as a routing domain. Figure 15: OSPF Routing Components, on page 261 shows two autonomous systems: 109 and 65200. An autonomous system can consist of one or more OSPF areas. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 284: Areas

    NSSA. Area 0 cannot be an NSSA. Routers The OSPF network is composed of ABRs, ASBRs, and interior routers. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 285: Ospf Process And Router Id

    ASBRs can import external routing information from other protocols like BGP and redistribute them as AS-external (ASE) Type 5 LSAs to the OSPF network. If the Cisco IOS XR router is an ASBR, you can configure it to advertise VIP addresses for content as autonomous system external routes. In this way, ASBRs flood information about external networks to routers within the OSPF network.
  • Page 286: Supported Ospf Network Types

    • Broadcast networks (Gigabit Ethernet) • Point-to-multipoint You can configure your Cisco IOS XR network as either a broadcast or an NBMA network. Route Authentication Methods for OSPF OSPF Version 2 supports two types of authentication: plain text authentication and MD5 authentication. By default, no authentication is enabled (referred to as null authentication in RFC 2178).
  • Page 287: Key Rollover

    On broadcast and NBMA networks all neighboring routers have an adjacency. Designated Router (DR) for OSPF On point-to-point and point-to-multipoint networks, the Cisco IOS XR software floods routing updates to immediate neighbors. No DR or backup DR (BDR) exists; all routing information is flooded to each router.
  • Page 288: Link-State Advertisement Types For Ospf Version 2

    The LSA indicates whether the router is an ABR or ASBR and if it is one end of a virtual link. Type 1 LSAs are also used to advertise stub networks. In OSPFv3, these LSAs have Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 289 LSAs is to identify individual pieces of the link-state database. All addresses or router IDs that are expressed by the link-state ID in OSPF Version 2 are carried in the body of the LSA in OSPFv3. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 290: Virtual Link And Transit Area For Ospf

    It is recommended to use passive configuration on interfaces that are connecting LAN segments with hosts to the rest of the network, but are not meant to be transit links between routers. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 291: Ospf Spf Prefix Prioritization

    • If only medium-priority route policy is specified and no maps are specified for high priority or critical priority: • Permitted prefixes matching medium-priority route policy are assigned to a medium-priority queue. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 292: Route Redistribution For Ospf

    This figure shows the intervals at which the SPF calculations occur as long as at least one topology change event is received in a given wait interval. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 293: Nonstop Forwarding For Ospf Version 2

    Nonstop Forwarding for OSPF Version 2 Cisco IOS XR Software NSF for OSPF Version 2 allows for the forwarding of data packets to continue along known routes while the routing protocol information is being restored following a failover. With NSF, peer networking devices do not experience routing flaps.
  • Page 294: Graceful Shutdown For Ospfv3

    Helper mode is enabled by default. When a (helper) router receives a grace LSA (Type 11) from a router that is attempting a graceful restart, the following events occur: Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 295 • All routes from RIB that were installed by OSPFv3 are purged. The router will not respond to any OSPF control packets it receives from neighbors while in protocol shutdown state. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 296: Graceful Restart Requirements And Restrictions

    • Simultaneous graceful restart sessions on multiple routers are not supported on a single network segment. If a router determines that multiple routers are in restart mode, it terminates any local graceful restart operation. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 297: Warm Standby And Nonstop Routing For Ospf Version 2

    In this case, the router chooses the path with the lowest cost (or metric) to the destination. Each routing process calculates its cost differently; the costs may need to be manipulated to achieve load balancing. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 298: Multi-Area Adjacency For Ospf Version 2

    Enable/Disable ignoring of MTU in DBD packets packet-size Customize size of OSPF packets upto MTU retransmit-interval Time between retransmitting lost link state advertisements transmit-delay Estimated time needed to send link-state update packet RP/0/RP0/CPU0:router(config-ospf-ar-mif)# Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 299: Label Distribution Protocol Igp Auto-Configuration For Ospf

    This allows LDP to receive all OSPF interfaces minus the ones explicitly disabled. See MPLS Configuration Guide for Cisco NCS 6000 Series Routers for information on configuring LDP IGP auto-configuration. OSPF Authentication Message Digest Management All OSPF routing protocol exchanges are authenticated and the method used can vary depending on how authentication is configured.
  • Page 300: Ospf Queue Tuning Parameters

    OSPFv2 is extended to receive all area scopes (LSA Types 9, 10, and 11). However, OSPFv2 originates only area scope Type 10. For detailed information for the Path Computation Element feature see the Implementing MPLS Traffic Engineering on module of the MPLS Configuration Guide for Cisco NCS 6000 Series Routers and the following IETF drafts: • draft-ietf-ospf-cap-09 •...
  • Page 301: Management Information Base (Mib) For Ospfv3

    Management Information Base (MIB) for OSPFv3 Cisco IOS XR supports full MIBs and traps for OSPFv3, as defined in RFC 5643. The RFC 5643 defines objects of the Management Information Base (MIB) for use with the Open Shortest Path First (OSPF) Routing Protocol for IPv6 ( OSPF version 3).
  • Page 302: How To Implement Ospf

    1. configure 2. Do one of the following: • router ospf process-name • router ospfv3 process-name 3. router-id { router-id } 4. area area-id 5. interface type interface-path-id Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 303 Step 7 log adjacency changes [ detail ] [ enable | disable ] (Optional) Requests notification of neighbor changes. Example: • By default, this feature is enabled. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 304: Configuring Stub And Not-So-Stubby Area Types

    • router ospf process-name • router ospfv3 process-name Enables OSPFv3 routing for the specified routing process Example: and places the router in router ospfv3 configuration mode. RP/0/RP0/CPU0:router(config)# router ospf 1 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 305 • For example, the no nssa RP/0/RP0/CPU0:router(config-ospf-ar)# nssa default-information-originate form of the command changes the NSSA area into a normal area that inadvertently brings down the existing adjacencies in that area. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 306: Configuring Neighbors For Nonbroadcast Networks

    12. interface type interface-path-id 13. Do one of the following: • neighbor ip-address [ priority number ] [ poll-interval seconds ][ cost number ] [ database-filter [ all ]] Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 307 Example: RP/0/RP0/CPU0:router(config-ospf-ar)# network non-broadcast Step 6 dead-interval seconds (Optional) Sets the time to wait for a hello packet from a neighbor before declaring the neighbor down. Example: Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 308 The cost keyword does not apply to NBMA networks. • The database-filter keyword filters outgoing LSAs to an OSPF neighbor. If you specify the all keyword, Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 309 On point-to-multipoint interfaces, cost number is the only keyword and argument combination that works. The cost keyword does not apply to NBMA networks. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 310: Configuring Authentication At Different Hierarchical Levels For Ospf Version 2

    [ message-digest | null ] 12. interface type interface-path-id 13. Repeat Step 12 for each interface that must communicate, using the same authentication. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 311 OSPF process (Step 4, Step RP/0/RP0/CPU0:router(config-ospf-ar)# interface GigabitEthernet 0/1/0/3 5, and Step 6). Step 8 Repeat Step 7 for each interface that must communicate, — using the same authentication. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 312 • By default, all of the interfaces configured in the same RP/0/RP0/CPU0:router(config-ospf-ar-if)# authentication null area inherit the same authentication parameter values of the area. Step 16 commit Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 313: Controlling The Frequency That The Same Lsa Is Originated Or Accepted For Ospf

    Perform Step 5 or Step 6 or both to control the frequency — that the same LSA is originated or accepted. Step 5 timers lsa refresh seconds Sets how often self-originated LSAs should be refreshed, in seconds. Example: Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 314: Creating A Virtual Link With Md5 Authentication To Area 0 For Ospf

    • Before configuring your virtual link for OSPF Version 2, you must decide whether to configure plain text authentication, MD5 authentication, or no authentication (which is the default). Your decision determines whether you need to perform additional tasks related to authentication. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 315 Creating a Virtual Link with MD5 Authentication to Area 0 for OSPF Note If you decide to configure plain text authentication or no authentication, see the authentication command provided in OSPF Commands on module in Routing Command Reference for Cisco NCS 6000 Series Routers. SUMMARY STEPS Do one of the following: •...
  • Page 316 OSPF traffic. • The authentication-key key command is not supported for OSPFv3. • Once the key is encrypted it must remain encrypted. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 317: Examples

    (aggregate) into a single LSA all of the subnetworks that the local area advertises to another area. Such summarization would reduce the number of LSAs and thereby conserve Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 318 Example: • The area-id argument can be entered in dotted-decimal or IPv4 address notation, such as area RP/0/RP0/CPU0:router(config-ospf)# area 1000 or area 0.0.3.232. However, you must choose Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 319: Redistribute Routes Into Ospf

    [ process-id ] { level-1 | level-1-2 | level-2 } [ metric metric-value ] [ metric-type type-value ] [ match { external [ 1 | 2 ]} [ tag tag-value ] [ route-policy policy-name ] 5. Do one of the following: Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 320 • The OSPFv3 example redistributes BGP autonomous system 1, Level 1 and 2 routes into OSPF. The external link type associated with the default route advertised Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 321: Configuring Ospf Shortest Path First Throttling

    2. Do one of the following: • router ospf process-name • router ospfv3 process-name 3. router-id { router-id } 4. timers throttle spf spf-start spf-hold spf-max-wait 5. area area-id Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 322 IPv4 address notation. Step 6 interface type interface-path-id Enters interface configuration mode and associates one or more interfaces to the area. Example: RP/0/RP0/CPU0:router(config-ospf-ar)# interface GigabitEthernet 0/1/0/3 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 323: Examples

    Routing Command Reference for Cisco NCS 6000 Series Routers. Configuring Nonstop Forwarding Specific to Cisco for OSPF Version 2 This task explains how to configure OSPF NSF specific to Cisco on your NSF-capable router. This task is optional.
  • Page 324 OSPF NSF requires that all neighbor networking devices be NSF aware, which happens automatically after you install the Cisco IOS XR software image on the router. If an NSF-capable router discovers that it has non-NSF-aware neighbors on a particular network segment, it disables NSF capabilities for that segment.
  • Page 325: Configuring Ospf Version 2 For Mpls Traffic Engineering

    For a description of the MPLS TE tasks and commands that allow you to configure the router to support tunnels, configure an MPLS tunnel that OSPF can use, and troubleshoot MPLS TE, see Implementing MPLS Traffic Engineering on module of the MPLS Configuration Guide for Cisco NCS 6000 Series Routers Before you begin Your network must support the following features before you enable MPLS TE for OSPF on your router: •...
  • Page 326 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 327: Examples

    0/3/0/0 exists and MPLS TE is not configured: show route ospf 1 11.0.0.0/24 [110/15] via 0.0.0.0, 3d19h, tunnel-te1 192.168.0.12/32 [110/11] via 11.1.0.2, 3d19h, GigabitEthernet0/3/0/0 192.168.0.13/32 [110/6] via 0.0.0.0, 3d19h, tunnel-te1 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 328 Maximum sub pool reservable bandwidth :3125000 Number of Priority :8 Global pool unreserved BW Priority 0 : 25000000 Priority 1 : 25000000 Priority 2 : 25000000 Priority 3 : 25000000 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 329: Configuring Ospfv3 Graceful Restart

    The process name is any alphanumeric string no longer than 40 characters without spaces. RP/0/RP0/CPU0:router(config)# router ospfv3 test Step 3 graceful-restart Enables graceful restart on the current router. Example: RP/0/RP0/CPU0:router(config-ospfv3)#graceful-restart Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 330: Displaying Information About Graceful Restart

    Minimum LSA arrival 1000 msecs LSA group pacing timer 240 secs Interface flood pacing timer 33 msecs Retransmission pacing timer 66 msecs Maximum number of configured interfaces 255 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 331: Enabling Nonstop Routing For Ospfv2

    Step 1 configure Enter the global configuration mode. Step 2 router ospf instance-id Example: RP/0/RP0/CPU0:router(config)# router ospf isp Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 332: Enabling Nonstop Routing For Ospfv3

    Commit your configuration. Configuring OSPF SPF Prefix Prioritization Perform this task to configure OSPF SPF (shortest path first) prefix prioritization. SUMMARY STEPS 1. configure 2. prefix-set prefix-set name Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 333 RP/0/RP0/CPU0:router# router ospfv3 1 Step 5 spf prefix-priority route-policy route-policy name Configures SPF prefix-priority for the defined route policy. Example: Note Configure the spf prefix-priority command under router OSPF. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 334: Configuring Multi-Area Adjacency

    2. router ospf process-name 3. area area-id 4. interface type interface-path-id 5. area area-id 6. multi-area-interface type interface-path-id 7. commit DETAILED STEPS Command or Action Purpose Step 1 configure Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 335: Configuring Label Distribution Protocol Igp Auto-Configuration For Ospf

    This task explains how to configure LDP auto-configuration for an OSPF instance. Optionally, you can configure this feature for an area of an OSPF instance. SUMMARY STEPS 1. configure 2. router ospf process-name 3. mpls ldp auto-config Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 336: Configuring Ldp Igp Synchronization: Ospf

    Command or Action Purpose Step 1 configure Step 2 router ospf process-name Identifies the OSPF routing process and enters OSPF configuration mode. Example: RP/0/RP0/CPU0:router(config)# router ospf 100 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 337: Configuring Authentication Message Digest Management For Ospf

    A valid keychain must be configured before this task can be attempted. To learn how to configure a keychain and its associated attributes, see the Implementing Key Chain Management on module of the System Security Configuration Guide for Cisco NCS 6000 Series Routers. SUMMARY STEPS 1.
  • Page 338: Examples

    The following example shows that keychain authentication is enabled on the Gigabit Ethernet 0/4/0/1 interface: show ospf 1 interface GigabitEthernet0/4/0/1 GigabitEthernet0/4/0/1 is up, line protocol is up Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 339: Configuring Generalized Ttl Security Mechanism (Gtsm) For Ospf

    [ detail | disable ] nsf { cisco [ enforce global ] | ietf [ helper disable ]} timers throttle spf spf-start spf-hold spf-max-wait Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 340 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 RP/0/RP0/CPU0:router(config-ospf)# area 1 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 341: Examples

    Suppress hello for 0 neighbor(s) Multi-area interface Count is 0 Verifying OSPF Configuration and Operation This task explains how to verify the configuration and operation of OSPF. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 342 { ospf | ospfv3 } [ process-name ] [ area-id ] (Optional) Displays OSPF interface information. interface [ type interface-path-id ] Example: RP/0/RP0/CPU0:router# show ospf 100 interface GigabitEthernet 0/3/0/0 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 343: Configuring Ospf Queue Tuning Parameters

    2. router ospf process-name 3. queue dispatch incoming count 4. queue dispatch rate-limited-lsa count 5. queue dispatch spf-lsa-limit count 6. queue limit { high | medium | low } count Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 344: Configuring Ip Fast Reroute Loop-Free Alternate

    To enable protection on broadcast links, IPFRR and bidirectional forwarding detection (BFD) must be enabled on the interface under OSPF. Enabling IPFRR LFA SUMMARY STEPS 1. configure 2. router ospf process-name Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 345: Excluding An Interface From Ip Fast Reroute Per-Link Computation

    Excluding an Interface From IP Fast Reroute Per-link Computation SUMMARY STEPS 1. configure 2. router ospf process-name 3. area area-id 4. interface type interface-path-id 5. fast-reroute per-link exclude interface type interface-path-id 6. commit Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 346: Enabling Ospf Interaction With Srms Server

    Step 2 router ospf instance-id Enables OSPF routing for the specified routing instance, and places the router in router configuration mode. Example: RP/0/RP0/CPU0:router(config)# router ospf isp Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 347 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 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 348: Configure Remote Loop-Free Alternate Paths For Ospf

    In this example, Router A chooses Router C as its RLFA backup, and uses LDP to establish a tunnel between them. Traffic from Router A is routed to Router C on fast reroute trigger. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 349 RP/0/RP0/CPU0:router(config-ospf)#router-id 10.1.1.1 RP/0/RP0/CPU0:router(config-ospf)#area 1 3. Add the configured interface(s) to OSPF, and configure RLFA. RP/0/RP0/CPU0:router(config-ospf-ar)#interface gigabitEthernet 0/0/0/1 RP/0/RP0/CPU0:router(config-ospf-ar-if)#fast-reroute per-prefix remote-lfa tunnel mpls-ldp RP/0/RP0/CPU0:router(config-ospf-ar-if)#fast-reroute per-prefix remote-lfa maximum-cost RP/0/RP0/CPU0:router(config-ospf-ar-if)#exit Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 350 The maximum-cost command is required to limit the range of remote LFAs. The microloop avoidance command is used to delay the convergence of all or protected prefixes (as configured in this example). For more information on these commands, see the Cisco ASR 9000 Series Aggregation Services Router Routing Command Reference.
  • Page 351 (0x1d42b878) reference count 3, flags 0x28000d0, source lsd (3), 0 backups [2 type 5 flags 0x10101 (0x1da3c230) ext 0x0 (0x0)] LW-LDI[type=5, refc=3, ptr=0x1d563344, sh-ldi=0x1da3c230] via 2.2.2.3, GigabitEthernet0/2/0/0, 0 dependencies, weight 0, class 0, protected [flags 0x400] Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 352 ---------------------------------------------------------------------------------------------------------- RP/0/RP0/CPU0:router# show mpls forwarding prefix 10.1.1.1/32 detail Local Outgoing Prefix Outgoing Next Hop Bytes Label Label or ID Interface Switched ------ ----------- ------------------ ------------ --------------- ------------ Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 353 [ Protected; path-id 1 backup-path-id 33; peer 2.2.2.2:0 ] { 16003 Gi0/0/0/2 13.1.0.3 (!) G 16004 } (4.4.4.4) [ Backup (remote); path-id 33; peer 3.3.3.3:0 remote LFA 4.4.4.4, remote peer 4.4.4.4:0 ] Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 354 RP/0/RP0/CPU0:router# show mpls lsd forwarding summary Messages: 22 Forwarding updates: 34 Rewrites: 9 FPIs: Label: 9 IPv4: 5 MOIs: 13 IPv4 paths: 10 (1 backup [1 remote], 2 protected) IP subscriber: 0 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 355 [HW: 0x00000004 0x00000084 0x01280440 0x00050000] dest. addr : 0x4 sponge queue : 132 egress port : 0x128044 rp destined : no service destined : no rp drop : no hash type Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 356: Configuration Examples For Implementing Ospf

    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.
  • Page 357: Cli Inheritance And Precedence For Ospf Version 2: Example

    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.
  • Page 358: 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. See the MPLS Configuration Guide for Cisco NCS 6000 Series Routersfor information.
  • Page 359: Abr With Summarization For Ospfv3: Example

    This example shows how to configure /32 prefixes as medium-priority, in general, in addition to placing some /32 and /24 prefixes in critical-priority and high-priority queues: prefix-set ospf-critical-prefixes 192.41.5.41/32, 11.1.3.0/24, 192.168.0.44/32 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 360 3 interface GigabitEthernet0/2/0/0 area 8 interface GigabitEthernet0/2/0/0.590 OSPFv3 router ospfv3 1 spf prefix-priority route-policy ospf-priority area 0 interface GigabitEthernet0/3/0/0 area 3 interface GigabitEthernet0/2/0/0 area 8 interface GigabitEthernet0/2/0/0.590 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 361: Route Redistribution For Ospfv3: Example

    To understand virtual links, see Virtual Link and Transit Area for OSPF, on page 268. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 362: Ospf Queue Tuning Parameters Configuration: Example

    To build an MPLS TE topology, create tunnels, and configure forwarding over the tunnel for OSPF Version 2; see MPLS Configuration Guide for Cisco NCS 6000 Series Routers. Additional References The following sections provide references related to implementing OSPF. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 363 OSPFv3 Graceful Restart MIBs MIBs MIBs Link — To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL: http://www.cisco.com/go/mibs RFCs RFCs Title The OSPF NSSA Option...
  • Page 364 OSPF Out-of-Band Link State Database (LSDB) Resynchronization 4811 OSPF Restart Signaling 4812 OSPF Link-Local Signaling 4813 Extensions to OSPF for Advertising Optional Router Capabilities 4970 Management Information Base (MIB) for OSPFv3 5643 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 365 Registered Cisco.com users can log in from this page to access even more content. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 366 Implementing OSPF Additional References Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 367: Prerequisites For Ipv4/Ipv6 Loop-Free Alternate Fast Reroute

    • A maximum of eight FRR-protected interfaces can simultaneously undergo a cutover. • Only Layer 3 VPN is supported. • The remote LFA backup path for MPLS traffic can be setup only using LDP. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 368: Is-Is And Ip Frr

    The other members of the set can provide an alternative path when the link fails. • LFA is a next-hop route that delivers a packet to its destination without looping back. Downstream paths are a subset of LFAs. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 369: Lfa Overview

    • Linecard-disjoint—Eliminates candidates sharing the same linecard with the protected path. • Shared Risk Link Group (SRLG)—Eliminates candidates that belong to one of the protected path SRLGs. • Load-sharing—Distributes remaining candidates among prefixes sharing the protected path. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 370: Configuring Fast Reroute Support

    By default, every IS-IS instance acts as a level-1-2 router. RP/0/RP0/CPU0:router(config-isis)#is-type level-2-only • The level-1 keyword configures the software to perform only Level 1 (intra-area) routing. Only Level 1 adjacencies are established. The software only Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 371 Specifies the IPv4 or IPv6 address family, and enters interface address family configuration mode. Example: RP/0/RP0/CPU0:router(config-isis-if)# address-family ipv4 unicast Step 10 Enables per-prefix FRR. fast-reroute per-prefix Example: Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 372: Configuring Ipv4 Loop-Free Alternate Fast Reroute Support: Example

    MIBs MIBs MIBs Link — To locate and download MIBs using Cisco IOS XR software, use the Cisco MIB Locator found at the following URL and choose a platform under the Cisco Access Products menu: http://cisco.com/public/ sw-center/netmgmt/cmtk/mibs.shtml Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 373 Registered Cisco.com users can log in from this page to access even more content. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 374 Implementing IP Fast Reroute Loop-Free Alternate Additional References Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 375: Prerequisites For Implementing Rib

    AAA administrator for assistance. • RIB is distributed with the base Cisco IOS XR software; as such, it does not have any special requirements for installation. The following are the requirements for base software installation: •...
  • Page 376: Information About Rib Configuration

    If IS-IS and OSPF both download 10.0.1.0/24 to RIB, RIB would prefer the OSPF route because OSPF has a lower administrative distance. Administrative distance is used only to choose between multiple routes of the same length. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 377: Rib Support For Ipv4

    In Cisco IOS XR software, RIB tables support unicast routing. The default routing tables for Cisco IOS XR software RIB are the unicast RIB tables for IPv4 routing. RIB processes ipv4_rib and ipv6_rib run on the RP card. If process placement functionality is available and supported by multiple RPs in the router, RIB processes can be placed on any available node.
  • Page 378: Ip Fast Reroute

    Locally computed repair paths are used to prevent packet loss caused by loops that occur during network reconvergence after a failure. For information about IPFRR see Implementing IS-IS on Cisco IOS XR Software module in Routing Configuration Guide for Cisco NCS 6000 Series Routers.
  • Page 379: How To Deploy And Monitor Rib

    SUMMARY STEPS 1. show route ipv4 | ipv6 ] [ unicast ] 2. show route ipv4 | ipv6 ] [ unicast ] Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 380: Disabling Rib Next-Hop Dampening

    { ipv4 | ipv6 } next-hop dampening Disables next-hop dampening for IPv4 address families. disable Example: RP/0/RP0/CPU0:router(config-rib)# address family ipv4 next-hop dampening disable Step 3 commit Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 381: Configuring Rcc And Lcc

    (FIB). milliseconds} Example: RP/0/RP0/CPU0:router(config)#rcc ipv6 unicast enable RP/0/RP0/CPU0:router(config)#rcc ipv6 unicast period 500 RP/0/RP0/CPU0:router(config)#lcc ipv6 unicast enable RP/0/RP0/CPU0:router(config)#lcc ipv6 unicast period 500 Step 3 commit Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 382: Configuration Examples For Rib Monitoring

    Configuration Examples for RIB Monitoring RIB is not configured separately for the Cisco IOS XR system. RIB computes connectivity of the router with other nodes in the network based on input from the routing protocols. RIB may be used to monitor and troubleshoot the connections between RIB and its clients, but it is essentially used to monitor routing connectivity between the nodes in a network.
  • Page 383: Output Of Show Route Backup Command: Example

    10.10.10.1/32 is directly connected, 00:14:36, Loopback0 10.91.36.98/32 is directly connected, 00:14:32, Ethernet0/0 172.22.12.1/32 is directly connected, 00:13:35, GigabitEthernet3/0 192.168.20.2/32 is directly connected, 00:13:27, GigabitEthernet2/0 10.254.254.1/32 is directly connected, 00:13:26, GigabitEthernet2/2 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 384: Output Of Show Route Longer-Prefixes Command: Example

    For additional information on the protocols that interact with RIB, you may want to see the following publications: • Implementing BGP in Routing Configuration Guide for Cisco NCS 6000 Series Routers • Implementing EIGRP in Routing Configuration Guide for Cisco NCS 6000 Series Routers •...
  • Page 385: Additional References

    RFCs has not been modified by this feature. MIBs M I B MIBs Link — To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL: http://www.cisco.com/go/mibs Technical Assistance Description Link The Cisco Support website provides extensive online resources, including http://www.cisco.com/support...
  • Page 386 Implementing and Monitoring RIB Additional References Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 387: Prerequisites For Implementing Rip

    RIP Version 2 (RIPv2) that supports backward compatibility with RIP Version 1 (RIPv1) as specified by RFC 2453. Note For more information about RIP on the Cisco IOS XR software and complete descriptions of the RIP commands listed in this module, see the Related Documents, on page 379 section of this module.
  • Page 388: Information About Implementing Rip

    Only RIP Version 2 (RIP v2), as specified in RFC 2453, is supported on Cisco IOS XR software and, by default, the software only sends and receives RIP v2 packets. However, you can configure the software to send, or receive, or both, only Version 1 packets or only Version 2 packets or both version type packets per interface.
  • Page 389: Split Horizon For Rip

    Some common reasons are: • To advertise routes from other protocols into RIP, such as static, connected, OSPF, and BGP. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 390: Default Administrative Distances For Rip

    • To communicate among a mixed-router vendor environment. Basically, you might use a protocol specific to Cisco in one portion of your network and use RIP to communicate with devices other than Cisco devices. Further, route redistribution gives a company the ability to run different routing protocols in work groups or areas in which each is particularly effective.
  • Page 391: Routing Policy Options For Rip

    Authentication using keychain in Cisco IOS XR Routing Information Protocol (RIP) provides mechanism to authenticate all RIP protocol traffic on RIP interface, based keychain authentication. This mechanism uses the Cisco IOS XR security keychain infrastructure to store and retrieve secret keys and use it to authenticate in-bound and out-going traffic on per-interface basis.
  • Page 392: In-Bound Rip Traffic On An Interface

    (for authentication) with its peers. The keychain provides a secure mechanism to handle the keys and rollover based on the lifetime. The Cisco IOS XR keychain infrastructure takes care of the hit-less rollover of the secret keys in the keychain.
  • Page 393: How To Implement Rip

    6. receive version { 1 | 2 | 1 2 } 7. send version { 1 | 2 | 1 2 } 8. commit DETAILED STEPS Command or Action Purpose Step 1 configure Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 394: Customizing Rip

    Step 8 commit Customizing RIP This task describes how to customize RIP for network timing and the acceptance of route entries. SUMMARY STEPS configure router rip auto-summary Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 395 Step 6 (Optional) Configures NSF on RIP routes after a RIP process shutdown or restart. Example: RP/0/RP0/CPU0:router(config-rip)# nsf Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 396: Control Routing Information

    • To preserve bandwidth—You can ensure maximum bandwidth availability for data traffic by reducing unnecessary routing update traffic. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 397 Example: RP/0/ /CPU0:router(config-rip-if)# exit Step 7 interface type interface-path-id (Optional) Defines the interfaces on which the RIP routing protocol runs. Example: RP/0/RP0/CPU0:router(config-rip)# interface GigabitEthernet 0/2/0/0 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 398: Creating A Route Policy For Rip

    Defines a route policy and enters route-policy configuration mode. Example: RP/0/RP0/CPU0:router(config)# route-policy IN-IPv4 Step 3 set rip-metric number (Optional) Sets the RIP metric attribute. Example: Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 399: Configuration Examples For Implementing Rip

    The following example shows two Gigabit Ethernet interfaces configured with RIP. interface GigabitEthernet0/6/0/0 ipv4 address 172.16.0.1 255.255.255.0 interface GigabitEthernet0/6/0/2 ipv4 address 172.16.2.12 255.255.255.0 router rip interface GigabitEthernet0/6/0/0 interface GigabitEthernet0/6/0/2 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 400: Configuring Route Policies For Rip: Example

    In other words, no updates are sent out of an interface except to neighbors configured explicitly. router rip interface GigabitEthernet0/6/0/0 passive-interface interface GigabitEthernet0/6/0/2 neighbor 172.17.0.1 neighbor 172.18.0.5 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 401: Controlling Rip Routes: Example

    Routers Standards Standards Title No new or modified standards are supported by this feature, and support for existing standards has not — been modified by this feature. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 402 Additional References MIBs MIBs MIBs Link — To locate and download MIBs using Cisco IOS XR software, use the Cisco MIB Locator found at the following URL and choose a platform under the Cisco Access Products menu: http://cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml RFCs RFCs...
  • Page 403: Prerequisites For Implementing Routing Policy

    Note For more information about routing policy on the Cisco IOS XR software and complete descriptions of the routing policy commands listed in this module, see the Related Documents, on page 464 section of this module.
  • Page 404: Restrictions For Implementing Routing Policy

    Open Shortest Path First (OSPF) must be configured in your network. Restrictions for Implementing Routing Policy These restrictions apply when working with Routing Policy Language implementation on Cisco IOS XR software: • An individual policy definition of up to 1000 statements are supported. The total number of statements within a policy can be extended to 4000 statements using hierarchical policy constructs.
  • Page 405: Routing Policy Language Structure

    The elements of the set are separated by commas. Null (empty) sets are allowed. In the following example: prefix-set backup-routes # currently no backup routes are defined end-set Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 406 In the following sections, examples of both the named set version and the inline form are provided where appropriate. as-path-set An AS path set comprises operations for matching an AS path attribute. The only matching operation is a regular expression match. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 407 0 to 65535, separated by a colon. Single 32-bit community values are not allowed. The following is the named set form: Named Set Form community-set cset1 12:34, 12:56, 12:78, internet end-set Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 408 A cost set is an extcommunity set used to store cost EIGRP Cost Community type extended community type communities. extcommunity-set cost a_cost_set IGP:1:10 end-set These options are supported under extended community set Cost: RP/0/RP0/CPU0:router(config)#extcommunity-set cost cost_set RP/0/RP0/CPU0:router(config-ext)#? #-remark Remark beginning with '#' Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 409 Discard RPL definition and return to top level config dfa-regex DFA style regular expression end-set End of set definition exit Exit from this submode ios-regex Traditional IOS style regular expression Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 410 Discard RPL definition and return to top level config dfa-regex DFA style regular expression end-set End of set definition exit Exit from this submode ios-regex Traditional IOS style regular expression show Show partial RPL configuration Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 411 The prefix-set itself is a comma-separated list of prefix match specifications. The following are examples: prefix-set legal-ipv4-prefix-examples 10.0.1.1, 10.0.2.0/24, 10.0.3.0/24 ge 28, 10.0.4.0/24 le 28, 10.0.5.0/24 ge 26 le 30, 10.0.6.0/24 eq 28, Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 412 • <A.B.C.D>/[<G>..<len>] (if <len> is greater than <G> ) • <A.B.C.D>/<len> ge <G> • <A.B.C.D>/[<len>..<G>] (if <len> is lesser than <G> ) • <A.B.C.D>/[<G>..<len>] (if <len> is greater than <G> ) Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 413: Routing Policy Language Components

    The process can be thought of as receiving a route from one of the policy clients and then executing the actual policy against the specific route data. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 414: Routing Policy Language Usage

    '_22_', ios-regex '_33_' end-set route-policy ignore_path_as if as-path in ignore_path then drop else pass endif end-policy router bgp 2 neighbor 10.0.1.2 address-family ipv4 unicast policy ignore_path_as in Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 415 # These are the networks defined as private in RFC1918 (including # all subnets thereof) 10.0.0.0/8 ge 8, 172.16.0.0/12 ge 12, 192.168.0.0/16 ge 16 end-set Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 416: Routing Policy Configuration Basics

    ‘1234.5’ then apply drop-everything else pass endif end-policy Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 417: Parameterization

    ‘10.5’ then apply param-example(10.5) else pass endif end-policy route-policy origin-20 if as-path originates-from ‘20.5’ then apply param-example(20.5) else pass endif end-policy Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 418: Parameterization At Attach Points

    RPL supports the definition of systemwide global parameters that can be used inside policy definition. Global parameters can be configured as follows: Policy-global glbpathtype ‘ebgp’ glbtag ‘100’ end-global Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 419: Semantics Of Policy Application

    Because the MED attribute in BGP is one unique value, the last value to which it gets set to wins. Therefore, the following policy results in a route with a MED value of 12: set med 9 set med 10 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 420: When Attributes Are Modified

    Take the following example: ifmed eq 12 then set med 42 if med eq 42 then drop Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 421: Default Drop Disposition

    100 end-policy route-policy two set med 200 end-policy route-policy three apply two set community (2:666) additive end-policy route-policy four apply one apply three pass end-policy Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 422: Policy Verification

    A condition exists that is referred to as a null policy in which the policy bar exists but has no statements, actions, or dispositions in it. In other words, the policy bar does exist as follows: route-policy bar end-policy Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 423: Policy Statements

    The syntax for a remark is text that has each line prepended with a pound sign (#): # This is a simple one-line remark. # This # is a remark Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 424: Disposition

    A, then execution continues from policy A to policy B and back to policy A, provided the prefix is not dropped by policy B. route-policy A if as-path neighbor-is '123' then apply B policy statement N end-policy Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 425 Other routes are then considered to see if they were advertised by autonomous system 123. If they were advertised, they are passed; otherwise, they are implicitly dropped at the end of all policy processing. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 426: Action

    The policy language also provides syntax, using the elseif keyword, to string together a sequence of tests: if med eq 150 then set local-preference 10 elseif med eq 200 then set local-preference 60 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 427: Boolean Conditions

    A simple condition may also be negated using the not operator: not next-hop in (10.0.2.2) Any Boolean condition enclosed in parentheses is itself a Boolean condition: (destination in prefix-list-1) Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 428: Apply

    When combined with the ability to parameterize common blocks of policy, the apply command becomes a powerful tool for reducing repetitive configuration. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 429: Attach Points

    The following sections describe the protocol attach points, including information on the attributes (commands) and operations that are valid for each attach point. See Routing Command Reference for Cisco NCS 6000 Series Routers for more information on the attributes and operations.
  • Page 430 (10.0.0.0/8 ge 8 le 32) then pass endif end-policy router bgp 2 neighbor 10.0.0.1 remote-as 3 address-family ipv4 unicast default-originate route-policy sample-originate Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 431 200 and their community tag set to 2:200. route-policy sample_import if community matches-any (3:100) then set local-preference 100 set community (2:666) else set local-preference 200 set community (2:200) endif end-policy router bgp 2 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 432 10 then set ospf cost 100 elseif tag eq 20 then set ospf cost 200 else drop endif end-policy router ospf 1 redistribute isis instance_10 policy OSPF-redist Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 433 *> 10.255.64.0/24 10.0.101.2 1000 0 100 e ..show bgp policy route-policy test2 10.0.0.0/8 is advertised to 10.0.101.2 Path info: neighbor:10.0.1.2 neighbor router id:10.0.1.2 valid external best Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 434 Implementing Routing Policy on Cisco IOS XR Software module in the Routing Configuration Guide for Cisco NCS 6000 Series Routers for details on table policy use. See the Cisco Express Forwarding Commands on Cisco IOS XR Software module in the IP Addresses and Services Command Reference for Cisco NCS 6000 Series Routers for details on BGP policy accounting.
  • Page 435 Typically, an RR has to retain all IPv4 VPN routes to peer with its PE routers. These PEs might require routers tagged with different route target IPv4 VPN routes resulting in non-scalable RRs. You can achieve scalability Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 436 (172.16.3.0/24, 172.16.7.0/24, 172.16.13.0/24) then pass endif router bgp 2 neighbor 1.1.1.1 remote-as 3 address-family ipv4 unicast Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 437 If it is a match, then the clear command clears the associated flap statistics. as-path-set my-as-set ios-regex '_12$', ios-regex '_13$' end-set route-policy policy_a if as-path in my-as-set then pass else drop endif end-policy clear bgp ipv4 unicast flap-statistics route-policy policy_a Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 438 This table summarizes the BGP attributes and operators per attach points. Table 7: BGP Attributes and Operators Attach Point Attribute Match additional-paths path-selection — community matches-every — is-empty matches-any Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 439 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 440 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 441 To set values that control the dampening (see Dampening, on page 408) destination local-preference is, eg, ge, le is, eg, ge, le next-hop origin source debug destination Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 442 `peeras' set additive extcommunity cost set additive extcommunity rt extcommunity soo local-preference set + set -assign igp next-hop set-to-peer-address set-to-self origin rib-has-route Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 443 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 444 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 445 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 446 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 447 Implementing Routing Policy BGP Attributes and Operators Attach Point Attribute Match set+ set- next-hop set self origin path-type source unsuppress-route unsuppress-route weight neighbor-orf orf-prefix Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 448 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 449 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 450 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 451 The following example shows how to generate a default route if any of the routes that match 10.0.0.0/8 ge 8 le 25 are present in the RIB: route-policy ospf-originate if rib-has-route in (10.0.0.0/8 ge 8 le 25) then pass endif Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 452: Ospf Policy Attach Points

    BGP multi-path rules and all backup paths. OSPF Policy Attach Points This section describes each of the OSPF policy attach points and provides a summary of the OSPF attributes and operators. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 453 The area-in attach point within OSPF allows you to filter inbound OSPF type-3 summary link-state advertisements (LSAs). The attach point provides prefix-based matching and hence increased control for filtering type-3 summary LSAs. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 454 1 area 1 route-policy OSPF-area-out out SPF Prefix-priority The spf-prefix-priority attach point within OSPF allows you to define the route policy to apply to OSPFv2 prefix prioritization. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 455: Ospfv3 Policy Attach Points

    RIB pass the policy, then the default route is inserted into the link-state database. The following example shows how to generate a default route if any of the routes that match 2001::/96 are present in the RIB: Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 456 OSPFv3 Attributes and Operators This table summarizes the OSPFv3 attributes and operators per attach points. Table 9: OSPFv3 Attributes and Operators Attach Point Attribute Match default-information ospf-metric originate metric-type rib-has-route Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 457: Is-Is Policy Attach Points

    10 then set isis-metric 100 elseif tag eq 20 then set isis-metric 200 else drop endif end-policy router isis instance_10 address-family ipv4 unicast redistribute isis 1 policy ISIS-redist Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 458 (10.0.0.0/8 ge 8 le 25) then pass endif end-policy router isis instance_10 address-family ipv4 unicast propagate level 1 into level 2 policy isis-propagate Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 459: Eigrp Policy Attach Points

    The following example shows a policy that sets the conditional default flag for all routes that match 10.0.0.0/8 and longer prefixes up to 10.0.0.0/25: route-policy eigrp-cd-policy-in if destination in (10.0.0.0/8 ge 8 le 25) then Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 460 The following example shows the command under EIGRP: router eigrp 100 address-family ipv4 route-policy global-policy-out out Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 461 (100.1.1.0/24) then set eigrp-metric 5000000 4000 150 30 2000 else set tag 200 endif end-policy router eigrp 100 address-family ipv4 redistribute rip route-policy redistribute-rip Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 462 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 463: Rip Policy Attach Points

    RIP database. The following example shows how to inject OSPF routes into RIP: route-policy redist-ospf set rip-metric 5 end-policy router rip redistribute ospf 1 route-policy redist-ospf Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 464: Attached Policy Modification

    Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 465: Nonattached Policy Modification

    Editing Routing Policy Configuration Elements Using the Nano Editor To edit the contents of a routing policy using the Nano editor, use the following CLI command in XR EXEC mode: edit route-policy name nano Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 466 If there are parse errors, you are asked whether editing should continue: RP/0/RP0/CPU0:router#edit route-policy policy_B == MicroEMACS 3.8b () == rpl_edit.141738 route-policy policy_B set metric-type type_1 if destination in (2001::/8) then drop endif Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 467: Hierarchical Policy Conditions

    Boolean operators along with various other matching statements. Apply Condition Policies Apply Condition policies, which Cisco IOS XR RPL supports, allow usage of a route-policy within an "if" statement of another route-policy. Consider route-policy configurations Parent, Child A, and Child B:...
  • Page 468 Route-policy policy_name If apply policyA and apply policyB then Set med 100 Else if not apply policyD then Set med 200 Else Set med 300 Endif End-policy Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 469 Else FALSE-PATH : if hierarchical_policy_condition returns FALSE then this path will be executed. End-if CONTINUE-PATH : Irrespective of the TRUE/FALSE this path will be executed. End-policy Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 470: Nested Wildcard Apply Policy

    (1:1) additive endif end-policy route-policy service_policy_customer_b if destination in prfx_set_customer_b then set extcommunity rt (1:1) additive endif end-policy Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 471: Wildcards For Route Policy Sets

    This completes the configuration of routing policy with wildcards for prefix sets. For detailed information on prefix sets, see prefix-set, on page 389. Use Wildcards for AS-Path Sets Use the following example to configure a routing policy with wildcards for AS-path sets. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 472 This route policy configuration accepts routes with community set values as mentioned in the two community sets, and drops all other non-matching routes. 3. Commit your configuration. RP/0/RP0/CPU0:router(config)# commit Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 473 2. Configure a route policy with wildcards to refer to the route distinguisher set. RP/0/RP0/CPU0:router(config)# route-policy use_rd_set RP/0/RP0/CPU0:router(config-rpl)# if rd in rd-set* then set local-preference 100 RP/0/RP0/CPU0:router(config-rpl-if)# elseif rd in(10.0.0.2:888, 10.0.0.2:999)then set local-preference 300 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 474 RP/0/RP0/CPU0:router(config-ospf-area)# end-set 2. Configure a route policy with wildcards to refer to the OSPF area set. RP/0/RP0/CPU0:router(config)# route-policy use_ospf_area_set RP/0/RP0/CPU0:router(config-rpl)# if ospf-area in ospf-area-set* then set ospf-metric Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 475: Vrf Import Policy Enhancement

    Use the source rt import-policy command under VRF sub-mode of VPN address-family configuration mode to enable this feature. How to Implement Routing Policy This section contains the following procedures: Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 476: Defining A Route Policy

    A routing policy must be preconfigured and well defined prior to it being applied at an attach point. If a policy is not predefined, an error message is generated stating that the policy is not defined. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 477: Modifying A Routing Policy Using A Text Editor

    This task explains how to modify an existing routing policy using a text editor. See Editing Routing Policy Configuration Elements, on page 443 for information on text editors. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 478 • To display the contents of a named AS path set, community set, or extended community set, replace the prefix-set keyword with as-path-set , RP/0/RP0/CPU0:router# show rpl prefix-set prefixset1 community-set , or extcommunity-set , respectively. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 479: Configuration Examples For Implementing Routing Policy

    For routes whose community lists do not include any of the values in the range from 101:202 to 106:202, the policy adds the community 2:999 to the list in the route. prefix-set too-specific 0.0.0.0/0 ge 25 le 32 end-set prefix-set rfc1918 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 480: Modular Inbound Policy: Example

    ([100..120]:135) then apply set-lpref-prepend (100,100,2) set community (2:1234) additive else set local-preference 110 endif if community matches-any ([100..666]:[100..999]) then Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 481: Use Wildcards For Routing Policy Sets

    2. Configure a route policy with wildcards to refer to the prefix sets. RP/0/RP0/CPU0:router(config)# route-policy WILDCARD_PREFIX_SET RP/0/RP0/CPU0:router(config-rpl)# if destination in prefix-set* then pass else drop endif RP/0/RP0/CPU0:router(config-rpl)# end-policy Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 482 RP/0/RP0/CPU0:router(config-comm)# 12:72 RP/0/RP0/CPU0:router(config-comm)# end-set RP/0/RP0/CPU0:router(config)# community-set CSET2 RP/0/RP0/CPU0:router(config-comm)# 24:12, RP/0/RP0/CPU0:router(config-comm)# 24:42, RP/0/RP0/CPU0:router(config-comm)# 24:64 RP/0/RP0/CPU0:router(config-comm)# end-set 2. Configure a route policy with wildcards to refer to the community sets. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 483 Use the following example to configure a routing policy with wildcards for route distinguisher sets. 1. Configure the route distinguisher sets in the global configuration mode. RP/0/RP0/CPU0:router(config)# rd-set rd_set_demo RP/0/RP0/CPU0:router(config-rd)# 10.0.0.1/8:77, RP/0/RP0/CPU0:router(config-rd)# 10.0.0.2:888, RP/0/RP0/CPU0:router(config-rd)# 65000:777 RP/0/RP0/CPU0:router(config-rd)# end-set Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 484 Use the following example to configure a routing policy with wildcards for OSPF area sets. 1. Configure the OSPF area set in the global configuration mode. RP/0/RP0/CPU0:router(config)# ospf-area-set ospf_area_set_demo1 RP/0/RP0/CPU0:router(config-ospf-area)# 10.0.0.1, RP/0/RP0/CPU0:router(config-ospf-area)# 3553 Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 485: Translating Cisco Ios Route Maps To Cisco Ios Xr Routing Policy Language: Example

    Translating Cisco IOS Route Maps to Cisco IOS XR Routing Policy Language: Example RPL performs the same functions as route-maps. See Converting Cisco IOS Configurations to Cisco IOS XR Configurations. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 486: Vrf Import Policy Configuration: Example

    MIBs MI B s MIBs Link — To locate and download MIBs using Cisco IOS XR software, use the Cisco MIB Locator found at the following URL and choose a platform under the Cisco Access Products menu: http://cisco.com/public/ sw-center/netmgmt/cmtk/mibs.shtml RFCs...
  • Page 487 Registered Cisco.com users can log in from this page to access even more content. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 488 Implementing Routing Policy Additional References Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 489: Prerequisites For Implementing Static Routes

    Static routes are user-defined routes that cause packets moving between a source and a destination to take a specified path. Static routes can be important if the Cisco IOS XR software cannot build a route to a particular destination. They are useful for specifying a gateway of last resort to which all unroutable packets are sent.
  • Page 490: Information About Implementing Static Routes

    In directly attached static routes, only the output interface is specified. The destination is assumed to be directly attached to this interface, so the packet destination is used as the next hop address. The following example Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 491: Recursive Static Routes

    The next hop must be directly attached to the specified output interface. The following example shows a definition of a fully specified static route: Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 492: Floating Static Routes

    Configuring a Fixed Default Route: Example A default static route is often used in simple router topologies. In the following example, a route is configured with an administrative distance of 110. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 493: Configuring A Floating Static Route: Example

    • Implementing OSPFv3 on Cisco IOS XR Software in Routing Configuration Guide for Cisco NCS 6000 Series Routers • RIB Commands on Cisco IOS XR Software in Routing Command Reference for Cisco NCS 6000 Series Routers • Implementing RIP on Cisco IOS XR Software in Routing Configuration Guide for Cisco NCS 6000 Series...
  • Page 494 MIBs MIBs MIBs Link — To locate and download MIBs using Cisco IOS XR software, use the Cisco MIB Locator found at the following URL and choose a platform under the Cisco Access Products menu: http://cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml RFCs RFCs...
  • Page 495: Route Convergence Monitoring And Diagnostics

    • Add/delete of specific external or inter-area/level prefixes. • IGP flooding propagation delays for LSA/LSP changes. RCMD runs in two modes: • Monitoring—detecting events and measuring convergence. Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 496: Configuring Route Convergence Monitoring And Diagnostics

    Configures to collect diagnostics on specified node. Example: RP/0/RP0/CPU0:router(config-rcmd)#collect-diagnostics 0/3/CPU0 Step 4 event-buffer-size number Sets event buffer size 9as number of events) for storing event traces . Example: RP/0/RP0/CPU0:router(config-rcmd)#event-buffer-size Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 497 RP/0/RP0/CPU0:router(config-rcmd-proto-prio)#disable Step 11 leaf-network number Enables leaf network monitoring. Specify a maximum number of leaf networks to be monitored. Range for Example: maximum number is 10-100. RP/0/RP0/CPU0:router(config-rcmd-proto-prio)#leaf-network Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...
  • Page 498 Set a directory-path-name. Example: /disk0:/rcmd/ or Example: <tftp-location>/rcmd/ RP/0/RP0/CPU0:router(config-rcmd-store)#reports /disck0:/rcmd Step 17 reports-size Specify a maximum size for the reports directory. Set the size in %. Range is 5%-80%. Example: RP/0/RP0/CPU0:router(config-rcmd-store)#reports-size Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x...

Table of Contents