Cisco IOS XR Routing Configuration Guide Cisco IOS XR Software Release 3.4 Americas Headquarters Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 USA http://www.cisco.
THE SPECIFICATIONS AND INFORMATION REGARDING THE PRODUCTS IN THIS MANUAL ARE SUBJECT TO CHANGE WITHOUT NOTICE. ALL STATEMENTS, INFORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED TO BE ACCURATE BUT ARE PRESENTED WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. USERS MUST TAKE FULL RESPONSIBILITY FOR THEIR APPLICATION OF ANY PRODUCTS.
CONTENTS Preface RC-xiii Changes to This Document RC-xiii Obtaining Documentation and Submitting a Service Request Implementing BGP on Cisco IOS XR Software Contents RC-xiii RC-1 RC-2 Prerequisites for Implementing BGP on Cisco IOS XR Software RC-2 Information About Implementing BGP on Cisco IOS XR Software RC-2 BGP Functional Overview RC-3 BGP Router Identifier RC-3 BGP Default Limits RC-4 BGP Next Hop Tracking RC-5 Autonomous System Number Formats in BGP RC-7 BGP Configuration RC-7 No Default A
Contents Resetting an eBGP Session Immediately Upon Link Failure RC-49 Logging Neighbor Changes RC-49 Adjusting BGP Timers RC-50 Changing the BGP Default Local Preference Value RC-51 Configuring the MED Metric for BGP RC-53 Configuring BGP Weights RC-54 Tuning the BGP Best-Path Calculation RC-56 Indicating BGP Back-door Routes RC-58 Configuring Aggregate Addresses RC-60 Redistributing iBGP Routes into IGP RC-61 Redistributing Prefixes into Multiprotocol BGP RC-63 Configuring BGP Route Dampening RC-66 Apply
Contents BGP MDT Address Family Configuration: Example Where to Go Next RC-132 RC-132 Additional References RC-133 Related Documents RC-133 Standards RC-133 MIBs RC-134 RFCs RC-134 Technical Assistance RC-134 Implementing EIGRP on Cisco IOS XR Software Contents RC-135 RC-135 Prerequisites for Implementing EIGRP on Cisco IOS XR Software Restrictions for Implementing EIGRP on Cisco IOS XR Software RC-136 RC-136 Information About Implementing EIGRP on Cisco IOS XR Software RC-136 EIGRP Functional Over
Contents Configuration Examples for Implementing EIGRP on Cisco IOS XR Software Configuring a Basic EIGRP Configuration: Example RC-166 Configuring an EIGRP Stub Operation: Example RC-167 Configuring an EIGRP PE-CE Configuration with Prefix-Limits: Example RC-166 RC-167 Additional References RC-168 Related Documents RC-168 Standards RC-168 MIBs RC-168 RFCs RC-168 Technical Assistance RC-169 Implementing OSPF on Cisco IOS XR Software Contents RC-171 RC-172 Prerequisites for Implementing OSPF on Cisco
Contents GTSM TTL Security Mechanism for OSPF RC-193 Path Computation Element for OSPFv2 RC-193 How to Implement OSPF on Cisco IOS XR Software RC-194 Enabling OSPF RC-194 Configuring Stub and Not-So-Stubby Area Types RC-197 Configuring Neighbors for Nonbroadcast Networks RC-199 Configuring Authentication at Different Hierarchical Levels for OSPF Version 2 RC-204 Controlling the Frequency That the Same LSA Is Originated or Accepted for OSPF RC-207 Creating a Virtual Link with MD5 Authentication to Area 0 fo
Contents Related Documents RC-262 Standards RC-262 MIBs RC-263 RFCs RC-263 Technical Assistance RC-264 Implementing IS-IS on Cisco IOS XR Software Contents RC-265 RC-266 Prerequisites for Implementing IS-IS on Cisco IOS XR Software Restrictions for Implementing IS-IS on Cisco IOS XR Software RC-266 RC-266 Information About Implementing IS-IS on Cisco IOS XR Software RC-266 IS-IS Functional Overview RC-267 Key Features Supported in the Cisco IOS XR IS-IS Implementation RC-267 IS-IS Configuration Groupi
Contents Configuring Single Topology for IS-IS RC-280 Configuring Multitopology for IS-IS RC-284 Controlling LSP Flooding for IS-IS RC-285 Configuring Nonstop Forwarding for IS-IS RC-289 Configuring Authentication for IS-IS RC-291 Configuring Keychains for IS-IS RC-293 Configuring MPLS Traffic Engineering for IS-IS RC-295 Tuning Adjacencies for IS-IS RC-298 Setting SPF Interval for a Single-Topology IPv4 and IPv6 Configuration Customizing Routes for IS-IS RC-303 Configuring MPLS LDP IS-IS Synchronization R
Contents RIB Quarantining RC-323 How to Deploy and Monitor RIB RC-324 Verifying RIB Configuration Using the Routing Table RC-324 Verifying Networking and Routing Problems RC-324 Disabling RIB Next-hop Dampening RC-326 Configuration Examples for RIB Monitoring RC-327 Output of show route Command: Example RC-328 Output of show route backup Command: Example RC-328 Output of show route best-local Command: Example RC-328 Output of show route connected Command: Example RC-329 Output of show route local Command
Contents Adjusting RIP Timers for each VRF Instance: Example RC-348 Configuring Redistribution for RIP: Example RC-349 Configuring Route Policies for RIP: Example RC-349 Configuring Passive Interfaces and Explicit Neighbors for RIP: Example Controlling RIP Routes: Example RC-350 RC-350 Additional References RC-350 Related Documents RC-351 Standards RC-351 MIBs RC-351 RFCs RC-351 Technical Assistance RC-352 Implementing Routing Policy on Cisco IOS XR Software Contents RC-353 RC-354 Prerequisites for Im
Contents RFCs RC-417 Technical Assistance RC-417 Implementing Static Routes on Cisco IOS XR Software Contents RC-419 RC-420 Prerequisites for Implementing Static Routes on Cisco IOS XR Software Information About Implementing Static Routes on Cisco IOS XR Software Static Route Functional Overview RC-420 Default Administrative Distance RC-421 Directly Connected Routes RC-421 Recursive Static Routes RC-422 Fully Specified Static Routes RC-422 Floating Static Routes RC-423 Default VRF RC-423 IPv4 and IPv6
Preface The Cisco IOS XR Routing Configuration Guide provides information and procedures related to routing on Cisco IOS XR software. The preface contains the following sections: • Changes to This Document • Obtaining Documentation and Submitting a Service Request Changes to This Document Table 1 lists the technical changes made to this document since it was first printed. Table 1 Changes to This Document Revision Date Change Summary OL-14356-01 December 2007 Initial release of this document.
Preface Cisco IOS XR Routing Configuration Guide RC-xiv OL-14356-01
Implementing BGP on Cisco IOS XR Software Border Gateway Protocol (BGP) is an Exterior Gateway Protocol (EGP) that allows you to create loop-free interdomain routing between autonomous systems. An autonomous system is a set of routers under a single technical administration. Routers in an autonomous system can use multiple Interior Gateway Protocols (IGP) to exchange routing information inside the autonomous system and an EGP to route packets outside the autonomous system.
Implementing BGP on Cisco IOS XR Software Contents Release 3.5.0 Release 3.6.0 The following features were supported: • IPv6 Provider Edge and IPv6 VPN Provider Edge over Multiprotocol Label Switching • Neighbor-specific VRF IPv6 address family configurations • Address family group-specific VPNv6 configurations • VPN4/VPNv6 over IP Core using L2TPv3 Tunnels • Multicast Distribution Tree (MDT) Subaddress Family Identifier Information (SAFI) support for Multicast VPN (MVPN) No modification.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software • Administrative Distance, page RC-30 • Administrative Distance, page RC-30 • Multiprotocol BGP, page RC-32 • Route Dampening, page RC-33 • BGP Routing Domain Confederation, page RC-34 • BGP Route Reflectors, page RC-34 • Default Address Family for show Commands, page RC-37 • Distributed BGP, page RC-37 • MPLS VPN Carrier Supporting Carrier, page RC-38 • BGP Keychains, page RC-39 • IPv
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software • By means of the address configured using the bgp router-id command in router configuration mode. • By using the highest IPv4 address on a loopback interface in the system if the router is booted with saved loopback address configuration. • By using the primary IPv4 address of the first loopback address that gets configured if there are not any in the saved configuration.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software the neighbor and peering with the neighbor is terminated immediately after the configuration if the configured maximum number of prefixes is fewer than the number of prefixes that have already been received from the neighbor for the address family. BGP Next Hop Tracking BGP receives notifications from the Routing Information Base (RIB) when next-hop information changes (event-driven notifications).
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software This route policy filtering is possible because RIB identifies the source protocol of route that resolved a next hop as well as the mask length associated with the route. The nexthop route-policy command is used to specify the route-policy.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software The clear bgp nexthop registration command performs an asynchronous registration of the next hop with the RIB. See the BGP Commands on Cisco IOS XR Software module of Cisco IOS XR Routing Commands for information on the next-hop show and clear commands. The debug bgp nexthop command displays information on next-hop processing.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software Router Configuration Mode The following example shows how to enter router configuration mode: RP/0/RP0/CPU0:router# configuration RP/0/RP0/CPU0:router(config)# router bgp 140 RP/0/RP0/CPU0:router(config-bgp)# Router Address Family Configuration Mode The following example shows how to enter router address family configuration mode: RP/0/RP0/CPU0:router(config)# router bgp 112 RP/0/RP0/CPU0:router(config-bg
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software VRF Neighbor Address Family Configuration Mode The following example shows how to enter VRF neighbor address family configuration mode: RP/0/RP0/CPU0:router(config)# router bgp 112 RP/0/RP0/CPU0:router(config-bgp)# vrf vrf_A RP/0/RP0/CPU0:router(config-bgp-vrf)# neighbor 11.0.1.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software RP/0/RP0/CPU0:router(config-bgp)# vrf vrf_A RP/0/RP0/CPU0:router(config-bgp-vrf)# neighbor 11.0.1.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software Configuration grouping has the following effects in Cisco IOS XR software: • Commands entered at the session group level define address family-independent commands (the same commands as in the neighbor submode).
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software For Address Family: IPv4 Unicast BGP neighbor version 0 Update group: 0.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software 3. Otherwise, if the neighbor uses a neighbor group and does not use a session group or address family group, the configuration value can be obtained from the neighbor group either directly or through inheritance.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software RP/0/RP0/CPU0:router(config-bgp-nbr)# use session-group ADV RP/0/RP0/CPU0:router(config-bgp-nbr)# use neighbor-group TIMER The following output from the show bgp neighbors command shows that the advertisement interval used is 15 seconds: RP/0/RP0/CPU0:router# show bgp neighbors 192.168.2.2 BGP neighbor is 192.168.2.2, remote AS 1, local AS 140, external link Remote router ID 0.0.0.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software Route refresh request: received 0, sent 0 0 accepted prefixes Prefix advertised 0, suppressed 0, withdrawn 0, maximum limit 524288 Threshold for warning message 75% Connections established 0; dropped 0 Last reset 00:00:25, due to BGP neighbor initialized External BGP neighbor not directly connected.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software The following example displays sample output from the show bgp neighbors command using the inheritance keyword. The example shows that the neighbor inherits session parameters from neighbor group GROUP_1, which in turn inherits from session group GROUP_2.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software The following example displays sample output from the show bgp af-group command using the configuration keyword. This example shows from where each configuration item was inherited. The default-originate command was configured directly on this address family group (indicated by [ ]).
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software The following is sample output from the show bgp session-group command with the configuration keyword in EXEC mode: RP/0/RP0/CPU0:router# show bgp session-group GROUP_1 configuration session-group GROUP_1 ebgp-multihop 2 [s:GROUP_2] update-source Loopback0 [] dmz-link-bandwidth [s:GROUP_2 s:GROUP_3] The following is sample output from the show bgp session-group command with the inheritance keyword showing
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software RP/0/RP0/CPU0:router(config-bgp-nbrgrp-af)# use af-group GROUP_2 RP/0/RP0/CPU0:router(config-bgp-nbrgrp-af)# weight 100 The following is sample output from the show bgp neighbor-group command with the configuration keyword. The configuration setting source is shown to the right of each command.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software Routing Policy Enforcement External BGP (eBGP) neighbors must have an inbound and outbound policy configured. If no policy is configured, no routes are accepted from the neighbor, nor are any routes advertised to it. This added security measure ensures that routes cannot accidentally be accepted or advertised in the case of a configuration omission error.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software BGP scan interval 60 secs BGP is operating in STANDALONE mode. Process Speaker RecvTblVer 1 bRIB/RIB 1 SendTblVer 1 Some configured eBGP neighbors do not have both inbound and outbound policies configured for IPv4 Multicast address family. These neighbors will default to sending and/or receiving no routes and are marked with ’!’ in the output below.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software BGP policy accounting uses traffic indices that are set on BGP routes to track various counters. See Implementing Routing Policy on Cisco IOS XR Software for details on table policy use. See the Cisco Express Forwarding Commands on Cisco IOS XR Software module in Cisco IOS XR IP Addresses and Services Command Reference for details on BGP policy accounting.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software the path. The path with the lowest cost community number is preferred. Paths that are not specifically configured with the cost community number are assigned a default cost community number of 2147483647 (the midpoint between 0 and 4294967295) and evaluated by the best-path selection process accordingly.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software confederation. For example, a lower cost community value can be applied to a specific exit path in a network with multiple equal cost exit points, and the specific exit path is preferred by the BGP best-path selection process. See the scenario described in the “Influencing Route Preference in a Multiexit IGP Network” section on page RC-25. Note The cost community comparison in BGP is enabled by default.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software • 192.168.0.1 – POI=IGP – cost community ID=1 – cost number=200 The single advertised path includes the aggregate cost communities as follows: {POI=IGP, ID=1, Cost=2147483647} {POI-IGP, ID=2, Cost=2147483647} Influencing Route Preference in a Multiexit IGP Network Figure 1 shows an IGP network with two autonomous system boundary routers (ASBRs) on the edge.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software The “prebest path” point of insertion (POI) in the BGP cost community feature supports mixed EIGRP VPN network topologies that contain VPN and back-door links. This POI is applied automatically to EIGRP routes that are redistributed into BGP. The “prebest path” POI carries the EIGRP route type and metric.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software Adding Routes to the Routing Information Base If a nonsourced path becomes the best path after the best-path calculation, BGP adds the route to the Routing Information Base (RIB) and passes the cost communities along with the other IGP extended communities.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software Note 3. If the paths have unequal weights, the path with the highest weight is chosen. Note: the weight is entirely local to the router, and can be set with the weight command or using a routing policy. 4. If the paths have unequal local preferences, the path with the higher local preference is chosen.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software 9. If one path is received from an external peer and the other is received from an internal (or confederation) peer, the path from the external peer is chosen. (See Section 9.1.2.2d of draft-ietf-idr-bgp4-24.txt.) 10. If the paths have different IGP metrics to their next hops, the path with the lower IGP metric is chosen. (See Section 9.1.2.2e of draft-ietf-idr-bgp4-24.txt.) 11.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software Note This suppression behavior does not comply with the IETF Networking Working Group draft-ietf-idr-bgp4-24.txt document, but is specified in the IETF Networking Working Group draft-ietf-idr-avoid-transition-00.txt document. The suppression behavior can be turned off by configuring the bgp bestpath compare-routerid command.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software Note Distance does not influence the BGP path selection algorithm, but it does influence whether BGP-learned routes are installed in the IP routing table. In most cases, when a route is learned through eBGP, it is installed in the IP routing table because of its distance (20). Sometimes, however, two ASs have an IGP-learned back-door route and an eBGP-learned route.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software Multiprotocol BGP Multiprotocol BGP is an enhanced BGP that carries routing information for multiple network layer protocols and IP multicast routes. BGP carries two sets of routes, one set for unicast routing and one set for multicast routing. The routes associated with multicast routing are used by the Protocol Independent Multicast (PIM) feature to build data distribution trees.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software In Figure 5, only unicast traffic can travel from Router A to the unicast routers to Router B and back. Multicast traffic could not flow on that path, so another routing table is required. Multicast traffic uses the path from Router A to the multicast routers to Router B and back.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software to autonomous system 2, which sends it to autonomous system 3. If the route to network A repeatedly becomes unavailable, then available, many withdrawal and advertisement messages are sent. Route flapping is a problem in an internetwork connected to the Internet, because a route flap in the Internet backbone usually involves many routes.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software Figure 6 Three Fully Meshed iBGP Speakers Fully meshed autonomous system Router C Routes Router A Routes advertised External BGP speaker Routes not advertised Router A Routes S4217 Router B With route reflectors, all iBGP speakers need not be fully meshed because there is a method to pass learned routes to neighbors.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software The internal peers of the route reflector are divided into two groups: client peers and all other routers in the autonomous system (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 client peers need not be fully meshed.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software Each route reflector would be configured with other route reflectors as nonclient peers (thus, all route reflectors are fully meshed). The clients are configured to maintain iBGP sessions with only the route reflector in their cluster. Usually, a cluster of clients has a single route reflector. In that case, the cluster is identified by the router ID of the route reflector.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software • bRIB process—Responsible for performing the best-path calculation of routes (receives partial best paths from the speaker). The best route is installed into the bRIB and is advertised back to all speakers. See “BGP Best Path Algorithm” section on page RC-27 for information on best-path calculation.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software A backbone carrier offers Border Gateway Protocol and Multiprotocol Label Switching (BGP/MPLS) VPN services. The customer carrier can be either: • An Internet service provider (ISP) (By definition, an ISP does not provide VPN service.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software IPv6 Provider Edge Multipath Internal and external BGP multipath for IPv6 allows the IPv6 router to load balance between several paths (for example, same neighboring autonomous system [AS] or sub-AS, or the same metric) to reach its destination.
Implementing BGP on Cisco IOS XR Software Information About Implementing BGP on Cisco IOS XR Software Figure 9 IP L3VPN with L2TPv3 IPv4 Core L2TPv3 VPN Label VPN IP (from CE) IP L3VPN w/L2TPv3 BGP (RFC 4364) VPN green PE2 CE-g2 VPN green CE-g1 PE1 VPN pink PE3 CE-p2 VPN pink CE-p1 VPN green CE-g3 211300 IP Network BGP Multicast VPN The BGP Multicast VPN feature introduces the IPv4 multicast distribution tree (MDT) subaddress family identifier (SAFI) in Border Gateway Protocol (BGP).
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software When an MVPN-specific default MDT group is configured on PE1, PIM creates a virtual MDT tunnel interface with the tunnel source address the same as the BGP local peering address. This MDT interface is used by PIM to send VPN packets to the provider network and to receive VPN packets from the provider network. PIM also exchanges control messages over this MDT interface.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software • Configuring the MED Metric for BGP, page RC-53 (optional) • Configuring BGP Weights, page RC-54 (optional) • Tuning the BGP Best-Path Calculation, page RC-56 (optional) • Indicating BGP Back-door Routes, page RC-58 (optional) • Configuring Aggregate Addresses, page RC-60 (optional) • Redistributing iBGP Routes into IGP, page RC-61 (optional) • Redistributing Prefixes into Multiprotocol BGP, page RC-63 (op
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Enabling BGP Routing Perform this task to enable BGP routing and establish a BGP routing process. Configuring BGP neighbors is included as part of enabling BGP routing. Note At least one neighbor and at least one address family must be configured to enable BGP routing. At least one neighbor with both a remote AS and an address family must be configured globally using the address family and remote as commands.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mod. Example: RP/0/RP0/CPU0:router# configure Step 2 route-policy route-policy-name (Optional) Defines a route policy and enters route policy configuration mode.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 5 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 6 router bgp as-number Enters BGP configuration mode, allowing you to configure the BGP routing process. Example: RP/0/RP0/CPU0:router(config)# router bgp 120 Step 7 bgp router-id ip-address Configures the local router with a specified router ID.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 13 Command or Action Purpose route-policy route-policy-name {in | out} (Optional) Applies the specified policy to inbound IPv4 unicast routes. Example: RP/0/RP0/CPU0:router(config-bgp-nbr-af)# route-policy drop-as-1234 in Step 14 Saves configuration changes.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router bgp as-number Enters BGP configuration mode, allowing you to configure the BGP routing process. Example: RP/0/RP0/CPU0:router(config)# router bgp 120 Step 3 bgp confederation identifier as-number Specifies a BGP confederation identifier.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 4 Command or Action Purpose bgp confederation peers as-number Specifies that the BGP autonomous systems belong to a specified BGP confederation identifier.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Adjusting BGP Timers Perform this task to set the timers for BGP neighbors. BGP uses certain timers to control periodic activities, such as the sending of keepalive messages and the interval after which a neighbor is assumed to be down if no messages are received from the neighbor during the interval.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 5 Command or Action Purpose 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 220 Step 6 Saves configuration changes.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router bgp as-number Enters BGP configuration mode, allowing you to configure the BGP routing process.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Configuring the MED Metric for BGP Perform this task to set the multi exit discriminator (MED) to advertise to peers for routes that do not already have a metric set (routes that were received with no MED attribute). SUMMARY STEPS 1. configure 2. router bgp as-number 3. default-metric value 4. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 3 Command or Action Purpose default-metric value Sets the default metric, which is used to set the MED to advertise to peers for routes that do not already have a metric set (routes that were received with no MED attribute). Example: RP/0/RP0/CPU0:router(config-bgp)# default metric 10 Step 4 Saves configuration changes.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software 7. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router bgp as-number Enters BGP configuration mode, allowing you to configure the BGP routing process.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 6 Command or Action Purpose weight weight-value Assigns a weight to all routes learned through the neighbor. Example: RP/0/RP0/CPU0:router(config-bgp-nbr-af)# weight 41150 Step 7 Saves configuration changes.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router bgp as-number Enters BGP configuration mode, allowing you to configure the BGP routing process.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 7 Command or Action Purpose bgp bestpath compare-routerid Configure the BGP speaker in the autonomous system to compare the router IDs of similar paths. Example: RP/0/RP0/CPU0:router(config-bgp)# bgp bestpath compare-routerid Step 8 Saves configuration changes.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router bgp as-number Enters BGP configuration mode, allowing you to configure the BGP routing process.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Configuring Aggregate Addresses Perform this task to create aggregate entries in a BGP routing table. SUMMARY STEPS 1. configure 2. router bgp as-number 3. address-family {ipv4 unicast | ipv4 multicast | ipv6 unicast | ipv6 multicast} 4. aggregate-address address/mask-length [as-set] [as-confed-set] [summary-only] [route-policy route-policy-name] 5.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 4 Command or Action Purpose aggregate-address address/mask-length [as-set] [as-confed-set] [summary-only] [route-policy route-policy-name] Creates an aggregate address. The path advertised for this route is an autonomous system set consisting of all elements contained in all paths that are being summarized.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software SUMMARY STEPS 1. configure 2. router bgp as-number 3. bgp redistribute-internal 4. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router bgp as-number Enters BGP configuration mode, allowing you to configure the BGP routing process.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Redistributing Prefixes into Multiprotocol BGP Perform this task to redistribute prefixes from another protocol into multiprotocol BGP. Redistribution is the process of injecting prefixes from one routing protocol into another routing protocol. This task shows how to inject prefixes from another routing protocol into multiprotocol BGP.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 3 Command or Action Purpose address-family {ipv4 unicast | ipv4 multicast | | ipv6 unicast | ipv6 multicast} Enters address family configuration mode for the specified address family.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 4 Command or Action Purpose redistribute connected [metric metric-value] [route-policy route-policy-name] Causes routes from the specified instance to be redistributed into BGP.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Configuring BGP Route Dampening Perform this task to configure and monitor BGP route dampening. SUMMARY STEPS 1. configure 2. router bgp as-number 3. address-family {ipv4 unicast | ipv4 multicast | ipv6 unicast | ipv6 multicast} 4. bgp dampening [half-life [reuse suppress max-suppress-time] | route-policy route-policy-name] 5. end or commit 6.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software 14. clear bgp {ipv4 {unicast | multicast | labeled-unicast | all} | ipv6 {unicast | multicast | all | labeled-unicast} | all {unicast | multicast | all | labeled-unicast} | vpnv4 unicast | vrf {vrf-name | all} {ipv4 {unicast | labeled-unicast} | ipv6 unicast} | vpnv6 unicast} flap-statistics network/mask-length 15.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 5 Command or Action Purpose end Saves configuration changes.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 8 Command or Action Purpose show bgp [ipv4 {unicast | multicast | labeled-unicast | all} | ipv6 {unicast | multicast | all | labeled-unicast} | all {unicast | multicast | all | labeled-unicast} | vpnv4 unicast [rd rd-address] | vrf {vrf-name | all} [ipv4 {unicast | labeled-unicast} | ipv6 unicast] | vpnv6 unicast [rd rd-address]] flap-statistics route-policy route-policy-name Displays BGP flap statistics for th
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 12 Command or Action Purpose clear bgp {ipv4 {unicast | multicast | labeled-unicast | all} | ipv6 {unicast | multicast | all | labeled-unicast} | all {unicast | multicast | all | labeled-unicast} | vpnv4 unicast | vrf {vrf-name | all} {ipv4 {unicast | labeled-unicast} | ipv6 unicast} | vpnv6 unicast} flap-statistics regexp regular-expression Clears BGP flap statistics for all paths that match the specified regu
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 16 Command or Action Purpose show bgp [ipv4 {unicast | multicast | labeled-unicast | all} | ipv6 {unicast | multicast | all | labeled-unicast} | all {unicast | multicast | all | labeled-unicast} | vpnv4 unicast [rd rd-address] | vrf {vrf-name | all} [ipv4 {unicast | labeled-unicast} | ipv6 unicast] | vpnv6 unicast [rd rd-address]] dampened-paths Displays the dampened routes, including the time remaining before
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router bgp as-number Enters BGP configuration mode, allowing you to configure the BGP routing process. Example: RP/0/RP0/CPU0:router(config)# router bgp 120.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Setting BGP Administrative Distance Perform this task to specify the use of administrative distances that can be used to prefer one class of route over another. SUMMARY STEPS 1. configure 2. router bgp as-number 3. address-family {ipv4 unicast | ipv4 multicast | ipv6 unicast | ipv6 multicast} 4. distance bgp external-distance internal-distance local-distance 5.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 4 Command or Action Purpose distance bgp external-distance internal-distance local-distance Sets the external, internal, and local administrative distances to prefer one class of routes over another. The higher the value, the lower the trust rating. Example: RP/0/RP0/CPU0:router(config-bgp-af)# distance bgp 20 20 200 Step 5 Saves configuration changes.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Note All commands that can be configured under a specified neighbor group can be configured under a neighbor. SUMMARY STEPS 1. configure 2. router bgp as-number 3. address-family {ipv4 unicast | ipv4 multicast | ipv4 tunnel | ipv4 mdt | ipv6 unicast | ipv6 multicast |vpnv4 unicast | vpnv6 unicast} 4. exit 5. neighbor-group name 6. remote-as as-number 7.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 4 Command or Action Purpose exit Exits the current configuration mode. Example: RP/0/RP0/CPU0:router(config-bgp-af)# exit Step 5 neighbor-group name Places the router in neighbor group configuration mode. Example: RP/0/RP0/CPU0:router(config-bgp)# neighbor-group nbr-grp-A Step 6 remote-as as-number Creates a neighbor and assigns a remote autonomous system number to it.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 13 Command or Action Purpose 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 Step 14 Saves configuration changes.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software 6. address-family {ipv4 unicast | ipv4 multicast | ipv4 labeled-unicast | ipv4 tunnel | ipv4 mdt | ipv6 unicast | ipv6 multicast | ipv6 labeled-unicast | vpnv4 unicast | vpnv6 unicast} 7. route-reflector-client 8. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 7 Command or Action Purpose route-reflector-client Configures the router as a BGP route reflector and configures the neighbor as its client. Example: RP/0/RP0/CPU0:router(config-bgp-nbr-af)# route-reflector-client Step 8 Saves configuration changes.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software 8. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 route-policy name (Optional) Defines a route policy and enters route policy configuration mode.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 7 Command or Action Purpose route-policy route-policy-name {in | out} Applies the specified policy to inbound routes. Example: RP/0/RP0/CPU0:router(config-bgp-nbr-af)# route-policy drop-as-1234 in Step 8 Saves configuration changes.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router bgp as-number Enters BGP configuration mode, allowing you to configure the BGP routing process.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Disabling Next-hop Processing on BGP Updates Perform this task to disable next-hop calculation for a neighbor and insert your own address in the next-hop field of BGP updates. Disabling the calculation of the best next hop to use when advertising a route causes all routes to be advertised with the network device as the next hop.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 5 Command or Action Purpose address-family {ipv4 unicast | ipv4 multicast | ipv4 labeled-unicast | ipv4 tunnel | ipv4 mdt | ipv6 unicast | ipv6 multicast | ipv6 labeled-unicast | vpnv4 unicast | vpnv6 unicast} Enters neighbor address family configuration mode for the specified address family.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Note BGP community and extended-community filtering cannot be configured for iBGP neighbors. Communities and extended-communities are always sent to iBGP neighbors SUMMARY STEPS 1. configure 2. router bgp as-number 3. neighbor ip-address 4. remote-as as-number 5.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 5 Command or Action Purpose address-family {ipv4 unicast | ipv4 multicast | ipv4 labeled-unicast | ipv4 tunnel | ipv4 mdt | ipv6 unicast | ipv6 multicast | ipv6 labeled-unicast | vpnv4 unicast | vpnv6 unicast} Enters neighbor address family configuration mode for the specified address family.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software 5. router bgp as-number 6.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software address-family {ipv4 unicast | ipv4 multicast | ipv4 tunnel | ipv4 mdt | ipv6 unicast | ipv6 multicast | vpnv4 unicast | vpnv6 unicast} redistribute static [metric metric-value] [route-policy route-policy-name] or address-family {ipv4 unicast | ipv4 multicast | ipv4 tunnel | ipv4 mdt | ipv6 unicast | ipv6 multicast | vpnv4 unicast | vpnv6 unicast} network {ip-address/prefix-length | ip-address mask} [route-policy route-
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 5 Command or Action Purpose router bgp as-number Enters BGP configuration mode allowing you to configure the BGP routing process. Example: RP/0/RP0/CPU0:router(config)# router bgp 120 Step 6 default-information originate or Applies the cost community to the attach point (route policy).
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Command or Action Purpose address-family {ipv4 unicast | ipv4 multicast | ipv4 tunnel | ipv4 mdt | ipv6 unicast | ipv6 multicast | vpnv4 unicast | vpnv6 unicast} redistribute ospfv3 process-id [match {external [1 | 2] | internal | nssa-external [1 | 2]}] [metric metric-value] [route-policy route-policy-name] or address-family {ipv4 unicast | ipv4 multicast | ipv4 tunnel | ipv4 mdt | ipv6 unicast | ipv6 multicast | vp
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 7 Command or Action Purpose end Saves configuration changes.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software 4. address-family {ipv4 unicast | ipv4 multicast | ipv4 labeled-unicast | ipv4 tunnel | ipv4 mdt | ipv6 unicast | ipv6 multicast | ipv6 labeled-unicast | vpnv4 unicast | vpnv6 unicast} 5. soft-reconfiguration inbound [always] 6. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 5 Command or Action Purpose soft-reconfiguration inbound [always] Configures the software to store updates received from a specified neighbor. Soft reconfiguration inbound causes the software to store the original unmodified route in addition to a route that is modified or filtered. This allows a “soft clear” to be performed after the inbound policy is changed.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software 5. address-family {ipv4 unicast | ipv4 multicast | ipv4 tunnel | ipv4 mdt | ipv6 unicast | ipv6 multicast | vpnv4 unicast | vpnv6 unicast} 6. exit 7. neighbor ip-address 8. remote-as as-number 9. speaker-id id 10. address-family {ipv4 unicast | ipv4 multicast | ipv4 labeled-unicast | ipv4 tunnel | ipv4 mdt | ipv6 unicast | ipv6 multicast | ipv6 labeled-unicast | vpnv4 unicast | vpnv6 unicast} 11. end 12.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 7 Command or Action Purpose neighbor ip-address Places the router in neighbor configuration mode for BGP routing and configures the neighbor IP address as a BGP peer. Example: RP/0/RP0/CPU0:router(config-bgp)# neighbor 172.168.40.24 Step 8 remote-as as-number Creates a neighbor and assigns a remote autonomous system number to it.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Configuring a VPN Routing and Forwarding Instance in BGP The following tasks are used to configure a VPN routing and forwarding (VRF) instance in BGP: • Defining the Virtual Routing and Forwarding Tables in Provider Edge Routers, page RC-96 (required) • Configuring the Route Distinguisher, page RC-98 (required) • Configuring PE-PE or PE-RR Interior BGP sessions, page RC-100 (optional) • Configuring Route Reflecto
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 3 Command or Action Purpose address-family {ipv4 | ipv6} unicast Enters address family configuration mode for the specified address family. Example: RP/0/RP0/CPU0:router(config-vrf)# address-family ipv4 unicast Step 4 maximum prefix maximum [threshold] Configures a limit to the number of prefixes allowed in a VRF table.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 8 Command or Action Purpose export route-target [as-number:nn | ip-address:nn] Specifies a list of route target extended communities. Export route target communities are associated with prefixes when they are advertised to remote PEs. The remote PEs import them into VRFs which have import RTs that match these exported route target communities.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router bgp as-number Enters BGP configuration mode allowing you to configure the BGP routing process. Example: RP/0/RP0/CPU0:router(config)# router bgp 120 Step 3 bgp router-id ip-address Configures a fixed router ID for the BGP-speaking router.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 5 Step 6 Command or Action Purpose rd {as-number:nn | ip-address:nn | auto} Configures the route distinguisher. Example: Use the auto keyword if you want the router to automatically assign a unique RD to the VRF. RP/0/RP0/CPU0:router(config-bgp-vrf)# rd 345:567 Automatic assignment of RDs is possible only if a router ID is configured using the bgp router-id command in router configuration mode.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software 3. address-family {vpnv4 unicast | vpnv6 unicast} 4. bgp dampening [half-life [reuse suppress max-suppress-time] | route-policy route-policy-name] 5. bgp client-to-client reflection disable 6. exit 7. neighbor ip-address 8. remote-as as-number 9. description text 10. password {clear | encrypted} password 11. shutdown 12. timers keepalive hold-time 13. update-source interface-type interface-number 14.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 5 Command or Action Purpose bgp client-to-client reflection disable Disables reflection of routes between route reflection clients using a BGP route reflector. Example: RP/0/RP0/CPU0:router(config-bgp-af)# bgp client-to-client reflection disable Step 6 Exits the current configuration mode. exit Example: RP/0/RP0/CPU0:router(config-bgp-af)# exit Step 7 neighbor ip-address Configures a PE IBGP neighbor.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 14 Command or Action Purpose address-family {vpnv4 unicast | vpnv6 unicast} Enters VPN neighbor address family configuration mode. Example: RP/0/RP0/CPU0:router(config-bgp-nbr)# address-family vpvn4 unicast Step 15 route-policy route-policy-name in Specifies a routing policy for an inbound route. The policy can be used to filter routes or modify route attributes.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Note Note that this process can be more efficient if the PE-RR session supports extended community outbound route filter (ORF). Perform this task to configure a reflector to retain routes tagged with specific RTs. SUMMARY STEPS 1. configure 2. router bgp as-number 3. address-family {vpnv4 unicast | vpnv6 unicast} 4. retain route-target {all | route-policy route-policy-name} 5.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 4 Command or Action Purpose retain route-target {all | route-policy route-policy-name} Configures a reflector to retain routes tagged with particular RTs. Use the route-policy-name argument for the policy name that lists the extended communities that a path should have in order for the RR to retain that path.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software 13. ebgp-multihop [ttl-value] 14. address-family {ipv4 {unicast | labeled-unicast} | ipv6 unicast} 15. site-of-origin [as-number:nn | ip-address:nn] 16. as-override 17. allowas-in [as-occurrence-number] 18. route-policy route-policy-name in 19. route-policy route-policy-name out 20. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 6 Command or Action Purpose address-family {ipv4 | ipv6} unicast Enters VPN address family configuration mode. Example: RP/0/RP0/CPU0:router(config-bgp-vrf)# address-family ipv4 unicast Step 7 network {ip-address/prefix-length | ip-address mask} Originates a network prefix in the address family table in the VRF context. Example: RP/0/RP0/CPU0:router(config-bgp-vrf-af)# network 172.16.5.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 14 Command or Action Purpose address-family {ipv4 {unicast | labeled-unicast} | ipv6 unicast} Enables an address family for the CE peer. Example: RP/0/RP0/CPU0:router(config-bgp-vrf-nbr)# address-family ipv4 unicast Step 15 site-of-origin [as-number:nn | ip-address:nn] Example: RP/0/RP0/CPU0:router(config-bgp-vrf-nbr-af)# site-of-origin 234:111 Step 16 as-override Configures AS override on the PE router.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 19 Command or Action Purpose route-policy route-policy-name out Specifies a routing policy for an outbound route. The policy can be used to filter routes or modify route attributes. Example: RP/0/RP0/CPU0:router(config-bgp-vrf-nbr-af)# route-policy pe_ce_out_policy out Step 20 Saves configuration changes.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software 9. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router bgp as-number Enters BGP configuration mode, allowing you to configure the BGP routing process. Example: RP/0/RP0/CPU0:router(config)# router bgp 120 Step 3 vrf vrf-name Enables BGP routing for a particular VRF on the PE router.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 8 Command or Action Purpose dmz-link-bandwidth Originates a demilitarized-zone (DMZ) link-bandwidth extended community for the link to an EBGP neighbor. Example: RP/0/RP0/CPU0:router(config-bgp-vrf-nbr)# dmz-link-bandwidth Step 9 Saves configuration changes.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software redistribute ospf process-id [match {external [1 | 2] | internal | nssa-external [1 | 2]}] [metric metric-value] [route-policy route-policy-name] or redistribute ospfv3 process-id [match {external [1 | 2] | internal | nssa-external [1 | 2]}] [metric metric-value] [route-policy route-policy-name] or redistribute rip [metric metric-value] [route-policy route-policy-name] or redistribute static [metric metric-value] [route
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 5 Command or Action Purpose redistribute connected [metric metric-value] [route-policy route-policy-name] Configures redistribution of a protocol into the VRF address family context.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Configuring Keychains for BGP Keychains provide secure authentication by supporting different MAC authentication algorithms and provide graceful key rollover. Perform this task to configure keychains for BGP. This task is optional. Note If a keychain is configured for a neighbor group or a session group, a neighbor using the group inherits the keychain.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 5 Command or Action Purpose keychain name Configures keychain-based authentication. Example: RP/0/RP0/CPU0:router(config-bgp-nbr)# keychain kych_a Step 6 Saves configuration changes.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software 5. address-family ipv4 mdt 6. exit 7. neighbor ip-address 8. remote-as as-number 9. address-family {ipv4 unicast | ipv4 multicast | ipv4 labeled-unicast | ipv4 tunnel | ipv4 mdt | ipv6 unicast | ipv6 multicast | ipv6 labeled-unicast | vpnv4 unicast | vpnv6 unicast} 10. route-policy route-policy-name {in | out} 11. exit 12. address-family ipv4 mdt 13. route-policy route-policy-name {in | out} 14.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 6 Command or Action Purpose exit Exits the current configuration mode. Example: RP/0/RP0/CPU0:router(config-bgp-af)# exit Step 7 neighbor ip-address Example: Places the router in neighbor configuration mode for BGP routing and configures the neighbor IP address as a BGP peer. RP/0/RP0/CPU0:router(config-bgp)# neighbor 172.168.40.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 13 Command or Action Purpose route-policy route-policy-name {in | out} Specifies a routing policy for an outbound route. The policy can be used to filter routes or modify route attributes. Example: RP/0/RP0/CPU0:router(config-bgp-af)# route-policy pe_ce_out_policy out Step 14 Saves configuration changes.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router bgp as-number Enters BGP configuration mode, allowing you to configure the BGP routing process.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Resetting Neighbors Using BGP Inbound Soft Reset 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.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software To determine whether the neighbor has advertised the ROUTE_REFRESH capability, use the show bgp neighbors command. SUMMARY STEPS 1. show bgp neighbors 2.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose clear bgp {ipv4 {unicast | multicast | labeled-unicast | all | tunnel | mdt} | ipv6 {unicast | multicast | all | labeled-unicast} | all {unicast | multicast | all | labeled-unicast | mdt | tunnel} | vpnv4 unicast | vrf {vrf-name | all} {ipv4 {unicast | labeled-unicast} | ipv6 unicast} | vpnv6 unicast} {* | ip-address | as as-number | external} [graceful] soft [in [pref
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose clear bgp {ipv4 {unicast | multicast | labeled-unicast | all | tunnel | mdt} | ipv6 {unicast | multicast | all | labeled-unicast} | all {unicast | multicast | all | labeled-unicast | mdt | tunnel} | vpnv4 unicast | vrf {vrf-name | all} {ipv4 {unicast | labeled-unicast} | ipv6 unicast} | vpnv6 unicast} ip-address Clears a specified neighbor.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose show bgp cidr-only Displays routes with nonnatural network masks (classless interdomain routing [CIDR]) routes. Example: RP/0/RP0/CPU0:router# show bgp cidr-only Step 2 show bgp community community-list [exact-match] Displays routes that match the specified BGP community.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 7 Command or Action Purpose show bgp neighbor-group group-name configuration Displays the effective configuration for a specified neighbor group, including any configuration inherited by this neighbor group. Example: RP/0/RP0/CPU0:router# show bgp neighbor-group group_1 configuration Step 8 show bgp summary Displays the status of all BGP connections.
Implementing BGP on Cisco IOS XR Software How to Implement BGP on Cisco IOS XR Software Step 4 Command or Action Purpose show bgp vrf (vrf-name | all} Displays BGP VPN virtual routing and forwarding (VRF) information. Example: RP/0/RP0/CPU0:router# show bgp vrf vrf_A Step 5 show bgp process detail Displays detailed process information including the memory used by each of various internal structure types.
Implementing BGP on Cisco IOS XR Software Configuration Examples for Implementing BGP on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose show bgp [ipv4 {unicast | multicast | labeled-unicast | all | tunnel | mdt} | ipv6 {unicast | all | labeled-unicast} | all {unicast | multicast | all | mdt | labeled-unicast | tunnel} | vpnv4 unicast | vrf {vrf-name | all} [ipv4 {unicast | labeled-unicast} | ipv6 unicast] | vpvn6 unicast] update-group [neighbor ip-address | process-id.
Implementing BGP on Cisco IOS XR Software Configuration Examples for Implementing BGP on Cisco IOS XR Software route-policy set_next_hop_static_v4 if (destination in static) then set next-hop 10.1.0.
Implementing BGP on Cisco IOS XR Software Configuration Examples for Implementing BGP on Cisco IOS XR Software route-policy address-family route-policy route-policy pass-all out ipv4 multicast pass-all in pass-all out Displaying BGP Update Groups: Example The following is sample output from the show bgp update-group command run in EXEC mode: RP/0/RP0/CPU0:router# show bgp update-group Update group for IPv4 Unicast, index 0.
Implementing BGP on Cisco IOS XR Software Configuration Examples for Implementing BGP on Cisco IOS XR Software route-policy pass-all in route-policy pass-all out BGP Confederation: Example The following is a sample configuration that shows several peers in a confederation. The confederation consists of three internal autonomous systems with autonomous system numbers 6001, 6002, and 6003.
Implementing BGP on Cisco IOS XR Software Configuration Examples for Implementing BGP on Cisco IOS XR Software exit address-family ipv4 unicast route-policy pass-all in route-policy pass-all out In a BGP speaker in autonomous system 6003, the peers from autonomous systems 6001 and 6002 are configured as special eBGP peers. Peer 200.200.200.200 is a normal eBGP peer from autonomous system 701.
Implementing BGP on Cisco IOS XR Software Where to Go Next address-family ipv4 multicast route-reflector-client BGP MDT Address Family Configuration: Example The following example shows how to configure an MDT address family in BGP: router bgp 10 bgp router-id 10.0.0.2 address-family vpnv4 unicast ! address-family ipv4 mdt ! neighbor 1.1.1.
Implementing BGP on Cisco IOS XR Software Additional References Additional References The following sections provide references related to implementing BGP for Cisco IOS XR software.
Implementing BGP on Cisco IOS XR Software 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.
Implementing EIGRP on Cisco IOS XR Software The Enhanced Interior Gateway Routing Protocol (EIGRP) is an enhanced version of IGRP developed by Cisco. EIGRP uses distance vector routing technology, which specifies that a router need not know all the router and link relationships for the entire network. Each router advertises destinations with a corresponding distance and upon receiving routes, adjusts the distance and propagates the information to neighboring routes.
Implementing EIGRP on Cisco IOS XR Software Prerequisites for Implementing EIGRP on Cisco IOS XR Software • Information About Implementing EIGRP on Cisco IOS XR Software, page RC-136 • How to Implement EIGRP on Cisco IOS XR Software, page RC-148 • Configuration Examples for Implementing EIGRP on Cisco IOS XR Software, page RC-166 • Additional References, page RC-168 Prerequisites for Implementing EIGRP on Cisco IOS XR Software The following are prerequisites for implementing EIGRP on Cisco IOS XR s
Implementing EIGRP on Cisco IOS XR Software Information About Implementing EIGRP on Cisco IOS XR Software • Floating Summary Routes for an EIGRP Process, page RC-142 • Split Horizon for an EIGRP Process, page RC-144 • Adjustment of Hello Interval and Hold Time for an EIGRP Process, page RC-145 • Stub Routing for an EIGRP Process, page RC-145 • Route Policy Options for an EIGRP Process, page RC-146 • EIGRP Layer 3 VPN PE-CE Site-of-Origin, page RC-147 • IPv6 and IPv6 VPN Provider Edge Support o
Implementing EIGRP on Cisco IOS XR Software Information About Implementing EIGRP on Cisco IOS XR Software • Provider Edge (PE)-Customer Edge (CE) protocol support with Site of Origin (SoO) and Border Gateway Protocol (BGP) cost community support. • PECE protocol support for MPLS and L2TPv3-based-IP L3VPNs.
Implementing EIGRP on Cisco IOS XR Software Information About Implementing EIGRP on Cisco IOS XR Software 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.
Implementing EIGRP on Cisco IOS XR Software Information About Implementing EIGRP on Cisco IOS XR Software RP/0/RP0/CPU0:router(config)# router eigrp 100 RP/0/RP0/CPU0:router(config-eigrp)# vrf customer1 RP/0/RP0/CPU0:router(config-eigrp-vrf)# address-family ipv6 RP/0/RP0/CPU0:router(config-eigrp-vrf-af)# Interface Configuration Mode The following example shows how to enter interface configuration mode in IPv4 address family configuration mode: RP/0/RP0/CPU0:router# configuration RP/0/RP0/CPU0:router(conf
Implementing EIGRP on Cisco IOS XR Software Information About Implementing EIGRP on Cisco IOS XR Software Metric Weights for EIGRP Routing EIGRP uses the minimum bandwidth on the path to a destination network and the total delay to compute routing metrics. You can use the metric weights command to adjust the default behavior of EIGRP routing and metric computations. For example, this adjustment allows you to tune system behavior to allow for satellite transmission.
Implementing EIGRP on Cisco IOS XR Software Information About Implementing EIGRP on Cisco IOS XR Software The Goodbye Message The goodbye message is a feature designed to improve EIGRP network convergence. The goodbye message is broadcast when an EIGRP routing process is shut down to inform adjacent peers about the impending topology change.
Implementing EIGRP on Cisco IOS XR Software Information About Implementing EIGRP on Cisco IOS XR Software Figure 1 Floating Summary Route Is Applied to Router-B 10.1.1.0/24 0.0.0.0/0 Router-A Router-C Router-B address-family ipv4 interface POS0/3/0/0 summary-address 0.0.0.0/0 25 150000 RP/0/RP0/CPU0:router-B# show route . . . . 0.0.0.0/0 via (489765/170) RP/0/RP0/CPU0:router-C# show route . . . . 0.0.0.
Implementing EIGRP on Cisco IOS XR Software Information About Implementing EIGRP on Cisco IOS XR Software Figure 2 Floating Summary Route Applied for Dual-Homed Remotes 10.1.1.0/24 0.0.0.0/0 0.0.0.0/0 Router-A Router-C Router-B 0.0.0.0/0 Router-E 158001 Router-D 0.0.0.0/0 address-family ipv4 interface POS03/0/0 summary-address 0.0.0.0/0 250 RP/0/RP0/CPU0:router# show route . . . . 0.0.0.
Implementing EIGRP on Cisco IOS XR Software Information About Implementing EIGRP on Cisco IOS XR Software Adjustment of Hello Interval and Hold Time for an EIGRP Process You can adjust the interval between hello packets and the hold time. Routing devices periodically send hello packets to each other to dynamically learn of other routers on their directly attached networks. This information is used to discover neighbors and learn when neighbors become unreachable or inoperative.
Implementing EIGRP on Cisco IOS XR Software Information About Implementing EIGRP on Cisco IOS XR Software Figure 3 Simple Hub-and-Spoke Network Internet Remote router (spoke) 46094 Distribution router (hub) 10.1.1.0/24 Corporate network The stub routing feature by itself does not prevent routes from being advertised to the remote router. In the example in Figure 3, the remote router can access the corporate network and the Internet through the distribution router only.
Implementing EIGRP on Cisco IOS XR Software Information About Implementing EIGRP on Cisco IOS XR Software This is the command to set the EIGRP metric in a route policy: RP/0/RP0/CPU0:router(config-rpl)# set eigrp-metric bandwidth delay reliability loading mtu This is the command to provide EIGRP offset list functionality in a route policy: RP/0/RP0/CPU0:router(config-rpl)# add eigrp-metric bandwidth delay reliability loading mtu A route policy can be used in EIGRP only if all the statements are applicabl
Implementing EIGRP on Cisco IOS XR Software How to Implement EIGRP on Cisco IOS XR Software When BGP and EIGRP peers that support the SoO extended community receive these routes, they also receive the associated SoO values and pass them to other BGP and EIGRP peers that support the SoO extended community. This filtering is designed to prevent transient routes from being relearned from the originating site, which prevents transient routing loops from occurring.
Implementing EIGRP on Cisco IOS XR Software How to Implement EIGRP on Cisco IOS XR Software Enabling EIGRP Routing This task enables EIGRP routing and establishes an EIGRP routing process. Prerequisites Although you can configure EIGRP before you configure an IP address, no EIGRP routing occurs until at least one IP address is configured. SUMMARY STEPS 1. configure 2. router eigrp as-number 3. address-family {ipv4 | ipv6} 4. router-id id 5.
Implementing EIGRP on Cisco IOS XR Software How to Implement EIGRP on Cisco IOS XR Software Step 4 Command or Action Purpose router-id id (Optional) Configures a router-id for an EIGRP process. Note Example: RP/0/RP0/CPU0:router(config-eigrp)# router-id 172.20.1.1 Step 5 default-metric bandwidth delay reliability loading mtu It is good practice to use the router-id command to explicitly specify a unique 32-bit numeric value for the router ID.
Implementing EIGRP on Cisco IOS XR Software How to Implement EIGRP on Cisco IOS XR Software Step 9 Command or Action Purpose 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 Step 10 Saves configuration changes.
Implementing EIGRP on Cisco IOS XR Software How to Implement EIGRP on Cisco IOS XR Software 2. router eigrp as-number 3. address-family {ipv4 | ipv6} 4. route-policy name out 5. interface type instance 6. summary-address ip-address {/length | mask} [admin-distance] 7. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router eigrp as-number Configures an EIGRP routing process.
Implementing EIGRP on Cisco IOS XR Software How to Implement EIGRP on Cisco IOS XR Software Step 6 Command or Action Purpose summary-address ip-address {/length | mask} [admin-distance] Configures a summary aggregate address for the specified EIGRP interface. Example: RP/0/RP0/CPU0:router(config-eigrp-af-if)# summary-address 192.168.0.0/16 95 Step 7 Saves configuration changes.
Implementing EIGRP on Cisco IOS XR Software How to Implement EIGRP on Cisco IOS XR Software 9. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router eigrp as-number Configures an EIGRP routing process. Example: RP/0/RP0/CPU0:router(config)# router eigrp 100 Step 3 address-family {ipv4 | ipv6} Enters an address family configuration mode.
Implementing EIGRP on Cisco IOS XR Software How to Implement EIGRP on Cisco IOS XR Software Step 8 Command or Action Purpose maximum-prefix maximum [threshold] [[dampened] [reset-time minutes] [restart minutes] [restart-count number] | [warning-only]] Limits the number of prefixes that are accepted under an address family by EIGRP. Example: RP/0/RP0/CPU0:router(config-eigrp-af)# maximum-prefix 50000 Step 9 Saves configuration changes.
Implementing EIGRP on Cisco IOS XR Software How to Implement EIGRP on Cisco IOS XR Software 8. address-family {ipv4 | ipv6} 9. route-policy route-policy-name {in | out} 10. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 route-policy name Defines a route policy and enters route-policy configuration mode.
Implementing EIGRP on Cisco IOS XR Software How to Implement EIGRP on Cisco IOS XR Software Step 6 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 7 router eigrp as-number Configures an EIGRP routing process. Example: RP/0/RP0/CPU0:router(config)# router eigrp 100 Step 8 address-family {ipv4 | ipv6} Enters an address family configuration mode.
Implementing EIGRP on Cisco IOS XR Software How to Implement EIGRP on Cisco IOS XR Software Configuring Stub Routing for an EIGRP Process This task configures the distribution and remote routers to use an EIGRP process for stub routing. Restrictions EIGRP stub routing should be used only on remote routers. A stub router is defined as a router connected to the network core or distribution layer through which core transit traffic should not flow.
Implementing EIGRP on Cisco IOS XR Software How to Implement EIGRP on Cisco IOS XR Software Step 5 Command or Action Purpose end or commit Saves configuration changes.
Implementing EIGRP on Cisco IOS XR Software How to Implement EIGRP on Cisco IOS XR Software 10. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router eigrp as-number Configures an EIGRP routing process. Example: RP/0/RP0/CPU0:router(config)# router eigrp 100 Step 3 vrf vrf-name Configures a VPN routing and forwarding (VRF) instance.
Implementing EIGRP on Cisco IOS XR Software How to Implement EIGRP on Cisco IOS XR Software Step 9 Command or Action Purpose site-of-origin {as-number:number | ip-address:number} Configures the site-of-origin (SoO) filtering on the EIGRP interface. Example: RP/0/RP0/CPU0:router(config-eigrp-vrf-af-if)# site-of-origin 3:4 Step 10 Saves configuration changes.
Implementing EIGRP on Cisco IOS XR Software How to Implement EIGRP on Cisco IOS XR Software 3. vrf vrf-name 4. address-family {ipv4 | ipv6} 5. redistribute {{bgp | connected | isis | ospf | ospfv3 | rip | static} [as-number | instance-name]} [route-policy name] 6. route-policy route-policy-name {in | out} 7. default-metric bandwidth delay reliability loading mtu 8. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode.
Implementing EIGRP on Cisco IOS XR Software How to Implement EIGRP on Cisco IOS XR Software Step 7 Command or Action Purpose default-metric bandwidth delay reliability loading mtu Configures metrics for EIGRP. Example: RP/0/RP0/CPU0:router(config-eigrp-vrf-af)# default-metric 1000 100 250 100 1500 Step 8 Saves configuration changes.
Implementing EIGRP on Cisco IOS XR Software How to Implement EIGRP on Cisco IOS XR Software 10. show eigrp [as-number] [vrf {vrf | all}] [ipv4 | ipv6] interfaces [type instance] [detail] 11. show eigrp [as-number] [vrf {vrf | all}] [ipv4 | ipv6]neighbors [detail] [interface-type interface-instance | static] 12. show protocols eigrp [vrf vrf-name] 13.
Implementing EIGRP on Cisco IOS XR Software How to Implement EIGRP on Cisco IOS XR Software Step 6 Command or Action Purpose end or commit Saves configuration changes.
Implementing EIGRP on Cisco IOS XR Software Configuration Examples for Implementing EIGRP on Cisco IOS XR Software Step 11 Command or Action Purpose show eigrp [as-number] [vrf {vrf | all}] [ipv4 | ipv6] neighbors [detail] [interface-type interface-instance | static] Displays the neighbors discovered by EIGRP. Example: RP/0/RP0/CPU0:router# show eigrp neighbors 20 detail static Step 12 show protocols eigrp [vrf vrf-name] Displays information about the EIGRP process configuration.
Implementing EIGRP on Cisco IOS XR Software Configuration Examples for Implementing EIGRP on Cisco IOS XR Software interface POS0/2/0/0 passive-interface ! interface GigabitEthernet0/6/0/0 hello-interval 8 hold-time 30 summary-address 10.0.0.0 255.255.0.0 ! ! ! Configuring an EIGRP Stub Operation: Example The following example shows how to configure an EIGRP stub. Stub operation allows only connected, static, and summary routes to be advertised to neighbors.
Implementing EIGRP on Cisco IOS XR Software Additional References Additional References The following sections provide references related to implementing EIGRP on Cisco IOS XR software.
Implementing EIGRP on Cisco IOS XR Software Additional References Technical Assistance Description Link http://www.cisco.com/techsupport The Cisco Technical Support website contains thousands of pages of searchable technical content, including links to products, technologies, solutions, technical tips, and tools. Registered Cisco.com users can log in from this page to access even more content.
Implementing EIGRP on Cisco IOS XR Software Additional References Cisco IOS XR Routing Configuration Guide RC-170 OL-14356-01
Implementing OSPF on Cisco IOS XR Software Open Shortest Path First (OSPF) is an Interior Gateway Protocol (IGP) developed by the OSPF working group of the Internet Engineering Task Force (IETF). Designed expressly for IP networks, OSPF supports IP subnetting and tagging of externally derived routing information. OSPF also allows packet authentication and uses IP multicast when sending and receiving packets. OSPF Version 3 (OSPFv3) expands on OSPF Version 2, providing support for IPv6 routing prefixes.
Implementing OSPF on Cisco IOS XR Software Contents Release 3.5.0 Release 3.6.
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software To implement OSPF you need to understand the following concepts: • OSPF Functional Overview, page RC-173 • Key Features Supported in the Cisco IOS XR OSPF Implementation, page RC-175 • Comparison of Cisco IOS XR OSPFv3 and OSPFv2, page RC-175 • OSPF Hierarchical CLI and CLI Inheritance, page RC-176 • OSPF Routing Components, page RC-17
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software neighboring networking devices. The interface information includes the IP address of the interface, network mask, type of network to which it is connected, routers connected to that network, and so on. This information is propagated in various types of link-state advertisements (LSAs). A router stores the collection of received LSA data in a link-state database.
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software minimum, OSPF-based routers or access servers can be configured with all default parameter values, no authentication, and interfaces assigned to areas. If you intend to customize your environment, you must ensure coordinated configurations of all routers.
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software OSPF Hierarchical CLI and CLI Inheritance Cisco IOS XR software introduces new OSPF configuration fundamentals consisting of hierarchical CLI and CLI inheritance. Hierarchical CLI is the grouping of related network component information at defined hierarchical levels such as at the router, area, and interface levels.
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software Figure 1 OSPF Routing Components OSPF Domain (BGP autonomous system 109) Area 0 backbone R3 Area 2 stub area Area 1 ABR 2 ABR 1 R1 R2 ASBR 1 Area 3 ASBR 2 88721 OSPF Domain (BGP autonomous system 65200) Autonomous Systems The autonomous system is a collection of networks, under the same administrative control, that share routing information with each other.
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software The backbone itself has all properties of an area. It consists of ABRs, routers, and networks only on the backbone. As shown in Figure 1, Area 0 is an OSPF backbone area. Any OSPF backbone area has a reserved area ID of 0.0.0.0. Stub Area A stub area is an area that does not accept or detailed network information external to the area.
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software 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.
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software • Point-to-multipoint You can configure your Cisco IOS XR network as either a broadcast or an NBMA network. Using this feature, you can configure broadcast networks as NBMA networks when, for example, you have routers in your network that do not support multicast addressing.
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software which devices start using the new key, and the software stops sending duplicate packets after it detects that all of its neighbors are using the new key. The software then discards the old key. The network administrator must then remove the old key from each the configuration file of each router.
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software • Network LSA (Type 2)—Describes the link state and cost information for all routers attached to a multiaccess network segment. This LSA lists all the routers that have interfaces attached to the network segment. It is the job of the designated router of a network segment to generate and track the contents of this LSA.
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software • Interarea-prefix LSA for ABRs (Type 3)—Advertises internal networks to routers in other areas (interarea routes). Type 3 LSAs may represent a single network or set of networks aggregated into one prefix. Only ABRs generate Type 3 LSAs. In OSPFv3, addresses for these LSAs are expressed as “prefix and prefix length” instead of “address and mask.” The default route is expressed as a prefix with length 0.
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software In the case in which an area cannot be connected to Area 0, you must configure a virtual link between that area and Area 0. The two endpoints of a virtual link are ABRs, and the virtual link must be configured in both routers. The common nonbackbone area to which the two routers belong is called a transit area.
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software Figure 3 Backdoor Paths Between OSPF Client Sites MPLS VPN Backbone Winchester 10.3.1.7 PE3 10.3.1.2 Area 1 backdoor link PE1 10.3.1.6 Brighton PE2 10.3.1.5 backdoor link backdoor link Vienna 10.3.1.38 Stockholm 10.3.1.3 Area 1 242094 Area 1 For example, Figure 3 shows three client sites, each with backdoor links.
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software Figure 4 Sham Link Between PE Routers to Connected OSPF Client Sites MPLS VPN Backbone Sham-link PE1 10.3.1.6 PE3 10.3.1.2 Winchester 10.3.1.7 Area 1 backdoor link Sham-link Brighton PE2 10.3.1.5 backdoor link backdoor link Vienna 10.3.1.38 Stockholm 10.3.1.3 Area 1 242095 Area 1 Figure 4 shows an MPLS VPN topology where a sham link configuration is necessary.
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software The interval at which the SPF calculations occur is chosen dynamically and based on the frequency of topology changes in the network. The chosen interval is within the boundary of the user-specified value ranges. If network topology is unstable, SPF throttling calculates SPF scheduling intervals to be longer until topology becomes stable.
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software through intelligent line cards while the standby Route Processor (RP) assumes control from the failed RP. The ability of line cards to remain up through a failover and to be kept current with the Forwarding Information Base (FIB) on the active RP is key to Cisco IOS XR NSF operation. Routing protocols, such as OSPF, run only on the active RP or DRP and receive routing updates from their neighbor routers.
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software The following are general details about restart mode. More detailed information on behavior and certain restrictions and requirements appears in the Graceful Restart Requirements and Restrictions section. • If OSPFv3 attempts a restart too soon after the most recent restart, the OSPFv3 process is most likely crashing repeatedly, so the new graceful restart stops running.
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software • To ensure consistent databases after a restart, the OSPFv3 configuration must be identical to the configuration before the restart. (This requirement applies to self-originated information in the local database.) A graceful restart can fail if configurations change during the operation. In this case, data forwarding would be affected.
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software You can enable multicast-intact in the IGP when multicast routing protocols (PIM) are configured and IGP shortcuts are configured on the router. IGP shortcuts are MPLS tunnels that are exposed to IGP. The IGP routes IP traffic over these tunnels to destinations that are downstream from the egress router of the tunnel (from an SPF perspective).
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software • Establishes a neighbor relationship with the corresponding multi-area interface on the neighboring router. A mixture of multi-area and primary interfaces is not supported. • Advertises an unnumbered point-to-point link in the router link state advertisement (LSA) for the corresponding area when the neighbor state is full. • Created as a point-to-point network type and is not configurable.
Implementing OSPF on Cisco IOS XR Software Information About Implementing OSPF on Cisco IOS XR Software OSPF Authentication Message Digest Management All OSPF routing protocol exchanges are authenticated and the method used can vary depending on how authentication is configured. When using cryptographic authentication, the OSPF routing protocol uses the Message Digest 5 (MD5) authentication algorithm to authenticate packets transmitted between neighbors in the network.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software For detailed information for the Path Computation Element feature see the “Implementing MPLS Traffic Engineering on Cisco IOS XR software” module of the Cisco IOS XR MPLS Configuration Guide, Release 3.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Prerequisites Although you can configure OSPF before you configure an IP address, no OSPF routing occurs until at least one IP address is configured. SUMMARY STEPS 1. configure 2. router ospf process-name or router ospfv3 process-name 3. router-id {router-id} 4. area area-id 5. interface type instance 6. Repeat Step 5 for each interface that uses OSPF. 7.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 4 Command or Action Purpose area area-id Enters area configuration mode and configures an area for the OSPF process. Example: RP/0/RP0/CPU0:router(config-ospf)# area 0 Step 5 interface type instance • Backbone areas have an area ID of 0. • Nonbackbone areas have a nonzero area ID. • The area-id argument can be entered in dotted-decimal or IPv4 address notation, such as area 1000 or area 0.0.3.232.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Configuring Stub and Not-So-Stubby Area Types This task explains how to configure the stub area and the NSSA for OSPF. SUMMARY STEPS 1. configure 2. router ospf process-name or router ospfv3 process-name 3. router-id {router-id} 4. area area-id 5. stub [no-summary] or nssa [no-redistribution] [default-information-originate] [no-summary] 6. stub or nssa 7. default-cost cost 8. end or commit 9.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 4 Command or Action Purpose area area-id Enters area configuration mode and configures a nonbackbone area for the OSPF process. Example: • RP/0/RP0/CPU0:router(config-ospf)# area 1 Step 5 stub [no-summary] or Defines the nonbackbone area as a stub area. • See the “Configuring Stub and Not-So-Stubby Area Types” section on page RC-197.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 8 Command or Action Purpose end Saves configuration changes.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software 9. neighbor ip-address [priority number] [poll-interval seconds] [cost number] or neighbor ipv6-link-local-address [priority number] [poll-interval seconds] [cost number] [database-filter [all]] 10. Repeat Step 9 for all neighbors on the interface. 11. exit 12. interface type instance 13.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 5 Command or Action Purpose network {broadcast | non-broadcast | {point-to-multipoint [non-broadcast] | point-to-point}} Configures the OSPF network type to a type other than the default for a given medium. • The example sets the network type to NBMA.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 9 Command or Action Purpose neighbor ip-address [priority number] [poll-interval seconds][cost number] Configures the IPv4 address of OSPF neighbors interconnecting to nonbroadcast networks. or neighbor ipv6-link-local-address [priority number] [poll-interval seconds][cost number] [database-filter [all]] or Configures the link-local IPv6 address of OSPFv3 neighbors.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 13 Command or Action Purpose neighbor ip-address [priority number] [poll-interval seconds][cost number] [database-filter [all]] Configures the IPv4 address of OSPF neighbors interconnecting to nonbroadcast networks. or or neighbor ipv6-link-local-address [priority number] [poll-interval seconds][cost number] [database-filter [all]] Configures the link-local IPv6 address of OSPFv3 neighbors.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Command or Action Purpose Step 14 Repeat Step 13 for all neighbors on the interface. — Step 15 end Saves configuration changes.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software 5. message-digest-key key-id md5 {key | clear key | encrypted key} 6. area area-id 7. interface type instance 8. Repeat Step 7 for each interface that must communicate, using the same authentication. 9. exit 10. area area-id 11. authentication [message-digest | null] 12. interface type instance 13. Repeat Step 12 for each interface that must communicate, using the same authentication. 14.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 6 Command or Action Purpose area area-id Enters area configuration mode and configures a backbone area for the OSPF process. Example: RP/0/RP0/CPU0:router(config-ospf)# area 0 Step 7 interface type instance Example: Enters interface configuration mode and associates one or more interfaces to the backbone area.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 15 Command or Action Purpose authentication [message-digest | keychain keychain] | null] Specifies no authentication on POS interface 0/3/0/0, overriding the plain text authentication specified for area 1. • Example: RP/0/RP0/CPU0:router(config-ospf-ar-if)# authentication null Step 16 By default, all of the interfaces configured in the same area inherit the same authentication parameter values of the area.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software 8. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 or Enables OSPF routing for the specified routing process and places the router in router configuration mode.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 7 Command or Action Purpose timers lsa group-pacing seconds Changes the interval at which OSPF link-state LSAs are collected into a group for flooding. • Example: The default is 240 seconds. RP/0/RP0/CPU0:router(config-ospf)# timers lsa group-pacing 1000 Step 8 Saves configuration changes.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software • For a virtual link to be successful, you need a stable router ID at each end of the virtual link. You do not want them to be subject to change, which could happen if they are assigned by default (See the “OSPF Process and Router ID” section on page RC-179 for an explanation of how the router ID is determined.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose show ospf [process-name] (Optional) Displays general information about OSPF routing processes. or show ospfv3 [process-name] • Example: The output displays the router ID of the local router. You need this router ID to configure the other end of the link.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 8 Command or Action Purpose message-digest-key key-id md5 {key | clear key | encrypted key} Defines an OSPF virtual link. Example: RP/0/RP0/CPU0:router(config-ospf-ar-vl)# message-digest-key 4 md5 yourkey • See the “Virtual Link and Transit Area for OSPF” section on page RC-183 to understand a virtual link. • The key-id argument is a number in the range from 1 to 255.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Examples In the following example, the show ospfv3 virtual links EXEC command verifies that the OSPF_VL0 virtual link to the OSPFv3 neighbor is up, the ID of the virtual link interface is 2, and the IPv6 address of the virtual link endpoint is 2003:3000::1. RP/0/RP0/CPU0:router# show ospfv3 virtual-links Virtual Links for OSPFv3 1 Virtual Link OSPF_VL0 to router 10.0.0.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software 7. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 or Enables OSPF routing for the specified routing process and places the router in router configuration mode.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 6 Command or Action Purpose interface type instance Enters interface configuration mode and associates one or more interfaces to the area. Example: RP/0/RP0/CPU0:router(config-ospf-ar)# interface POS 0/2/0/3 Step 7 Saves configuration changes.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software 5. summary-prefix address mask [not-advertise] [tag tag] or summary-prefix ipv6-prefix/prefix-length [not-advertise] [tag tag] 6. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 4 Command or Action Purpose redistribute protocol [process-id] {level-1 | level-1-2 | level-2} [metric metric-value] [metric-type type-value] [match {internal | external [1 | 2} | nssa-external [1 | 2}] [tag tag-value] [route-map map-tag | policy policy-tag] Redistributes OSPF routes from one routing domain to another routing domain.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 5 Command or Action Purpose summary-prefix address mask [not-advertise] [tag tag] (Optional) Creates aggregate addresses for OSPF. or or summary-prefix ipv6-prefix/prefix-length [not-advertise] [tag tag] (Optional) Creates aggregate addresses for OSPFv3. Example: • This command provides external route summarization of the non-OSPF routes.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Configuring OSPF Shortest Path First Throttling This task explains how to configure SPF scheduling in millisecond intervals and potentially delay SPF calculations during times of network instability. This task is optional. Prerequisites See the “OSPF Shortest Path First Throttling” section on page RC-186 for information about OSPF SPF throttling. SUMMARY STEPS 1. configure 2.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 3 Command or Action Purpose router-id {router-id} Configures a router ID for the OSPF process. Note Example: We recommend using a stable IPv4 address as the router ID. RP/0/RP0/CPU0:router(config-ospf)# router-id 192.168.4.3 Step 4 timers throttle spf spf-start spf-hold spf-max-wait Sets SPF throttling timers.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 3 Command or Action Purpose router-id {router-id} Configures a router ID for the OSPF process. Note Example: We recommend using a stable IPv4 address as the router ID. RP/0/RP0/CPU0:router(config-ospf)# router-id 192.168.4.3 Step 4 timers throttle spf spf-start spf-hold spf-max-wait Sets SPF throttling timers.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 3 Command or Action Purpose router-id {router-id} Configures a router ID for the OSPF process. Note Example: We recommend using a stable IPv4 address as the router ID. RP/0/RP0/CPU0:router(config-ospf)# router-id 192.168.4.3 Step 4 timers throttle spf spf-start spf-hold spf-max-wait Sets SPF throttling timers.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 7 Command or Action Purpose end Saves configuration changes.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Non-Stop Forwarding enabled Note For a description of each output display field, see the show ospf command in the OSPF Commands on Cisco IOS XR Software module in the Cisco IOS XR Routing Command Reference document. Configuring Nonstop Forwarding 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.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router ospf process-name Enables OSPF routing for the specified routing process and places the router in router configuration mode.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 5 Command or Action Purpose nsf interval seconds Sets the minimum time between NSF restart attempts. Note Example: RP/0/RP0/CPU0:router(config-ospf)# nsf interval 120 Step 6 When you use this command, the OSPF process must be up for at least 90 seconds before OSPF attempts to perform an NSF restart. Saves configuration changes.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software SUMMARY STEPS 1. configure 2. router ospf process-name 3. router-id {router-id} 4. mpls traffic-eng router-id {ip-address | interface-type interface-instance} 5. area area-id 6. mpls traffic-eng 7. interface type instance 8. end or commit 9.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 5 Command or Action Purpose area area-id Enters area configuration mode and configures an area for the OSPF process. Example: • RP/0/RP0/CPU0:router(config-ospf)# area 0 Step 6 mpls traffic-eng The area-id argument can be entered in dotted-decimal or IPv4 address notation, such as area 1000 or area 0.0.3.232. However, you must choose one form or the other for an area.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Examples This section provides the following output examples: • Sample Output for the show ospf Command Before Configuring MPLS TE, page RC-229 • Sample Output for the show ospf mpls traffic-eng Command, page RC-229 • Sample Output for the show ospf Command After Configuring MPLS TE, page RC-230 Sample Output for the show ospf Command Before Configuring MPLS TE In the following example, the show route ospf EXEC
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software In the following example, the show ospf mpls traffic-eng EXEC command verifies that the MPLS TE links on area instance 3 are configured correctly: RP/0/RP0/CPU0:router# show ospf mpls traffic-eng link OSPF Router with ID (192.168.4.1) (Process ID 1) Area 0 has 1 MPLS TE links. Area instance is 3. Links in hash bucket 53. Link is associated with fragment 0.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software 7. end or commit 8. show ospfv3 [process-name [area-id]] database grace DETAILED STEP Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router ospfv3 process-name Example: RP/0/RP0/CPU0:router(config)# router ospfv3 test Step 3 graceful-restart Enters router configuration mode for OSPFv3.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 7 Command or Action Purpose end Saves configuration changes.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Number of areas in this router is 1. 1 normal 0 stub 0 nssa Graceful Restart enabled, last GR 11:12:26 ago (took 6 secs) Area BACKBONE(0) Number of interfaces in this area is 1 SPF algorithm executed 1 times Number of LSA 6.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Summary Steps 1. configure 2. interface type instance 3. vrf vrf-name 4. ipv4 address ipv4-address mask 5. end 6. router ospf instance-id 7. vrf vrf-name 8. router-id {router-id} 9. redistribute bgp process-id 10. area area-id 11. sham-link source-address destination-address 12. cost cost 13.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 5 Command or Action Purpose end Saves configuration changes.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 11 Command or Action Purpose sham-link source-address destination-address Configures a point-to-point unnumbered interface between two VPN sites. Example: RP/0/RP0/CPU0:router(config-ospf-vrf-ar)# sham-link 10.0.0.1 10.0.0.3 Step 12 Explicitly specifies the cost of sending a packet on an OSPF interface. The specified cost overrides the auto-costing calculated default value for interfaces.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router ospf instance-id Example: Enables OSPF routing for the specified routing process, and places the router in router configuration mode. In this example, the OSPF instance is called isp.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software 4. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router ospf instance-id Example: Enables OSPF routing for the specified routing process, and places the router in router configuration mode. In this example, the OSPF instance is called isp.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software 2. router ospf process-name 3. vrf vrf-name 4. interface type instance 5. ipv4 address ip-address mask 6. ipv6 address ipv6-prefix/prefix-length [eui-64] 7. ipv4 mtu mtu 8. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 7 Command or Action Purpose ipv4 mtu mtu Sets the maximum transmission unit (MTU) size of IPv4 packets sent on the interface. Example: RP/0/RP0/CPU0:router(config-if)# ipv4 mtu 300 Step 8 Saves configuration changes.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software 12. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router ospf process-name Enables OSPF routing for the specified routing process and places the router in router configuration mode.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 7 Command or Action Purpose interface type instance Enters interface configuration mode and associates one or more interfaces to the VRF. Example: RP/0/RP0/CPU0:router(config-ospf-vrf)# interface POS 0/0/0/0 Step 8 Exits interface configuration mode.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Creating Multiple OSPF Instances (OSPF Process and a VRF) This task explains how to create multiple OSPF instances. In this case, the instances are a normal OSPF instance and a VRF instance. SUMMARY STEPS 1. configure 2. router ospf process-name 3. area area-id 4. interface type instance 5. exit 6. vrf vrf-name 7. area area-id 8. interface type instance 9.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 5 Command or Action Purpose exit Enters OSPF configuration mode. Example: RP/0/RP0/CPU0:router(config-ospf-ar)# exit Step 6 vrf vrf-name Creates a VRF instance and enters VRF configuration mode. Example: RP/0/RP0/CPU0:router(config-ospf)# vrf vrf1 Step 7 area area-id Enters area configuration mode and configures an area for a VRF instance under the OSPF process.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Restrictions Multiple areas are created only on native point-to-point interfaces, such as Packet-over-SONET (PoS) or serial. SUMMARY STEPS 1. configure 2. router ospf process-name 3. area area-id 4. interface type instance 5. area area-id 6. multi-area-interface type instance 7. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 5 Command or Action Purpose area area-id Enters area configuration mode and configures an area used for multiple area adjacency. • Example: RP/0/RP0/CPU0:router(config-ospf)# Step 6 area 1 multi-area-interface type instance The area-id argument can be entered in dotted-decimal or IPv4 address notation, such as area 1000 or area 0.0.3.232. However, you must choose one form or the other for an area.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router ospf process-name Enables OSPF routing for the specified routing process and places the router in router configuration mode. Example: Note RP/0/RP0/CPU0:router(config)# router ospf 1 Step 3 Enables LDP IGP interface auto-configuration for an OSPF instance.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software SUMMARY STEPS 1. configure 2. router ospf process-name 3. router-id {router-id} 4. area area-id 5. interface type instance 6. authentication message-digest keychain keychain 7. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 6 Command or Action Purpose authentication message-digest keychain keychain Configures an MD5 keychain. In the example, the ospf_intl keychain must be configured before you attempt this step. Note Example: RP/0/RP0/CPU0:router(config-ospf-ar-if)# authentication message-digest keychain ospf_int1 Step 7 Saves configuration changes.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software The following example shows that keychain authentication is enabled on the Gigabit Ethernet 0/4/0/1 interface: RP/0/RP0/CPU0:router# show ospf 1 interface GigabitEthernet0/4/0/1 GigabitEthernet0/4/0/1 is up, line protocol is up Internet Address 100.10.10.2/24, Area 0 Process ID 1, Router ID 2.2.2.1, Network Type BROADCAST, Cost: 1 Transmit Delay is 1 sec, State DR, Priority 1 Designated Router (ID) 2.2.2.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Configuring Generalized TTL Security Mechanism (GTSM) for OSPF This task explains how to set the security time-to-live mechanism on an interface for GTSM. SUMMARY STEPS 1. configure 2. router ospf process-name 3. router-id {router-id} 4. log adjacency changes [detail] [disable] 5. nsf {cisco [enforce global] | ietf [helper disable]} 6. timers throttle spf spf-start spf-hold spf-max-wait 7.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 5 Command or Action Purpose nsf {cisco [enforce global] | ietf [helper disable]} (Optional) Configures NSF OSPF protocol. The example enables graceful restart. Example: RP/0/RP0/CPU0:router(config-ospf)# nsf ietf Step 6 timers throttle spf spf-start spf-hold spf-max-wait (Optional) Sets SPF throttling timers.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Step 10 Command or Action Purpose end Saves configuration changes.
Implementing OSPF on Cisco IOS XR Software How to Implement OSPF on Cisco IOS XR Software Verifying OSPF Configuration and Operation This task explains how to verify the configuration and operation of OSPF. SUMMARY STEPS 1. show {ospf | ospfv3} [process-name] 2. show {ospf | ospfv3} [process-name] border-routers [router-id] 3. show {ospf | ospfv3}[process-name] database 4. show {ospf | ospfv3} [process-name] [area-id] flood-list interface type instance 5.
Implementing OSPF on Cisco IOS XR Software Configuration Examples for Implementing OSPF on Cisco IOS XR Software Step 6 Command or Action Purpose show {ospf | ospfv3}[process-name] [area-id] neighbor [interface-type interface-instance] [neighbor-id] [detail] (Optional) Displays OSPF neighbor information on an individual interface basis.
Implementing OSPF on Cisco IOS XR Software Configuration Examples for Implementing OSPF on Cisco IOS XR Software Cisco IOS XR Software Configuration interface POS 0/3/0/0 ip address 10.1.2.1 255.255.255.255 negotiation auto ! router ospf 1 router-id 10.2.3.4 area 0 interface POS 0/3/0/0 ! ! The following example shows how OSPF interface parameters are configured for an area in Cisco IOS XR software.
Implementing OSPF on Cisco IOS XR Software Configuration Examples for Implementing OSPF on Cisco IOS XR Software CLI Inheritance and Precedence for OSPF Version 2: Example The following example configures the cost parameter at different hierarchical levels of the OSPF topology, and illustrates how the parameter is inherited and how only one setting takes precedence. According to the precedence rule, the most explicit configuration is used.
Implementing OSPF on Cisco IOS XR Software Configuration Examples for Implementing OSPF on Cisco IOS XR Software 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 Cisco IOS XR MPLS Configuration Guide for information. In this example, loopback interface 0 is associated with area 0 and MPLS TE is configured within area 0: interface Loopback 0 address 10.10.
Implementing OSPF on Cisco IOS XR Software Configuration Examples for Implementing OSPF on Cisco IOS XR Software interface POS 0/2/0/1 area 1 stub no-summary interface POS 0/2/0/0 Route Redistribution for OSPFv3: Example The following example uses prefix lists to limit the routes redistributed from other protocols. Only routes with 9898:1000 in the upper 32 bits and with prefix lengths from 32 to 64 are redistributed from BGP 42. Only routes not matching this pattern are redistributed from BGP 1956.
Implementing OSPF on Cisco IOS XR Software Configuration Examples for Implementing OSPF on Cisco IOS XR Software Virtual Link Configured with MD5 Authentication for OSPF Version 2: Example The following examples show how to configure a virtual link to your backbone and apply MD5 authentication. You must perform the steps described on both ABRs at each end of the virtual link.
Implementing OSPF on Cisco IOS XR Software Configuration Examples for Implementing OSPF on Cisco IOS XR Software ! interface GigabitEthernet0/2/0/2 vrf vrf_1 ipv4 address 100.10.10.2 255.255.255.0 ! interface GigabitEthernet0/2/0/3 ipv4 address 100.20.10.2 255.255.255.0 ! ! route-policy pass-all pass end-policy ! router ospf 1 log adjacency changes router-id 2.2.2.2 vrf vrf_1 router-id 22.22.22.2 domain-id type 0005 value 111122223333 domain-tag 140 nsf ietf redistribute bgp 10 area 0 sham-link 10.0.1.
Implementing OSPF on Cisco IOS XR Software Where to Go Next mpls ldp router-id 2.2.2.1 interface GigabitEthernet0/2/0/3 ! ! end Where to Go Next To configure route maps through the RPL for OSPF Version 2, see the Implementing Routing Policy on Cisco IOS XR Software document. To build an MPLS TE topology, create tunnels, and configure forwarding over the tunnel for OSPF Version 2; see the Cisco IOS XR MPLS Configuration Guide.
Implementing OSPF on Cisco IOS XR Software Additional References 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.
Implementing OSPF on Cisco IOS XR Software Additional References Technical Assistance Description Link http://www.cisco.com/techsupport The Cisco Technical Support website contains thousands of pages of searchable technical content, including links to products, technologies, solutions, technical tips, and tools. Registered Cisco.com users can log in from this page to access even more content.
Implementing IS-IS on Cisco IOS XR Software Integrated Intermediate System-to-Intermediate System (IS-IS), Internet Protocol Version 4 (IPv4), is a standards-based Interior Gateway Protocol (IGP). Cisco IOS XR implements the IP routing capabilities described in International Organization for Standardization (ISO)/International Engineering Consortium (IEC) 10589 and RFC 1995, and adds the standard extensions for single topology and multitopology IS-IS for IP Version 6 (IPv6).
Implementing IS-IS on Cisco IOS XR Software Contents Release 3.5.0 Release 3.6.0 Support was added for the following features: • IS-IS keychain support for hello and LSP authentication and hitless key rollover • IP fast reroute loop-free alternates computation • Label Distribution Protocol (LDP) Interior Gateway Protocol (IGP) auto-configuration No modification.
Implementing IS-IS on Cisco IOS XR Software Information About Implementing IS-IS on Cisco IOS XR Software • Maximum LSP Lifetime and Refresh Interval, page RC-270 • Overload Bit Configuration During Multitopology Operation, page RC-270 • Single-Topology IPv6 Support, page RC-271 • Multitopology IPv6 Support, page RC-271 • IS-IS Authentication, page RC-271 • Nonstop Forwarding, page RC-272 • Multi-Instance IS-IS, page RC-272 • Multiprotocol Label Switching Traffic Engineering, page RC-273 •
Implementing IS-IS on Cisco IOS XR Software Information About Implementing IS-IS on Cisco IOS XR Software Note • Single topology IPv6 • Multitopology • Nonstop forwarding (NSF), both Cisco proprietary and IETF • Three-way handshake • Mesh groups • Multiple IS-IS instances • Configuration of a broadcast medium connecting two networking devices as a point-to-point link • Fast-flooding with different threads handling flooding and shortest path first (SPF).
Implementing IS-IS on Cisco IOS XR Software Information About Implementing IS-IS on Cisco IOS XR Software Interface Address Family Configuration Mode The following example shows how to enter interface address family configuration mode: RP/0/RP0/CPU0:router(config)# router isis isp RP/0/RP0/CPU0:router(config-isis)# interface POS0/3/0/0 RP/0/RP0/CPU0:router(config-isis-if)# address-family ipv4 unicast RP/0/RP0/CPU0:router(config-isis-if-af)# IS-IS Interfaces IS-IS interfaces can be configured as one of the
Implementing IS-IS on Cisco IOS XR Software Information About Implementing IS-IS on Cisco IOS XR Software Both techniques operate by restricting the flooding of LSPs in some fashion.
Implementing IS-IS on Cisco IOS XR Software Information About Implementing IS-IS on Cisco IOS XR Software Single-Topology IPv6 Support Single-topology IPv6 support on Cisco IOS XR software allows IS-IS for IPv6 to be configured on interfaces along with an IPv4 network protocol.
Implementing IS-IS on Cisco IOS XR Software Information About Implementing IS-IS on Cisco IOS XR Software 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. When a router restarts, all routing peers of that device usually detect that the device went down and then came back up.
Implementing IS-IS on Cisco IOS XR Software Information About Implementing IS-IS on Cisco IOS XR Software Because the Routing Information Base (RIB) treats each of the IS-IS instances as equal routing clients, you must be careful when redistributing routes between IS-IS instances. The RIB does not know to prefer Level 1 routes over Level 2 routes.
Implementing IS-IS on Cisco IOS XR Software Information About Implementing IS-IS on Cisco IOS XR Software the backbone. The attached bit is usually set automatically as the router discovers other areas while computing its Level 2 SPF route. The bit is automatically cleared when the router becomes detached from the backbone.
Implementing IS-IS on Cisco IOS XR Software Information About Implementing IS-IS on Cisco IOS XR Software Multicast Topology Support Using IS-IS Multicast topology support allows for the configuration of IS-IS multicast topologies for IPv4 or IPv6 routing. IS-IS maintains a separate topology for multicast and runs a separate Shortest Path First (SPF) over the multicast topology.
Implementing IS-IS on Cisco IOS XR Software Information About Implementing IS-IS on Cisco IOS XR Software Label Distribution Protocol IGP Auto-configuration Label Distribution Protocol (LDP) Interior Gateway Protocol (IGP) auto-configuration simplifies the procedure to enable LDP on a set of interfaces used by an IGP instance. LDP IGP auto-configuration can be used on a large number interfaces (for example, when LDP is used for transport in the core) and on multiple IGP instances simultaneously.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software Note IPFRR is supported on the Cisco CRS-1 router. IPFRR LFA is different from Multiprotocol Label Switching (MPLS) as it is applicable to networks using conventional IP routing and forwarding. See Multiprotocol Label Switching Configuration Guide for information on configuring MPLS IPFRR.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software SUMMARY STEPS 1. configure 2. router isis instance-id 3. net network-entity-title 4. is-type {level-1 | level-1-2 | level-2-only} 5. end or commit 6. show isis [instance instance-id] protocol DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software Step 4 Command or Action Purpose is-type {level-1 | level-1-2 | level-2-only} (Optional) Configures the system type (area or backbone router). Example: • By default, every IS-IS instance acts as a level-1-2 router. • The level-1 keyword configures the software to perform Level 1 (intra-area) routing only. Only Level 1 adjacencies are established. The software learns about destinations inside its area only.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software Configuring Single Topology for IS-IS After an IS-IS instance is enabled, it must be configured to compute routes for a specific network topology. This task explains how to configure the operation of the IS-IS protocol on an interface for an IPv4 or IPv6 topology.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software 13. end or commit 14. show isis [instance instance-id] interface [type instance] [detail] [level {1 | 2}] 15. show isis [instance instance-id] topology [systemid system-id] [level {1 | 2}] [summary] DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 interface type number Enters interface configuration mode.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software Step 3 Command or Action Purpose ipv4 address address mask Defines the IPv4 address for the interface. An IP address is required on all interfaces in an area enabled for IS-IS if any one interface is configured for IS-IS routing.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software Step 6 Command or Action Purpose net network-entity-title Configures NETs for the routing instance. • Specify a NET for each routing instance if you are configuring multi-instance IS-IS. You can specify a name for a NET and for an address. • 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.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software Step 13 Command or Action Purpose end Saves configuration changes.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software Controlling LSP Flooding for IS-IS Flooding of LSPs can limit network scalability. You can control LSP flooding by tuning your LSP database parameters on the router globally or on the interface. This task is optional. Many of the commands to control LSP flooding contain an option to specify the level to which they apply. Without the option, the command applies to both levels.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 Enables IS-IS routing for the specified routing instance, and places the router in router configuration mode.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software Step 8 Command or Action Purpose ignore-lsp-errors disable (Optional) Sets the router to purge LSPs received with checksum errors. Example: RP/0/RP0/CPU0:router(config-isis)# ignore-lsp-errors disable Step 9 interface type instance Enters interface configuration mode.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software Step 15 Command or Action Purpose end Saves configuration changes.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software 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.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software Step 4 Command or Action Purpose nsf interface-expires number Configures the number of resends of an acknowledged NSF-restart acknowledgment. Example: • RP/0/RP0/CPU0:router(config-isis)# nsf interface-expires 1 Step 5 nsf interface-timer seconds If the resend limit is reached during the NSF restart, the restart falls back to a cold restart.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software Configuring Authentication for IS-IS This task explains how to configure authentication for IS-IS. This task is optional. SUMMARY STEPS 1. configure 2. router isis instance-id 3. lsp-password {hmac-md5 | text} {clear | encrypted} password [level {1 | 2}] [send-only] [snp send-only] 4. interface type instance 5. hello-password {hmac-md5 | text} {clear | encrypted} password [level {1 | 2}] [send-only] 6.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software Step 3 Command or Action Purpose lsp-password {hmac-md5 | text} {clear | encrypted} password [level {1 | 2}] [send-only] [snp send-only] Configures the LSP authentication password. Example: RP/0/RP0/CPU0:router(config-isis)# lsp-password hmac-md5 clear password1 level 1 Step 4 interface type instance • The hmac-md5 keyword specifies that the password is used in HMAC-MD5 authentication.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software Step 5 Command or Action Purpose hello-password {hmac-md5 | text} {clear | encrypted} password [level {1 | 2}] [send-only] Configures the authentication password for an IS-IS interface. Example: RP/0/RP0/CPU0:router(config-isis-if)# hello-password text clear mypassword Step 6 Saves configuration changes.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software 6. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software Step 5 Command or Action Purpose hello-password keychain keychain-name [level {1 | 2}] [send-only] Configures the authentication password for an IS-IS interface. Example: RP/0/RP0/CPU0:router(config-isis-if)# hello-password keychain isis_b Step 6 Saves configuration changes.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software SUMMARY STEPS 1. configure 2. router isis instance-id 3. address-family {ipv4 | ipv6} [unicast | multicast] 4. mpls traffic-eng level {1 | 2} 5. mpls traffic-eng router-id {ip-address | interface-name interface-instance} 6. metric-style wide [level {1 | 2}] 7. end or commit 8. show isis [instance instance-id] mpls traffic-eng tunnel 9.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software Step 6 Command or Action Purpose metric-style wide [level {1 | 2}] Configures a router to generate and accept only wide link metrics in the Level 1 area. Example: RP/0/RP0/CPU0:router(config-isis-af)# metric-style wide level 1 Step 7 end or Saves configuration changes.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software Tuning Adjacencies for IS-IS This task explains how to enable logging of adjacency state changes, alter the timers for IS-IS adjacency packets, and display various aspects of adjacency state. Tuning your IS-IS adjacencies increases network stability when links are congested. This task is optional.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router isis instance-id Example: Enables IS-IS routing for the specified routing instance, and places the router in router configuration mode.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software Step 8 Command or Action Purpose hello-password {hmac-md5 | text} {clear | encrypted} password [level {1 | 2}] [send-only] Specifies that this system include authentication in the hello packets and requires successful authentication of the hello packet from the neighbor to establish an adjacency.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software Step 12 Command or Action Purpose show isis [instance instance-id] interface [type instance] [brief | detail] [level {1 | 2}] (Optional) Displays information about the IS-IS interface.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router isis instance-id Example: Enables IS-IS routing for the specified routing instance, and places the router in router configuration mode.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software Step 6 Command or Action Purpose end Saves configuration changes.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software 8. maximum-paths route-number 9. distance weight [address/prefix-length [route-list-name]] 10. set-attached-bit 11. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software Step 7 Command or Action Purpose summary-prefix address/prefix-length [level {1 | 2}] (Optional) Allows a Level 1-2 router to summarize Level 1 IPv4 and IPv6 prefixes at Level 2, instead of advertising the Level 1 prefixes directly when the router advertises the summary. or summary-prefix ipv6-prefix/prefix-length [level {1 | 2}] Example: RP/0/RP0/CPU0:router(config-isis-af)# summary-prefix 10.1.0.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software Step 10 Command or Action Purpose set-attached-bit (Optional) Configures an IS-IS instance with an attached bit in the Level 1 LSP. Example: RP/0/RP0/CPU0:router(config-isis-af)# set-attached-bit Step 11 Saves configuration changes.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router isis instance-id Example: Enables IS-IS routing for the specified routing process, and places the router in router configuration mode.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software Enabling Multicast-Intact This optional task describes how to enable multicast-intact for IS-IS routes that use IPv4 and IPv6 addresses. SUMMARY STEPS 1. configure 2. router isis instance-id 3. address-family {ipv4 | ipv6} [unicast | multicast] 4. mpls traffic-eng multicast-intact 5. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software Step 4 Command or Action Purpose mpls traffic-eng multicast-intact Enables multicast-intact. Example: RP/0/RP0/CPU0:router(config-isis-af)# mpls traffic-eng multicast-intact Step 5 Saves configuration changes.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router isis instance-id Example: Enables IS-IS routing for the specified routing process, and places the router in router configuration mode. In this example, the IS-IS instance is called isp.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software Step 9 Command or Action Purpose end Saves configuration changes.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router isis instance-id Example: Enables IS-IS routing for the specified routing process, and places the router in router configuration mode. In this example, the IS-IS instance is called isp.
Implementing IS-IS on Cisco IOS XR Software How to Implement IS-IS on Cisco IOS XR Software Configuring IP Fast Reroute Loop-free Alternate This optional task describes how to enable the IP fast reroute (IPFRR) loop-free alternate (LFA) computation to converge traffic flows around link failures. Note To enable node protection on broadcast links, IPFRR and bidirectional forwarding detection (BFD) must be enabled on the interface under IS-IS. Restrictions IPFRR is supported on the Cisco CRS-1 router only.
Implementing IS-IS on Cisco IOS XR Software Configuration Examples for Implementing IS-IS on Cisco IOS XR Software Step 4 Command or Action Purpose circuit-type {level-1 | level-2-only} (Optional) Configures the type of adjacency. Example: RP/0/RP0/CPU0:router(config-isis-if)# circuit-type level-1 Step 5 address-family ipv4 [unicast] Specifies the IPv4 address family, and enters router address family configuration mode. • Example: This example specifies the unicast IPv6 address family.
Implementing IS-IS on Cisco IOS XR Software Configuration Examples for Implementing IS-IS on Cisco IOS XR Software Configuring Single-Topology IS-IS for IPv6: Example The following example shows single-topology mode being enabled. An IS-IS instance is created, the NET is defined, IPv6 is configured along with IPv4 on an interface, and IPv4 link topology is used for IPv6. This configuration allows POS interface 0/3/0/0 to form adjacencies for both IPv4 and IPv6 addresses. router isis isp net 49.0000.0000.
Implementing IS-IS on Cisco IOS XR Software Where to Go Next ! router isis 2 is-type level-1 net 49.0002.0001.0001.0002.00 address-family ipv4 unicast set-attached-bit ! interface POS0/1/0/0 address-family ipv4 unicast Tagging Routes: Example The following example show how to tag routes. route-policy isis-tag-55 end-policy ! route-policy isis-tag-555 if destination in (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.
Implementing IS-IS on Cisco IOS XR Software Additional References Additional References The following sections provide references related to implementing IS-IS on Cisco IOS XR software. Related Documents Related Topic Document Title IS-IS commands: complete command syntax, command modes, command history, defaults, usage guidelines, and examples Cisco IOS XR Routing Command Reference, Release 3.
Implementing IS-IS on Cisco IOS XR Software 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.
Implementing and Monitoring RIB on Cisco IOS XR Software Routing Information Base (RIB) is a distributed collection of information about routing connectivity among all nodes of a network. Each router maintains a RIB containing the routing information for that router. RIB stores the best routes from all routing protocols that are running on the system. This module describes the tasks you need to perform to implement and monitor RIB on your Cisco IOS XR network.
Implementing and Monitoring RIB on Cisco IOS XR Software Contents Contents • Prerequisites for Implementing RIB on Cisco IOS XR Software, page RC-320 • Information About RIB Configuration, page RC-320 • How to Deploy and Monitor RIB, page RC-324 • Configuration Examples for RIB Monitoring, page RC-327 • Where to Go Next, page RC-330 • Additional References, page RC-330 Prerequisites for Implementing RIB on Cisco IOS XR Software • To use this command, you must be in a user group associated with
Implementing and Monitoring RIB on Cisco IOS XR Software Information About RIB Configuration Within a protocol, routes are selected based on the metrics in use by that protocol. A protocol downloads its best routes (lowest or tied metric) to RIB. RIB selects the best overall route by comparing the administrative distance of the associated protocol.
Implementing and Monitoring RIB on Cisco IOS XR Software Information About RIB Configuration Note Changing the administrative distance of a protocol on some but not all routers can lead to routing loops and other undesirable behavior. Doing so is not recommended. RIB Support for IPv4 and IPv6 In Cisco IOS XR software, RIB tables support multicast and unicast routing.
Implementing and Monitoring RIB on Cisco IOS XR Software Information About RIB Configuration RIB supports 6PE and 6VPE by providing 6VPE next hops. The next-hop information is stored in an opaque database in RIB, which is populated by protocol clients with data to be sent to the Forwarding Information Base (FIB). For detailed information about configuring 6PE and 6VPE over MPLS, see Cisco IOS XR Multiprotocol Label Switching Configuration Guide.
Implementing and Monitoring RIB on Cisco IOS XR Software How to Deploy and Monitor RIB How to Deploy and Monitor RIB To deploy and monitor RIB, you must understand the following concepts: • Verifying RIB Configuration Using the Routing Table, page RC-324 (required) • Verifying Networking and Routing Problems, page RC-324 (required) • Disabling RIB Next-hop Dampening, page RC-326 (optional) Verifying RIB Configuration Using the Routing Table Perform this task to verify the RIB configuration to ensure
Implementing and Monitoring RIB on Cisco IOS XR Software How to Deploy and Monitor RIB 2. show route [vrf {vrf-name | all}] [afi-all | ipv4 | ipv6] [unicast | multicast | safi-all] backup [ip-address] [standby] 3. show route [vrf {vrf-name | all}] [ipv4 | ipv6] [unicast | multicast | safi-all] best-local ip-address [standby] 4. show route [vrf {vrf-name | all}] [afi-all | ipv4 | ipv6] [unicast | multicast | safi-all] connected [standby] 5.
Implementing and Monitoring RIB on Cisco IOS XR Software How to Deploy and Monitor RIB Step 5 Command or Action Purpose show route [vrf {vrf-name | all}] [afi-all | ipv4 | ipv6] [unicast | multicast | safi-all] local [interface] [standby] Displays local routes for receive entries in the routing table.
Implementing and Monitoring RIB on Cisco IOS XR Software Configuration Examples for RIB Monitoring DETAILED STEPS Step 1 Command or Action Purpose router rib Enters RIB configuration mode. Example: RP/0/RP0/CPU0:router# route rib Step 2 address-family {ipv4 | ipv6} next-hop dampening disable Disables next-hop dampening for IPv4 address families. Example: RP/0/RP0/CPU0:router(config-rib)# address family ipv4 next-hop dampening disable Step 3 Saves configuration changes.
Implementing and Monitoring RIB on Cisco IOS XR Software Configuration Examples for RIB Monitoring • Output of show route longer-prefixes Command: Example, page RC-329 • Output of show route next-hop Command: Example, page RC-329 Output of show route Command: Example The following is sample output from the show route command when entered without an address: RP/0/RP0/CPU0:router# show route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF
Implementing and Monitoring RIB on Cisco IOS XR Software Configuration Examples for RIB Monitoring Output of show route connected Command: Example The following is sample output from the show route connected command: RP/0/RP0/CPU0:router# show route connected C C C 10.2.210.0/24 is directly connected, 1d21h, Ethernet0 172.20.16.0/24 is directly connected, 1d21h, ATM4/0.1 10.6.100.
Implementing and Monitoring RIB on Cisco IOS XR Software Where to Go Next 172.29.52.1, via MgmtEth0/RP1/CPU0/0 Route metric is 0 Where to Go Next For additional information on the protocols that interact with RIB, you may want to see the following publications: • Implementing MPLS Layer 3 VPNs in Cisco IOS XR Multiprotocol Label Switching Configuration Guide. • Implementing BGP on Cisco IOS XR Software in Cisco IOS XR Routing Configuration Guide.
Implementing and Monitoring RIB on Cisco IOS XR Software Additional References Related Documents Related Topic Document Title Routing Information Base commands: complete RIB Commands on Cisco IOS XR Software in Cisco IOS XR Routing command syntax, command modes, command history, Command Reference defaults, usage guidelines, and examples BGP commands: complete command syntax, command BGP Commands on Cisco IOS XR Software, in Cisco IOS XR modes, command history, defaults, usage guidelines, Routing Command
Implementing and Monitoring RIB on Cisco IOS XR Software 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 Title No new or modified RFCs are supported by this feature, and support for existing RFCs has not been modified by this feature.
Implementing RIP on Cisco IOS XR Software The Routing Information Protocol (RIP) is a classic distance vector Interior Gateway Protocol (IGP) designed to exchange information within an autonomous system (AS) of a small network. This module describes the concepts and tasks you need to implement basic RIP routing on your router. Cisco IOS XR software supports a standard implementation of RIP Version 2 (RIPv2) that supports backward compatibility with RIP Version 1 (RIPv1) as specified by RFC2453.
Implementing RIP on Cisco IOS XR Software Information About Implementing RIP on Cisco IOS XR Software Information About Implementing RIP on Cisco IOS XR Software • Prerequisites for Implementing RIP on Cisco IOS XR Software, page RC-334 • RIP Functional Overview, page RC-334 • Split Horizon for RIP, page RC-335 • Route Timers for RIP, page RC-335 • Route Redistribution for RIP, page RC-336 • Default Administrative Distances for RIP, page RC-336 • Routing Policy Options for RIP, page RC-337 Pr
Implementing RIP on Cisco IOS XR Software Information About Implementing RIP on Cisco IOS XR Software Here are some good reasons to use RIP: • Compatible with diverse network devices • Best for small networks, because there is very little overhead, in terms of bandwidth used, configuration, and management time. • Support for legacy host systems Because of RIP’s ease of use, it is implemented in networks worldwide.
Implementing RIP on Cisco IOS XR Software Information About Implementing RIP on Cisco IOS XR Software Route Redistribution for RIP Redistribution is a feature that allows different routing domains, to exchange routing information. Networking devices that route between different routing domains are called boundary routers, and it is these devices that inject the routes from one routing protocol into another.
Implementing RIP on Cisco IOS XR Software How to Implement RIP on Cisco IOS XR Software Table 1 Default Administrative Distances of Routing Protocols (continued) Routing Protocols Administrative Distance Value IS-IS 115 RIP version 1 and 2 120 External EIGRP 170 Internal BGP 200 Unknown 255 An administrative distance is an integer from 0 to 255. In general, the higher the value, the lower the trust rating.
Implementing RIP on Cisco IOS XR Software How to Implement RIP on Cisco IOS XR Software Enabling RIP This task enables RIP routing and establishes a RIP routing process. Prerequisites Although you can configure RIP before you configure an IP address, no RIP routing occurs until at least one IP address is configured. SUMMARY STEPS 1. configure 2. router rip 3. neighbor ip-address 4. broadcast-for-v2 5. interface type instance 6. receive version {1 | 2 | 1 2} 7. send version {1 | 2 | 1 2} 8.
Implementing RIP on Cisco IOS XR Software How to Implement RIP on Cisco IOS XR Software Step 5 Command or Action Purpose interface type instance (Optional) Defines the interfaces on which the RIP routing protocol runs.
Implementing RIP on Cisco IOS XR Software How to Implement RIP on Cisco IOS XR Software 5. output-delay delay 6. nsf 7. interface type instance 8. metric-zero-accept 9. split-horizon disable 10. poison-reverse 11. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router rip Configures a RIP routing process.
Implementing RIP on Cisco IOS XR Software How to Implement RIP on Cisco IOS XR Software Step 7 Command or Action Purpose interface type instance (Optional) Defines the interfaces on which the RIP routing protocol runs. Example: RP/0/RP0/CPU0:router(config-rip)# interface pos 0/1/0/0 Step 8 metric-zero-accept Example: (Optional) Allows the networking device to accept route entries received in update packets with a metric of zero (0). The received route entry is set to a metric of one (1).
Implementing RIP on Cisco IOS XR Software How to Implement RIP on Cisco IOS XR Software Control Routing Information This task describes how to control or prevent routing update exchange and propagation. Some reasons to control or prevent routing updates are: • To slow or stop the update traffic on a WAN link—If you do not control update traffic on an on-demand WAN link, the link remains up constantly. By default, RIP routing updates occur every 30 seconds.
Implementing RIP on Cisco IOS XR Software How to Implement RIP on Cisco IOS XR Software Step 3 Command or Action Purpose neighbor ip-address (Optional) Defines a neighboring router with which to exchange RIP protocol information. Example: RP/0/RP0/CPU0:router(config-rip)# neighbor 172.160.1.2 Step 4 interface type instance (Optional) Defines the interfaces on which the RIP routing protocol runs.
Implementing RIP on Cisco IOS XR Software How to Implement RIP on Cisco IOS XR Software Step 8 Command or Action Purpose route-policy {in | out} (Optional) Applies a routing policy to updates advertised to or received from a RIP neighbor. Example: RP/0/RP0/CPU0:router(config-rip-if)# route-policy out Step 9 Saves configuration changes.
Implementing RIP on Cisco IOS XR Software How to Implement RIP on Cisco IOS XR Software 5. end or commit 6. configure 7. router rip 8. route-policy route-policy-name {in | out} 9. end or commit] DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 route-policy name Defines a route policy and enters route-policy configuration mode.
Implementing RIP on Cisco IOS XR Software How to Implement RIP on Cisco IOS XR Software Step 5 Command or Action Purpose end or commit Saves configuration changes.
Implementing RIP on Cisco IOS XR Software Configuration Examples for Implementing RIP on Cisco IOS XR Software Step 8 Command or Action Purpose route-policy route-policy-name {in | out} Applies a routing policy to updates advertised to or received from an RIP neighbor. Example: RP/0/RP0/CPU0:router(config-rip)# route-policy IN in Step 9 Saves configuration changes.
Implementing RIP on Cisco IOS XR Software Configuration Examples for Implementing RIP on Cisco IOS XR Software 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 ! ! Configuring RIP on the Provider Edge: Example The following example shows how to configure basic RIP on the PE with two VPN routing and forwarding (VRF) instances.
Implementing RIP on Cisco IOS XR Software Configuration Examples for Implementing RIP on Cisco IOS XR Software Configuring Redistribution for RIP: Example The following example shows how to redistribute Border Gateway Protocol (BGP) and static routes into RIP. The RIP metric used for redistributed routes is determined by the route policy. If a route policy is not configured or the route policy does not set RIP metric, the metric is determined based on the redistributed protocol.
Implementing RIP on Cisco IOS XR Software Additional References route-policy infil if destination in pf2 then add rip-metric 2 pass endif end-policy ! router rip interface GigabitEthernet0/6/0/0 route-policy policy_in in ! interface GigabitEthernet0/6/0/2 ! route-policy infil in route-policy pass-all out Configuring Passive Interfaces and Explicit Neighbors for RIP: Example The following example shows how to configure passive interfaces and explicit neighbors.
Implementing RIP on Cisco IOS XR Software Additional References Related Documents Related Topic Document Title RIP commands: complete command syntax, command Cisco IOS XR Routing Command Reference modes, command history, defaults, usage guidelines, and examples MPLS VPN support for RIP feature information Implementing MPLS Traffic Engineering on Cisco IOS XR Software module in Cisco IOS XR Multiprotocol Label Switching Configuration Guide Site of Origin (SoO) support for RIP feature information Implem
Implementing RIP on Cisco IOS XR Software Additional References Technical Assistance Description Link http://www.cisco.com/techsupport The Cisco Technical Support website contains thousands of pages of searchable technical content, including links to products, technologies, solutions, technical tips, and tools. Registered Cisco.com users can log in from this page to access even more content.
Implementing Routing Policy on Cisco IOS XR Software A routing policy instructs the router to inspect routes, filter them, and potentially modify their attributes as they are accepted from a peer, advertised to a peer, or redistributed from one routing protocol to another. Routing protocols make decisions to advertise, aggregate, discard, distribute, export, hold, import, redistribute and otherwise modify routes based on configured routing policy.
Implementing Routing Policy on Cisco IOS XR Software Contents Contents • Prerequisites for Implementing Routing Policy on Cisco IOS XR Software, page RC-354 • Information About Implementing Routing Policy on Cisco IOS XR Software, page RC-354 • How to Implement Routing Policy on Cisco IOS XR Software, page RC-408 • Configuration Examples for Implementing Routing Policy on Cisco IOS XR Software, page RC-413 • Additional References, page RC-416 Prerequisites for Implementing Routing Policy on Cisco
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software • Routing Policy Language Components, page RC-360 • Routing Policy Language Usage, page RC-361 Routing Policy Language Overview RPL was developed to support large-scale routing configurations. RPL has several fundamental capabilities that differ from those present in configurations oriented to traditional route maps, access lists, and prefix lists.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software Sets In this context, the term set is used in its mathematical sense to mean an unordered collection of unique elements. The policy language provides sets as a container for groups of values for matching purposes. Sets are used in conditional expressions. The elements of the set are separated by commas. Null (empty) sets are allowed.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software as-path-set An AS path set comprises operations for matching an AS path attribute. The only matching operation is a regular expression match. Named Set Form The named set form uses the ios-regex keyword to indicate the type of regular expression and requires single quotation marks around the regular expression.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software RPL also provides a facility for using wildcards in community specifications. A wildcard is specified by inserting an asterisk (*) in place of one of the 16-bit portions of the community specification; the wildcard indicates that any value for that portion of the community matches.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software prefix-set A prefix-set holds IPv4 or IPv6 prefix match specifications, each of which has four parts: an address, a mask length, a minimum matching length, and a maximum matching length. The address is required, but the other three parts are optional. The address is a standard dotted-decimal IPv4 or colon-separated hexadecimal IPv6 address.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software Neither the minimum length nor maximum length is valid without a mask length. For IPv4, the minimum length must be less than 32, the maximum length of an IPv4 prefix. For IPv6, the minimum length must be less than 128, the maximum length of an IPv6 prefix. The maximum length must be equal to or greater than the minimum length.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software The fourth component is the policy clients (the routing protocols). This component calls the execution engine at the appropriate times to have a given policy be applied to a given route, and then perform some number of actions.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software Set community based on MED The following example shows how the policy tests the MED of a route and modifies the community attribute of the route based on the value of the MED. If the MED value is 127, the policy adds the community 123:456 to the route. If the MED value is 63, the policy adds the value 123:789 to the community attribute of the route.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software endif end-policy Routing Policy Configuration Basics Route policies comprise series of statements and expressions that are bracketed with the route-policy and end-policy keywords. Rather than a collection of individual commands (one for each line), the statements within a route policy have context relative to each other.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software You may have as many levels of hierarchy as desired. However, many levels may be difficult to maintain and understand. Parameterization In addition to supporting reuse of policies using the apply statement, policies can be defined that allow for parameterization of some of the attributes. The following example shows how to define a parameterized policy named param-example.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software In the example below, we define a parameterized policy "param-example". In this example, the policy takes two parameters "$mymed" and “$prefixset”. Parameters always begin with a dollar sign, and consist otherwise of any alphanumeric characters. Parameters can be substituted into any attribute that takes a parameter.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software • When Attributes Are Modified, page RC-367 • Default Drop Disposition, page RC-367 • Control Flow, page RC-368 • Policy Verification, page RC-368 Boolean Operator Precedence Boolean expressions are evaluated in order of operator precedence, from left to right. The highest precedence operator is not, followed by and, and then or.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software set community (10:24) additive set community (10:25) additive end-policy This policy sets the community string on the route to contain all three community values: 10:23, 10:24, and 10:25. The second of these cases is AS path prepending. Consider a policy of the form: route-policy prepend-example prepend as-path 2.5 3 prepend as-path 666.5 2 end-policy This policy prepends 666.5 666.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software Control Flow Policy statements are processed sequentially in the order in which they appear in the configuration. Policies that hierarchically reference other policy blocks are processed as if the referenced policy blocks had been directly substituted inline.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software reference while defining a policy need not exist in the configuration. Thus, a user can define a policy sample that references the policy bar using an apply statement even if the policy bar does not exist. Similarly, a user can enter a policy statement that refers to a nonexistent set. However, the existence of all referenced policies and sets is enforced when a policy is attached.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software Policy Statements Four types of policy statements exist: remark, disposition (drop and pass), action (set), and if (comparator). Remark A remark is text attached to policy configuration but otherwise ignored by the policy language parser. Remarks are useful for documenting parts of a policy.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software By default, a route is dropped at the end of policy processing unless either the policy modifies a route attribute or it passes the route by means of an explicit pass statement. For example, if route-policy B is applied within route-policy A, then execution continues from policy A to policy B and back to policy A, provided the prefix is not dropped by policy B.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software Because the effect of an explicit drop statement is immediate, routes in 10.0.0.0/16 le 32 are dropped without any further policy processing. 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.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software The statements within an if statement may themselves be if statements, as shown in the following example: if community matches-any (12:34,56:78) then if med eq 150 then drop endif set local-preference 100 endif This policy example sets the value of the local preference attribute to 100 on any route that has a community value of 12:34 or 56:78 associated with it.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software With a set of parentheses to express the precedence, the result is the following: med eq 10 or ((not destination in (10.1.3.0/24)) and community matches-any ([12..34]:[56..78]) The following is another example of a complex expression: (origin is igp or origin is incomplete or not med eq 42) and next-hop in (10.0.2.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software Note The protocol configuration rejects attempts to attach policies that perform unsupported operations. The following sections describe the protocol attach points, including information on the attributes (commands) and operations that are valid for each attach point.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software evaluated by the named policy pass the policy. More specifics of the aggregate are filtered using the suppress-route keyword. Any actions taken to set attributes in the route affect attributes on the aggregate. In the policy language, the configuration is controlled by which routes pass the policy.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software The following policy sets dampening values for BGP IPv4 unicast routes. Those routes that are more specific than a /25 take longer to recover after they have been dampened than routes that are less specific than /25. route-policy sample_damp if destination in (0.0.0.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software endif end-policy router bgp 2 neighbor 10.0.0.5 remote-as 3 address-family ipv4 unicast route-policy sample-export out . . . Neighbor Import The neighbor import attach point controls the reception of routes from a specific peer. All routes that are received by a peer are run through the attached policy.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software router bgp 2 address-family ipv4 unicast network 172.16.0.5/27 route-policy NetworkControl Redistribute The redistribute attach point allows routes from other sources to be advertised by BGP. The policy attached at this point is able to set any of the valid BGP attributes on the routes that are being redistributed.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software endif end-policy ! RP/0/RP0/CPU0:router# show bgp BGP router identifier 10.0.0.1, local AS number 2 BGP main routing table version 11 BGP scan interval 60 secs Status codes:s suppressed, d damped, h history, * valid, > best i - internal, S stale Origin codes:i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 10.0.0.0 10.0.1.2 10 0 3 ? *> 10.0.0.0/9 10.0.1.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software endif end-policy router bgp 2 address-family ipv4 unicast table-policy sample-table . . . Import The import attach point provides control over the import of routes from the global VPN IPv4 table to a particular VPN routing and forwarding (VRF) instance.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software preference is set to 212 and the route target extended community is set to 10:101. If the route does not match those specified criteria, then the route target extended community 10:111222 is added to the route. In addition, RT 10:111222 is added to the route that matches any of the previous conditions as well. route-policy bgpvrf_export if destination in (206.92.1.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software Allocate-Label The allocate-label attach point provides increased control based on various attribute match operations. This attach point is typically used in inter-AS option C to decide whether the label should be allocated or not when sending updates to the neighbor for the IPv4 labeled unicast address family. The attribute setting actions supported are for pass and drop.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software Next-hop The next-hop attach point provides increased control based on protocol and prefix-based match operations. The attach point is typically used to decide whether to act on a next-hop notification (up or down) event. Support for next-hop tracking allows BGP to monitor reachability for routes in the Routing Information Base (RIB) that can directly affect BGP prefixes.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software pass else drop endif end-policy debug bgp update policy_b BGP Attributes and Operators Table 1 summarizes the BGP attributes and operators.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software Table 1 BGP Attributes and Operators (continued) Attach Point Attribute Match Set allocate-label as-path in is-local length neighbor-is originates-from passes-through unique-length n/a as-path-length is, ge, le, eq n/a as-path-unique-length is, ge, le, eq n/a community is-empty matches-any matches-every n/a destination in n/a label n/a set local-preference is
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software Table 1 BGP Attributes and Operators (continued) Attach Point Attribute Match Set dampening as-path in is-local length neighbor-is originates-from passes-through unique-length n/a as-path-length is, ge, le, eq n/a as-path-unique-length is, ge, le, eq n/a community is-empty matches-any matches-every n/a dampening n/a/ set dampening...
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software Table 1 BGP Attributes and Operators (continued) Attach Point Attribute Match Set export (VRF) as-path in is-local length neighbor-is originates-from passes-through unique-length n/a as-path-length is, ge, le, eq n/a as-path-unique-length is, ge, le, eq n/a community is-empty matches-any matches-every set set additive delete in delete not in delete all destination
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software Table 1 BGP Attributes and Operators (continued) Attach Point Attribute Match Set import (VRF) as-path in is-local length neighbor-is originates-from passes-through unique-length n/a as-path-length is, ge, le, eq n/a as-path-unique-length is, ge, le, eq n/a community is-empty matches-any matches-every n/a destination in n/a extcommunity rt is-empty matches-any m
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software Table 1 BGP Attributes and Operators (continued) Attach Point neighbor-out Attribute Match Set extcommunity rt is-empty matches-any matches-every set additive delete-in delete-not-in delete-all extcommunity soo is-empty matches-any matches-every n/a local-preference is, ge, le, eq set med is, eg, ge, le set set + set - next-hop in set set peer address origin is
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software Table 1 Attach Point BGP Attributes and Operators (continued) Attribute Match Set med is, eg, ge, le set set + set set max-unreachable1 set igp-cost next-hop in set set self origin is set path-type is n/a rd in n/a source in n/a unsuppress-route n/a unsuppress-route vpn-distinguisher n/a set neighbor-orf orf-prefix in n/a network as-path n/a prepen
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software Table 1 BGP Attributes and Operators (continued) Attach Point Attribute Match Set redistribute as-path n/a prepend community n/a set set additive delete in delete not in delete all destination in n/a extcommunity cost n/a set set additive local-preference n/a set med n/a set set + set - next-hop in set n/a set route-has-label n/a route-type is n/a ta
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software Table 1 BGP Attributes and Operators (continued) Attach Point Attribute Match Set show as-path in is-local length neighbor-is originates-from passes-through unique-length n/a as-path-length is, ge, le, eq n/a as-path-unique-length is, ge, le, eq n/a community is-empty matches-any matches-every n/a destination in n/a extcommunity rt is-empty matches-any matches-e
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software Table 1 BGP Attributes and Operators (continued) Attach Point Attribute Match Set table-policy as-path in is-local length neighbor-is originates-from passes-through unique-length n/a as-path-length is, ge, le, eq n/a as-path-unique-length is, ge, le, eq n/a community is-empty matches-any matches-every n/a local-preference is, ge, le, eq n/a destination in n/a
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software OSPF Policy Attach Points This section describes each of the OSPF policy attach points and provides a summary of the OSPF attributes and operators.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software Area-in 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. The following example shows how to configure the prefix for OSPF summary LSAs. If the prefix matches any of 111.105.3.0/24, 111.105.7.0/24, 111.105.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software Table 3 OSPF Attributes and Operators (continued) Attach Point Attribute Match Set redistribute destination in n/a metric-type n/a set ospf-metric n/a set next-hop in n/a route-has-label n/a route-type is n/a tag is, eq, ge, le set area-in destination in n/a area-out destination in n/a mpls-label 1 1.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software The following example shows how to redistribute routes from BGP instance 15 into OSPF instance 1 using the policy OSPFv3-redist. The policy sets the metric type to type-2 for all redistributed routes. BGP routes with a tag of 10 have their cost set to 100, and BGP routes with a tag of 20 have their OSPFv3 cost set to 200.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software Redistribute The redistribute attach point within IS-IS allows routes from other protocols to be readvertised by IS-IS. The policy is a set of control structures for selecting the types of routes that a user wants to redistribute into IS-IS. The policy can also control which IS-IS level the routes are injected into and at what metric values.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software route-policy isis-propagate if destination in (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 . . . IS-IS Attributes and Operators Table 5 summarizes the IS-IS attributes and operators.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software Default-Accept-In The default-accept-in attach point allows you to set and reset the conditional default flag for EIGRP routes by evaluating the attached policy. 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.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software Policy-Out The policy-out attach point allows you to filter and modify outbound EIGRP routes. This policy is applied to all interfaces for which there is no interface outbound route policy. The following example shows the command under EIGRP: router eigrp 100 address-family ipv4 route-policy global-policy-out out . . .
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software EIGRP Attributes and Operators Table 6 summarizes the EIGRP attributes and operators.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software • Global-Inbound, page RC-404 • Global-Outbound, page RC-404 • Interface-Inbound, page RC-405 • Interface-Outbound, page RC-405 Default-Information Originate The default-information originate attach point allows you to conditionally inject the default route 0.0.0.0/0 into RIP updates by evaluating the attached policy.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software Interface-Inbound The interface-inbound attach point allows you to filter or update inbound RIP routes that match a route policy for a specific interface.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software Table 7 RIP Attributes and Operators (continued) Attach Point Attribute Match Set redistribute destination in n/a next-hop in set rip-metric n/a set n/a set route-has-label n/a route-type is n/a tag is, eq, ge, le set rip-tag mpls-label 1 1. The mpls-label attribute is implicit in the conditional syntax; it is implied by the route-has-label operator.
Implementing Routing Policy on Cisco IOS XR Software Information About Implementing Routing Policy on Cisco IOS XR Software Editing Routing Policy Configuration Elements RPL is based on statements rather than on lines. That is, within the begin-end pair that brackets policy statements from the CLI, a new line is merely a separator, the same as a space character. The CLI provides the means to enter and delete route policy statements.
Implementing Routing Policy on Cisco IOS XR Software How to Implement Routing Policy on Cisco IOS XR Software 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 end-policy ! == MicroEMACS 3.8b () == rpl_edit.141738 == Parsing.
Implementing Routing Policy on Cisco IOS XR Software How to Implement Routing Policy on Cisco IOS XR Software Defining a Route Policy This task explains how to define a route policy. Note If you want to modify an existing routing policy using the command-line interface (CLI), you must redefine the policy by completing this task. SUMMARY STEPS 1. configure 2. route-policy name [parameter1, parameter2, . . . , parameterN] 3. end-policy 4.
Implementing Routing Policy on Cisco IOS XR Software How to Implement Routing Policy on Cisco IOS XR Software Step 3 Command or Action Purpose 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 4 Saves configuration changes.
Implementing Routing Policy on Cisco IOS XR Software How to Implement Routing Policy on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router bgp as-number Example: RP/0/RP0/CPU0:router(config)# router bgp 125 Step 3 neighbor ip-address Configures a BGP routing process and enters router configuration mode.
Implementing Routing Policy on Cisco IOS XR Software How to Implement Routing Policy on Cisco IOS XR Software Step 5 Command or Action Purpose route-policy policy-name {in | out} Attaches the route-policy, which must be well formed and predefined. Example: RP/0/RP0/CPU0:router(config-bgp-nbr-af)# route-policy example1 in Step 6 Saves configuration changes.
Implementing Routing Policy on Cisco IOS XR Software Configuration Examples for Implementing Routing Policy on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose edit {route-policy | prefix-set | as-path-set | community-set | extcommunity-set {rt | soo} | policy-global | rd-set} name [nano | emacs | vim | inline {add | prepend | remove} set-element] Identifies the route policy, prefix set, AS path set, community set, or extended community set name to be modified.
Implementing Routing Policy on Cisco IOS XR Software Configuration Examples for Implementing Routing Policy on Cisco IOS XR Software Routing Policy Definition: Example In the following example, a BGP route policy named sample1 is defined using the route-policy name command. The policy compares the network layer reachability information (NLRI) to the elements in the prefix set test. If it evaluates to true, the policy performs the operations in the then clause.
Implementing Routing Policy on Cisco IOS XR Software Configuration Examples for Implementing Routing Policy on Cisco IOS XR Software endif set med 1000 set local-preference 90 set community (2:1001) additive if community matches-any ([101..106]:202) then prepend as-path 2.30 2 set community (2:666) additive if med is 666 or med is 225 then set origin incomplete else set origin igp endif else set community (2:999) additive endif end-policy router bgp 2 neighbor 10.0.1.
Implementing Routing Policy on Cisco IOS XR Software Additional References apply set-lpref-prepend(100,101,2) set community (2:1234) additive else set local-preference 125 endif end-policy ! route-policy filter-bogons if destination in bogon then drop else pass endif end-policy ! route-policy common-inbound apply filter-bogons set origin igp set community (2:333) end-policy ! route-policy set-lpref-prepend($lpref,$as,$prependcnt) set local-preference $lpref prepend as-path $as $prependcnt end-policy Trans
Implementing Routing Policy on Cisco IOS XR Software Additional References 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. 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.
Implementing Routing Policy on Cisco IOS XR Software Additional References Cisco IOS XR Routing Configuration Guide RC-418 OL-14356-01
Implementing Static Routes on Cisco IOS XR Software 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. This module describes the tasks you need to implement static routes on your Cisco IOS XR network.
Implementing Static Routes on Cisco IOS XR Software Contents Contents • Prerequisites for Implementing Static Routes on Cisco IOS XR Software, page RC-420 • Information About Implementing Static Routes on Cisco IOS XR Software, page RC-420 • How to Implement Static Routes on Cisco IOS XR Software, page RC-424 • Configuration Examples, page RC-432 • Where to Go Next, page RC-433 • Additional References, page RC-433 Prerequisites for Implementing Static Routes on Cisco IOS XR Software You must be
Implementing Static Routes on Cisco IOS XR Software Information About Implementing Static Routes on Cisco IOS XR Software Networking devices forward packets using route information that is either manually configured or dynamically learned using a routing protocol. Static routes are manually configured and define an explicit path between two networking devices. Unlike a dynamic routing protocol, static routes are not automatically updated and must be manually reconfigured if the network topology changes.
Implementing Static Routes on Cisco IOS XR Software Information About Implementing Static Routes on Cisco IOS XR Software Recursive Static Routes In a recursive static route, only the next hop is specified. The output interface is derived from the next hop.
Implementing Static Routes on Cisco IOS XR Software Information About Implementing Static Routes on Cisco IOS XR Software Floating Static Routes Floating static routes are static routes that are used to back up dynamic routes learned through configured routing protocols. A floating static route is configured with a higher administrative distance than the dynamic routing protocol it is backing up.
Implementing Static Routes on Cisco IOS XR Software How to Implement Static Routes on Cisco IOS XR Software How to Implement Static Routes on Cisco IOS XR Software This section contains the following procedures: • Configuring a Static Route, page RC-424 (required) • Configuring a Floating Static Route, page RC-425 (optional) • Configuring Static Routes Between PE-CE Routers, page RC-427 (optional) • Changing the Maximum Number of Allowable Static Routes, page RC-429 (optional) • Associating a VRF
Implementing Static Routes on Cisco IOS XR Software How to Implement Static Routes on Cisco IOS XR Software Step 4 Command or Action Purpose address-family {ipv4 | ipv6} {unicast | multicast} Enters address family mode. Example: RP/0/RP0/CPU0:router(config-static-vrf)# addres s family ipv4 unicast Step 5 prefix mask [vrf vrf-name] {ip-address | interface-type interface-instance} [distance] [description text] [tag tag] [permanent] Configures an administrative distance of 110.
Implementing Static Routes on Cisco IOS XR Software How to Implement Static Routes on Cisco IOS XR Software 6. end or commit DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router static Enters static route configuration mode. Example: RP/0/RP0/CPU0:router(config)# router static Step 3 vrf vrf-name (Optional) Enters VRF configuration mode.
Implementing Static Routes on Cisco IOS XR Software How to Implement Static Routes on Cisco IOS XR Software Step 5 Command or Action Purpose prefix mask [vrf vrf-name] {ip-address | interface-type interface-instance} [distance] [description text] [tag tag] [permanent] Configures an administrative distance of 201. Example: RP/0/RP0/CPU0:router(config-static-vrf-afi)# 20 01:0DB8::/32 2001:0DB8:3000::1 201 Step 6 Saves configuration changes.
Implementing Static Routes on Cisco IOS XR Software How to Implement Static Routes on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router static Enters static route configuration mode. Example: RP/0/RP0/CPU0:router(config)# router static Step 3 vrf vrf-name (Optional) Enters VRF configuration mode.
Implementing Static Routes on Cisco IOS XR Software How to Implement Static Routes on Cisco IOS XR Software Changing the Maximum Number of Allowable Static Routes This task explains how to change the maximum number of allowable static routes. Restrictions The number of static routes that can be configured on a router for a given address family is limited by default to 4000. The limit can be raised or lowered using the maximum path command.
Implementing Static Routes on Cisco IOS XR Software How to Implement Static Routes on Cisco IOS XR Software Step 3 Command or Action Purpose maximum path {ipv4 | ipv6} value Changes the maximum number of allowable static routes. Example: RP/0/RP0/CPU0:router(config-static)# maximum path ipv4 10000 Step 4 • Specify IPv4 or IPv6 address prefixes. • Specify the maximum number of static routes for the given address family. The range is from 1 to 140000.
Implementing Static Routes on Cisco IOS XR Software How to Implement Static Routes on Cisco IOS XR Software DETAILED STEPS Step 1 Command or Action Purpose configure Enters global configuration mode. Example: RP/0/RP0/CPU0:router# configure Step 2 router static Enters static route configuration mode. Example: RP/0/RP0/CPU0:router(config)# router static Step 3 vrf vrf-name Enters VRF configuration mode.
Implementing Static Routes on Cisco IOS XR Software Configuration Examples Configuration Examples This section provides the following configuration examples: • Configuring Traffic Discard: Example • Configuring a Fixed Default Route: Example • Configuring a Floating Static Route: Example • Configuring a Static Route Between PE-CE Routers: Example Configuring Traffic Discard: Example Configuring a static route to point at interface null 0 may be used for discarding traffic to a particular prefix.
Implementing Static Routes on Cisco IOS XR Software Where to Go Next 0.0.0.0/0 2.6.0.
Implementing Static Routes on Cisco IOS XR Software 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 Title No new or modified RFCs are supported by this feature, and support for existing RFCs has not been modified by this feature.
INDEX BGP (Border Gateway Protocol) A autonomous system number format address family command RC-8, RC-268 address-family command (IS-IS) address-family ipv4 command RC-283 RC-116 aggregate-address command allowas-in command grouping RC-61, RC-107 description RC-3 inheritance, monitoring RC-196 RC-15 IPv6 and IPv6 VPN provider edge transport over MPLS RC-39 RC-108 IPv6 provider edge multipath RC-273 RC-40 MPLS VPN carrier supporting carrier authentication MD5 (OSPFv2) multicast VPN RC
Index redistribute route-policy (BGP) command RC-379 retain route target show bgp route-policy command RC-382 send-community-ebgp command RC-375 weight command update groups example RC-9 bgp neighbor group submode bgp neighbor submode RC-129 VPNv4 and VPNv6 over the IP core using L2TPv3 tunnels RC-40 bgp address family submode bgp dampening command RC-57 bgp bestpath med confed command RC-57 bgp bestpath med missing-as-worst command bgp client-to-client reflection disable command bgp conf
Index bgp VPNv6 address family submode clear eigrp topology command RC-9 BGP vrf address family submode clear ospf command RC-255 export route-policy command RC-97 clear ospfv3 command import route-policy command RC-97 configuring import route-target command RC-97 maximum prefix command maximum-paths command redistribute command graceful restart RC-8 cost community, BGP RC-107 csnp-interval command aggregate-address command RC-108 dampening, route RC-108 site-of-origin command RC-
Index show bgp flap statistics reexp command E RC-68 show bgp flap statistics route-policy command ebgp-multihop command edit command RC-107 show bgp inheritance command RC-413 show bgp neighbor command EIGRP () RC-15 show bgp neighbors command default-accept-in RC-401 EIGRP (Enhanced Interior Gateway Routing Protocol) features RC-137 overview RC-145 policy attach points default-accept-out if-policy-in show bgp reexp command RC-124 RC-402 stub routing RC-145 end-policy command RC-15
Index IPv6 G IS-IS support Generalized TTL Security Mechanism (GTSM) configuring virtual links RC-193 Generalized TTL Security Mechanism (GTSM), RFC 3682 TTL value RC-193 global parameters graceful restart multitopology single-topology RIB support routing RC-365 RC-271 RC-271 RC-322 RC-269 IPv6 and IPv6 VPN provider edge transport over MPLS RC-39, RC-322, RC-423 RC-230 graceful-restart helper command RC-189 graceful-restart interval command RC-189 graceful-restart lifetime command RC-189
Index description log-neighbor-warnings command RC-273 multi-instance IS-IS multitopology, configuring nonstop forwarding configuring loop-free alternate RC-272 controlling RC-289 RC-285 lifetime maximum configuring on router limiting RC-270 policy attach points RC-399 inter-area-propagate redistribute RC-311 RC-270 on specific interfaces RC-270 lsp-gen-interval command RC-286 lsp-mtu command RC-399 restrictions, configuring RC-287 RC-286 lsp-password command RC-292, RC-294 lsp
Index mpls traffic-engineering multicast-intact command RC-309 mpls traffic-eng router-id command nssa command RC-227, RC-296 MPLS VPN carrier supporting carrier O RC-38 multi-area adjacency configuring ospf area configuration submode RC-244 dead-interval command interface attributes and limitations overview RC-245 RC-274 RC-190 multicast topology multicast VPN network command RC-201 RC-198 RC-214 RC-198 ospf area submode RC-32 authentication message-digest command virtual-link command
Index MD5 authentication MPLS TE, configuring neighbors, adjacency neighbors, nonbroadcast networks RC-180 SPF throttling RC-226 neighbors, nonbroadcast networks, configuring RC-199 default route description nonstop forwarding enabling configuring RC-224 description RC-187 area-out redistribute load balancing types RC-180 RC-180 strategies RC-180 RC-213 RC-182 default originate redistribute RC-215 description RC-186 RC-219 description RC-186 stub and not-so-stubby area types,
Index neighbor command RC-202 RFC 2328, OSPF Version 2 output-delay command RC-340 RFC 2370, LSA overload bit configuration on router RC-175, RC-263 RC-263 RFC 2385, Protection of BGP Sessions via the TCP MD5 Signature Option RC-134 RC-270 RFC 2439, BGP Route Flap Damping RC-273 RFC 2453, RIP Version 2 RC-134 RC-334, RC-351 RFC 2545, Use of BGP-4 Multiprotocol Extensions for IPv6 Inter-Domain Routing RC-134 P passive-interface command password command RC-343 RC-102, RC-107 PCE extension
Index RFC 4813, OSPF RIP v2 supported features RC-263 RIB (Routing Information Base) administrative distance route dampening RC-321 RC-324 description examples functional overview RC-320 RIB quarantining RC-323 route policy submode router bgp command administrative distance route-reflector-client command RC-336 route reflectors RC-334 filter network updates RC-342 RC-342 maximum paths command policy attach points RC-164 RC-404 RC-404 interface-inbound router eigrp command RC-154
Index router-id command router identifier circuit-type command RC-195 RC-3 router isis address family submode default-information originate command distance command ispf command RC-304 maximum-paths command RC-305 metric-style wide command mpls ldp sync command RC-297, RC-310, RC-312 RC-307 mpls traffic-eng command RC-296 mpls traffic-eng multicast-intact command mpls traffic-eng router-id command redistribute isis command RC-304 set-attached-bit command RC-306 single-topology command RC-
Index timers lsa min-interval command timers throttle spf command RC-208 RC-220, RC-221, RC-222, RC-252 interior routers not-so-stubby area stub area router rib command RC-327 address-family command defining RC-340 broadcast-for-v2 command RC-410 RC-339 neighbor command RC-338 RC-407 RC-409 defining (example) RC-338 interface command enforcing, BGP RC-414 RC-20 implementing prerequisites RC-340 RC-354 inbound (example) output-delay command RC-340 timers basic command RC-340
Index community-set, inline set form community-set, named set form extended community set, named form sets RC-358 RC-358 show isis interface command show isis mpls command RC-359 RC-288 show isis database-log command show isis lsp-log command RC-355 prefix-set RC-279 show isis database command RC-357 extended community set, inline form names show isis command RC-357 RC-288 RC-301 RC-288 RC-297 show isis mpls traffic-eng adjacency-log command RC-297 RC-356 show isis mpls traffic-eng adv
Index defined RC-420 floating RC-423, RC-425, RC-427 V maximum number of routes MPLS layer 3 VPN virtual link RC-429 transit area (OSPFv2) RC-421 RC-183 recursive RC-422 virtual-link command specified RC-422 VPNv4 address family command stub area RC-178 stub area types, configuring (OSPFv3) stub command RC-197 summary-prefix command VRF address family command RC-153 RC-218, RC-305 RC-8 export route-target command VRF command RC-275 RC-9 vrf address family submode synchronizatio