RIB Command Reference for Cisco IOS XR
RIB Command Reference for Cisco IOS XR
This module describes the commands used to display and clear information in the Routing Information Base
(RIB).
For detailed information about RIB concepts, configuration tasks, and examples, see the Implementing RIB
on Cisco IOS XR Softwaremodule in Cisco IOS XR Routing Configuration Guide for the Cisco CRS Router.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 1
RIB Commands
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
2 OL-26050-03
RIB Commands
address-family next-hop dampening disable
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Examples The following example shows how to disable RIB next-hop dampening for IPv6 address families:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# router rib
RP/0/RP0/CPU0:router(config-rib)# address-family ipv6 next-hop dampening disable
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 3
RIB Commands
clear route
clear route
To clear routes from the IP routing table, use the clear route command in EXEC configuration mode.
clear route [vrf {vrf-name| all}] {ipv4| ipv6| safi-all} {unicast| multicast| safi-all} [topology topo-name]
[ip-address mask]
Syntax Description vrf { vrf-name | all } (Optional) Specifies a particular VPN routing and forwarding (VRF) instance
or all VRF instances.
topology topo-name (Optional) Specifies topology table information and name of the topology
table.
ip-address node-id (Optional) Clears hardware resource counters from the designated node. The
node-id argument is entered in the rack/slot/module notation.
Command Default If a vrf vrf-name is not specified, routes are cleared from the default IPv4 unicast VRF.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
4 OL-26050-03
RIB Commands
clear route
Release 3.3.0 The vrf vrf-name keyword and argument were added.
Release 3.7.0 The topology topo-name keyword and argument were added.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Use the clear route command to clear routes from an IP routing table to a specific network, a matching
subnet address, or all routes.
Examples The following example shows how to remove all routes matching the subnet address 192.168.2.0 and mask
255.255.255.0 from the IPv4 unicast routing table:
The following example shows how to remove all routes from the IPv4 unicast routing table:
RP/0/RP0/CPU0:router# clear route ipv4 unicast
Related Commands
Command Description
show route, on page 63 Displays the current state of the routing table.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 5
RIB Commands
maximum prefix (RIB)
Syntax Description maximum Maximum number of prefixes allowed in the VRF instance. Range is 32 to
2000000.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Use the maximum prefix command to configure a maximum number of prefixes that a VRF instance is
allowed to receive.
Examples The following example shows how to set the maximum number of prefixes allowed to 1000:
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
6 OL-26050-03
RIB Commands
maximum prefix (RIB)
A maximum number of routes is applicable to dynamic routing protocols as well as static or connected routes.
When maximum prefix is configured, an syslog message is generated in the following conditions:
1 if the number of routes is above the threshold when“maximum prefix” configuration has been committed
2 if the number routes reaches the configured “maximum prefix” values for the VRF
Related Commands
Command Description
show rib tables, on page 55 Displays all tables known to the RIB.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 7
RIB Commands
lcc
lcc
To enable Label Consistency Checker (lcc) background scan for IPv6 or IPv4 labels, use the lcc enable
command in global configuration mode. To disable lcc background scan, use the no for of this command.
period milliseconds Specifies the period between scans in milliseconds. Range is 100 to 600000
milliseconds.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Examples This example shows how to enbale lcc for IPv6 lables:
RP/0/RP0/CPU0:router#configure
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
8 OL-26050-03
RIB Commands
lcc
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 9
RIB Commands
rcc
rcc
To enable Route Consistency Checker (rcc) background scan for IPv6 or IPv4 routes, use the rcc enable
command in global configuration mode. To disable rcc background scan, use the no form of this command.
period milliseconds Specifies the period between scans in milliseconds. Range is 100 to 600000
milliseconds.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Use the period option to control how often the scan be triggered. Each time the scan is triggered, the background
scan process resumes verification from where it was left out and sends one buffer’s worth of routes to the
forwarding information base (FIB).
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
10 OL-26050-03
RIB Commands
rcc
Examples This example shows how to configure rcc for IPv6 unicast:
RP/0/RP0/CPU0:router#configure
RP/0/RP0/CPU0:router(config)#rcc ipv6 unicast enable
This example shows how to enable rcc with a scan period of 500 milliseconds for IPv6 unicast:
RP/0/RP0/CPU0:router#configure
RP/0/RP0/CPU0:router(config)#rcc ipv6 unicast period 500
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 11
RIB Commands
recursion-depth-max
recursion-depth-max
To set the maximum depth for route recursion checks, use the recursion-depth-max command in router
configuration mode. To set the recursion checks to the default value, use the no form of this command.
recursion-depth-max maximum
no recursion-depth-max maximum
Syntax Description maximum Maximum depth for recursion checks. Range is 5 to 16.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Use the recursion-depth-max command to configure a specific maximum number of recursion checks in
the range of 5 to 16.
Examples The following example shows how to set the maximum depth for route recursion checks to 12:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# router rib
RP/0/RP0/CPU0:router(config-rib)# recursion-depth-max 12
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
12 OL-26050-03
RIB Commands
router rib
router rib
To enter Routing Information Base (RIB) configuration mode, use the router rib command in global
configuration mode. To remove all RIB configurations and terminate the RIB routing process, use the no
form of this command.
router rib
no router rib
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Examples The following example shows how to enter RIB configuration mode:
RP/0/RP0/CPU0:router(config)# router rib
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 13
RIB Commands
rump always-replicate
rump always-replicate
To enable replication from uRIB to muRIB as usual even after features such as MTR are configured, use the
rump always-replicate command in router configuration mode. To diable replication from uRIB to muRIB,
use the no form of this command.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Configuring the rump always-replicate command allows routers in a network to be upgraded to multitopology
routing gradually without a flag day where all routers need to be configured at the same time without major
service disruption. When rump always-replicate is configured, replicated routes are added into the muRIB
with the lowest admin distance. So if protocols are populating the muRIB, they continue to do so. For the
same route, protocol routes win over replicated routes because of higher admin distance.
If an unwanted more specific route comes from the uRIB, optionally provide an access list through which the
replicated routes are run. If the route passes the access list, the route is replicated by RUMP.
Examples The following example shows how to enale replication from uRIB to muRIB:
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
14 OL-26050-03
RIB Commands
rump always-replicate
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 15
RIB Commands
show lcc statistics
scan-id scan-id-value Specifies the scan ID value. The range is between <0-100000>.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
ipv6 read
Examples This example shows background scan statistics for AFI-SAFI mplsv6-unicast:
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
16 OL-26050-03
RIB Commands
show lcc statistics
End Of Logs
This example shows background scan statistics for AFI-SAFI mplsv4-unicast:
RP/0/RP0/CPU0:router#show lcc ipv4 unicast statistics
End Of Logs
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 17
RIB Commands
show rcc
show rcc
To display route consistency checker (RCC) information, use the show rcc command in EXEC mode.
vrf vrf-name (Optional) Specifies a particular VPN routing and forwarding (VRF)
instance or all VRF instances.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
18 OL-26050-03
RIB Commands
show rcc
Examples The following is sample output from the show rcc command:
Paused By:
route churn:False on-demand scan:False error scan:False
Scan Logs
=========
Legend:
? - Currently Inactive Node, ! - Non-standard SVD Role
* - Node did not reply
End of Logs
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 19
RIB Commands
show rcc statistics
scan-id scan-id-value Specifies the scan ID value. The range is between <0-100000>.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
ipv6 read
Examples This example shows background scan statistics for AFI-SAFI IPv6 unicast:
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
20 OL-26050-03
RIB Commands
show rcc statistics
End Of Logs
This example shows background scan statistics for AFI-SAFI Ipv4 unicast:
RP/0/RP0/CPU0:router#show rcc ipv4 unicast statistics
End Of Logs
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 21
RIB Commands
show rcc vrf
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
ipv6 read
Examples This example shows how to run on-demand rcc scan for an IPv6 prefix:
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
22 OL-26050-03
RIB Commands
show rcc vrf
This example shows how to run on-demand rcc scan for an Ipv4 prefix:
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 23
RIB Commands
show rib
show rib
To display Routing Information Base (RIB) data, use the show rib command in EXEC mode.
show rib {ipv4| ipv6} {unicast| multicast}[firsthop| [ type interface-path-id]| next-hop| [ type
interface-path-id]| opaques | {attribute | ip-nexthop| ipfrr| safi-tunnel| summary | tunnel-nexthop}|
protocols| [standby]| statistics| [name]| [standby]| topology| {topo-name| all}]
type Interface type. For more information, use the question mark (?) online help
function.
ipfrr (Optional) Specifies IP fast reroute (IPFRR) opaque data installed in the RIB.
safi-tunnel (Optional) Specifies subaddress family (SAFI) tunnel opaque data installed
in the RIB.
tunnel-nexthop (Optional) Specifies tunnel next-hop opaque data installed in the RIB.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
24 OL-26050-03
RIB Commands
show rib
all (Optional) Specifies that all topology table information should be displayed.
Release 3.4.0 The ipv4, ipv6 , and standby keywords were added.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
ipv4 multicast
topology
BLUE
Related Commands
Command Description
show rib afi-all, on page 26 Displays both IPv4 and IPv6 RIB information.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 25
RIB Commands
show rib afi-all
show rib afi-all [attributes] [client-id] [clients] [extcomms] [firsthop] [history] [multicast] [next-hop]
[opaques] [protocols] [recursion-depth-max] [safi-all] [statistics] [tables] [trace] [unicast] [vpn-attributes]
Syntax Description attributes (Optional) Displays all BGP attributes installed in RIB.
client-id (Optional) Displays RIB client ID for longer history of redistributed routes
sent to the client.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
26 OL-26050-03
RIB Commands
show rib afi-all
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Examples The following example illustrates the show rib afi-all attributes command:
Related Commands
Command Description
show rib, on page 24 Displays RIB information.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 27
RIB Commands
show rib attributes
Syntax Description summary (Optional) Displays a summary of BGP attribute data installed in the RIB.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Examples The following is sample output from the show rib attributes command:
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
28 OL-26050-03
RIB Commands
show rib attributes
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 29
RIB Commands
show rib client-id
redistribution history Displays longer history of redistributed routes sent to RIB clients.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Use the show rib client-id command to display a history of the route additions, deletions, and updates sent
from RIB to the client across VRFs.
Examples The following is sample output from the show rib client-id command:
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
30 OL-26050-03
RIB Commands
show rib client-id
Field Description
PID Process ID of the client.
Related Commands
Command Description
show rib clients, on page 32 Displays RIB clients.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 31
RIB Commands
show rib clients
show rib [afi-all| ipv4| ipv6] clients [protocols| redistribution [history]] [standby]
Release 3.4.0 The ipv4, ipv6 , and standby keywords were added.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Use the show rib clients command to display the list of clients who have registered with RIB, what protocol
routes they are redistributing, and a history of the routes sent to the client.
The maximum number of redistribution entries is 5000 for Bulk Content Downloader (BCDL) and 500 for
other protocols.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
32 OL-26050-03
RIB Commands
show rib clients
Examples The following is sample output from the show rib clients command:
isis node0_5_CPU0
ipv4 uni vrf default insync route
static insync
ospf node0_5_CPU0
ipv4 uni vrf default insync route
static insync
local insync
bgp node0_5_CPU0
ipv4 uni vrf abc insync route
static insync
bcdl_agent node0_5_CPU0
ipv4 uni vrf default insync rib_fib
ipv4 uni vrf bar insync rib_fib
ipv4 uni vrf abc insync rib_fib
ipv4 uni vrf test insync rib_fib
Field Description
Process Client process name.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 33
RIB Commands
show rib clients
Field Description
Proto Whether the protocol has sent all its routes to RIB
and signaled update complete or not.
• insync—read
• outsync—not read.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
34 OL-26050-03
RIB Commands
show rib extcomms
Release 3.4.0 The ipv4 , ipv6 , and standby keywords were added.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Examples The following is sample output from the show rib extcomms command:
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 35
RIB Commands
show rib extcomms
Field Description
Extended Community Type of extended communities. Different protocols
can add different extended communities.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
36 OL-26050-03
RIB Commands
show rib firsthop
show rib [vrf {vrf-name| all}] [afi-all| ipv4| ipv6] [unicast| multicast| safi-all] firsthop [ client-name ] [type
interface-path-id| ip-address /prefix-length| ip-address mask| resolved| unresolved| damped] [summary]
[standby]
Syntax Description vrf { vrf-name | all } (Optional) Specifies a particular VPN routing and forwarding (VRF) instance
or all VRF instances.
type Interface type. For more information, use the question mark ( ? ) online help
function.
/ prefix-length (Optional) Length of the IP address prefix. A decimal value that indicates
how many of the high-order contiguous bits of the address compose the prefix
(the network portion of the address). A slash (/) must precede the decimal
value.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 37
RIB Commands
show rib firsthop
Command Default If a vrf vrf-name is not specified, the registered first-hop notifications addresses are displayed for the default
IPv4 unicast VRF.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Use the show rib firsthop command to display the list of first hops registered by various clients with RIB
and the address and interface through which they are resolved.
Examples The following is sample output from the show rib firsthop command:
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
38 OL-26050-03
RIB Commands
show rib firsthop
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 39
RIB Commands
show rib history
client-id client-id (Optional) Specifies the ID of the client. Range for client-id argument is
0 to 4294967295.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Use the show rib history command to display the list of routes that RIB has sent to various clients.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
40 OL-26050-03
RIB Commands
show rib history
Examples The following is sample output from the show rib history command:
Field Description
JID Job ID of the client process.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 41
RIB Commands
show rib next-hop
show rib [vrf {vrf-name| all}] [afi-all| ipv4| ipv6] [unicast| multicast| safi-all] next-hop [ client-name ]
[type interface-path-id| ip-address /prefix-length| ip-address mask| resolved| unresolved| damped] [summary]
[standby]
Syntax Description vrf { vrf-name | all } (Optional) Specifies a particular VPN routing and forwarding (VRF) instance
or all VRF instances.
type Interface type. For more information, use the question mark ( ? ) online help
function.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
42 OL-26050-03
RIB Commands
show rib next-hop
/ prefix-length (Optional) Length of the IP address prefix. A decimal value that indicates how
many of the high-order contiguous bits of the address compose the prefix (the
network portion of the address). A slash (/) must precede the decimal value.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Use the show rib next-hop command to display the list of next-hops registered by various clients with the
RIB and the address and interface through which they are resolved.
Examples The following is sample output from the show rib next-hop command:
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 43
RIB Commands
show rib next-hop
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
44 OL-26050-03
RIB Commands
show rib opaques
show rib [vrf {vrf-name| all}] [afi-all| ipv4| ipv6] [unicast| multicast| safi-all] opaques {attribute|
ip-nexthop| ipfrr| safi-tunnel| summary| tunnel-nexthop} [ rib-client-name ] [standby]
Syntax Description vrf { vrf-name | all } (Optional) Specifies a particular VPN routing and forwarding (VRF) instance
or all VRF instances.
ipfrr Displays IP fast reroute (IPFRR) opaque data installed in the RIB.
Note Since the IP/LDP per-prefix LFA-FRR feature was introduced in IOS
XR Software Release 4.0.1, the show rib opaques ipfrr command
has been deprecated. Use show route command as part of the
per-prefix LFA-FRR feature to determine backup paths.
• show route output displays all FRR Backup paths. The FRR
Backup paths are indicated with a (!).
• show route detail output displays path ID and backup-path ID
to identify if a path is protected and if so by which path.
safi-tunnel Displays subaddress family (SAFI) tunnel opaque data installed in the RIB.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 45
RIB Commands
show rib opaques
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
If information is not used by the RIB server process, it is viewed as opaque data. Use the show rib opaques
command to display opaque data installed in the RIB.
Examples The following is sample output from the show rib opaques command:
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
46 OL-26050-03
RIB Commands
show rib opaques
Field Description
Opaque key Unique key for the opaque data as populated by the
protocol client.
Related Commands
Command Description
show route, on page 63 Displays current routes information in the Routing
Information Base (RIB).
show ospf routes Displays Open Shortest Path First (OSPF) topology
table.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 47
RIB Commands
show rib protocols
show rib [vrf {vrf-name| all}] [afi-all| ipv4| ipv6] [unicast| multicast| safi-all] protocols [standby]
Syntax Description vrf { vrf-name | all } (Optional) Specifies a particular VPN routing and forwarding (VRF) instance
or all VRF instances.
Command Default If a vrf vrf-name is not specified, the registered first-hop notification addresses are displayed for the default
IPv4 unicast VRF.
Release 3.9.0 Asplain format for 4-byte Autonomous system numbers notation was
supported. The input parameters and output were modified to display 4-byte
autonomous system numbers and extended communities in either asplain or
asdot notations.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
48 OL-26050-03
RIB Commands
show rib protocols
Examples The following is sample output from the show rib protocols command:
Field Description
Protocol Name of the protocol.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 49
RIB Commands
show rib recursion-depth-max
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Use the show rib recursion-depth-max command to display the maximum recursion depth for RIB. Recursion
depth is the number of next-hops that can be specified.
Examples The following is sample output from the show rib recursion-depth-max command:
IPv4:
-----
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
50 OL-26050-03
RIB Commands
show rib recursion-depth-max
Configured: 12
In Use: 128
IPv6:
-----
Maximum recursion depth in RIB:
Configured: 12
In Use: 128
Field Description
Configured Value of maximum recursion depth currently
configured.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 51
RIB Commands
show rib statistics
show rib [vrf {vrf-name| all}] [afi-all| ipv4| ipv6] [unicast| multicast| safi-all] statistics [ client-name ]
[standby]
Syntax Description vrf { vrf-name | all } (Optional) Specifies a particular VPN routing and forwarding (VRF)
instance or all VRF instances.
Command Default If vrf vrf-name is not specified, the registered first-hop notification addresses are displayed for the default
IPv4 unicast VRF.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Use the show rib statistics command to display RIB statistics. The statistics include requests sent from the
clients to the RIB and the information redistributed to the client.
RIB maintains counters for all requests sent from a client including:
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
52 OL-26050-03
RIB Commands
show rib statistics
• Route operations
• Table registrations
• Next-hop registrations
• Redistribution registrations
• Attribute registrations
• Synchronization completion
Examples The following is sample output from the show rib statistics command:
RIB Statistics:
Received 142 batch messages
137 route operations, 0 attribute operations
0 opaque operations
11 complete operations, 0 convergent operations
Results of the batch message received:
142 successes
0 forward references, 0 invalid client id, 0 unknown errors
0 memory allocation errors, 0 client lookup errors, table lookup errors 0
0 proto lookup errors, 0 client proto lookup errors
ipv4_connected/node0_RP0_CPU0 last performed route operation
with status BATCH_SUCESS at Jun 26 21:43:33.601
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 53
RIB Commands
show rib statistics
Field Description
Received Statistics received including batch messages and
route, attribute, complete, and convergent operations.
Received n light weight messages Number of lightweight API messages sent from RIB
clients.
Received n nexthop batch messages Number of batch API messages sent from RIB clients
received by the RIB.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
54 OL-26050-03
RIB Commands
show rib tables
Release 3.4.0 The ipv4 , ipv6 , and standby keywords were added.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Use the show rib tables command to display all tables known to the RIB, including table attributes. Attributes
include VPN routing and forwarding (VRF) instance, address family, and maximum prefix information.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 55
RIB Commands
show rib tables
Examples The following is sample output from the show rib tables command when entered without an address:
Field Description
VRF Name of the VRF instance.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
56 OL-26050-03
RIB Commands
show rib trace
show rib [afi-all| ipv4| ipv6] trace [clear| counts| event-manager| startup| sync| timing] [unique| wrapping]
[last entries] [hexdump] [reverse] [tailif] [stats] [verbose] [file name original location node-id| location
{all| node-id}]
last entries (Optional) Displays a specified number of the last entries. Range is 1 to
4294967295.
file name original location (Optional) Displays trace entries for a specific file for the designated
node-id node. The node-id argument is entered in the rack/slot/module notation.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 57
RIB Commands
show rib trace
location { all | node-id } (Optional) Displays ltrace entries for the designated node. The node-id
argument is entered in the rack/slot/module notation. The all keyword
displays ltrace entries for all nodes.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Examples The following is sample output from the show rib trace command
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
58 OL-26050-03
RIB Commands
show rib vpn-attributes
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Examples The following is sample output from the show rib vpn-attributes command:
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 59
RIB Commands
show rib vpn-attributes
Field Description
Extended Community Extended community added by the protocol clients
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
60 OL-26050-03
RIB Commands
show rib vrf
show rib vrf {vrf-name| all} [ipv4] [ipv6] [afi-all] [firsthop] [next-hop] [opaques] [protocols] [statistics
name]
Syntax Description vrf { vrf-name | all } (Optional) Specifies a particular VPN routing and forwarding (VRF)
instance or all VRF instances.
statistics name (Optional) Specifies RIB statistics for the given name.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 61
RIB Commands
show rib vrf
Examples The following example shows output from the show rib vrf all statistics command:
Related Commands
Command Description
show rib, on page 24 Displays RIB information.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
62 OL-26050-03
RIB Commands
show route
show route
To display the current routes in the Routing Information Base (RIB), use the show route command in EXEC
mode.
show route [vrf {vrf-name| all}] [afi-all| ipv4| ipv6] [unicast| multicast | safi-all] [protocol [ instance ]|
ip-address [ mask ]| ip-address/prefix-length] [standby] [detail]
Syntax Description vrf { vrf-name | all } (Optional) Specifies a particular VPN routing and forwarding (VRF) instance or
all VRF instances.
protocol (Optional) Name of a routing protocol. If you specify a routing protocol, use one
of the following keywords:
• bgp
• eigrp
• isis
• ospf
• rip
• static
• local
• connected
instance (Optional) Number or name used to identify an instance of the specified protocol.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 63
RIB Commands
show route
/prefix-length (Optional) Length of the IP address prefix. A decimal value that indicates how
many of the high-order contiguous bits of the address compose the prefix (the
network portion of the address). A slash (/) must precede the decimal value.
Command Default If a vrf vrf-name is not specified, routes are displayed for the default IPv4 unicast VRF.
Release 3.3.0 The eigrp and rip keywords and vrf vrf-name keyword and argument
were added.
Release 3.4.0 The all , detail , and standby keywords were added.
Release 3.9.0 Asplain format for 4-byte Autonomous system numbers notation was
supported. The input parameters and output were modified to display 4-byte
autonomous system numbers and extended communities in either asplain
or asdot notations.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
When the afi-all keyword is used, the ip-address and mask arguments are not available.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
64 OL-26050-03
RIB Commands
show route
The topology keyword must be accompanied by the ipv4 multicast keywords, except when the afi-all
keyword or the safi-all keyword is specified.
Examples The following is sample output from the show route command when entered without an address:
Field Description
S* Code indicating how the route was derived. See the
code legend preceding the output. In this case, the
route was derived from a static (candidate default).
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 65
RIB Commands
show route
Field Description
C Code indicating how the route was derived. See the
code legend preceding the output. In this case, the
route was connected.
via 3.3.3.1 Specifies the address of the next router to the remote
network.
When you specify that you want information about a particular network, more detailed statistics are displayed.
The following is sample output from the show route command when entered with an IP address:
Intermediate System-to-Intermediate System (IS-IS) includes an IP address typed length value (TLV) in its
link-state packet (LSP) that helps identify the node injecting the route into the network. The IS-IS node uses
one of its own interface addresses in this TLV. A loopback address is preferred among interfaces configured
under IS-IS. When other networking devices calculate IP routes, they can store the IP address as the originator
address with each route in the routing table.
The following example shows the output from the show route command for a specific IP address on a router
configured with IS-IS. Each path that is shown under the Routing Descriptor Blocks report displays two IP
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
66 OL-26050-03
RIB Commands
show route
addresses. The first address (10.0.0.9) is the next-hop address; the second is the originator IP address from
the advertising IS-IS router.
Field Description
Routing entry for Network address and mask.
from ... via ... First address is the next-hop IP address, and the other
is the information source. This report is followed by
the interface for this route.
The following example illustrates the show route command with the topology topo-name keyword and
argument specified:
RP/0/RP0/CPU0:router# show route ipv4 multicast topology green
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 67
RIB Commands
show route
This example is a sample show route summary command output that displays fast-reroute (FRR) Backup
path information. The FRR Backup paths are indicated with a (!).
RP/0/RP0/CPU0:router#show route summary
This example is a sample show route detail command output that displays path ID and backup-path ID
information:
RP/0/RP0/CPU0:router#show route 10.1.1.3 detail
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
68 OL-26050-03
RIB Commands
show route
Related Commands
Command Description
show interfaces Lists interface information.
show route summary, on page 95 Displays the current contents of the routing table in
summary format.
show rib opaques, on page 45 Displays opaque data installed in the Routing
Information Base (RIB).
show ospf routes Displays Open Shortest Path First (OSPF) topology
table.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 69
RIB Commands
show route backup
show route [vrf {vrf-name| all}] [afi-all| ipv4| ipv6] [unicast| multicast| {topology topo-name}| safi-all]
backup [ip-address [mask] | ip-address /| prefix-length] ][standby]
Syntax Description vrf { vrf-name | all } (Optional) Specifies a particular VPN routing and forwarding (VRF) instance or
all VRF instances.
ip-address (Optional) Network IP address about which backup routing information should
be displayed.
/prefix-length (Optional) Length of the IP address prefix. A decimal value that indicates how
many of the high-order contiguous bits of the address compose the prefix (the
network portion of the address). A slash (/) must precede the decimal value.
Command Default If a vrf vrf-name is not specified, the backup routes from the RIB are displayed for the default IPv4 unicast
VRF.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
70 OL-26050-03
RIB Commands
show route backup
Release 3.3.0 The vrf vrf-name keyword and argument were added.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Use the show route backup command to display information about routes that have been installed into the
RIB as backup routes. This command also displays information about the currently selected active route for
which there is a backup.
When the afi-all keyword is used, the ip-address and mask arguments are not available.
The topology keyword must be accompanied by the ipv4 multicast keywords, except when the afi-all
keyword or the safi-all keyword is specified.
Examples The following is sample output from the show route backup command:
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 71
RIB Commands
show route backup
Field Description
S Code indicating how the route was derived. See the
legend of the codes preceding the output.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
72 OL-26050-03
RIB Commands
show route backup
Related Commands
Command Description
show route, on page 63 Displays the current routes in the RIB.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 73
RIB Commands
show route best-local
show route [vrf {vrf-name| all}] [ipv4| ipv6] [unicast| multicast| {topology topo-name}| safi-all] best-local
ip-address [ standby]
Syntax Description vrf { vrf-name | all } (Optional) Specifies a particular VPN routing and forwarding (VRF)
instance or all VRF instances.
Command Default If a vrf vrf-name is not specified, the best local address is displayed for the default IPv4 unicast VRF.
Release 3.3.0 The vrf vrf-name keyword and argument were added.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
74 OL-26050-03
RIB Commands
show route best-local
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Use the show route best-local command to display information about the best local routes in the routing
table.
The topology keyword must be accompanied by the ipv4 multicast keywords, except when the afi-all
keyword or the safi-all keyword is specified.
Examples The following is sample output from the show route best-local command:
Field Description
Routing entry for Identifies the requested IP address.
10.12.12.1 Directly connected ... via ... First address is the next-hop IP address, followed by
a report that it is directly connected. This report is
followed by the interface for this route.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 75
RIB Commands
show route best-local
Related Commands
Command Description
show route local, on page 79 Displays local addresses installed in the RIB as a
receive entry.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
76 OL-26050-03
RIB Commands
show route connected
show route [vrf {vrf-name| all}] [afi-all| ipv4| ipv6] [unicast| multicast| {topology topo-name}| safi-all]
connected [ standby]
Syntax Description vrf { vrf-name | all } (Optional) Specifies a particular VPN routing and forwarding (VRF)
instance or all VRF instances.
Command Default If a vrf vrf-name is not specified, the current connected routes of the routing table are displayed for the
default IPv4 unicast VRF.
The topology keyword must be accompanied by the ipv4 multicast keywords, except when the afi-all
keyword or the safi-all keyword is specified.
Release 3.3.0 The vrf vrf-name keyword and argument were added.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 77
RIB Commands
show route connected
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Use the show route connected command to display information about connected routes in the routing table.
Examples The following is sample output from the show route connected command:
Field Description
C Code to indicate the route is connected.
Related Commands
Command Description
show route summary, on page 95 Displays the current contents of the RIB.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
78 OL-26050-03
RIB Commands
show route local
show route [vrf {vrf-name| all}] [afi-all| ipv4| ipv6] [unicast| multicast| {topology topo-name}| safi-all]
local [type interface -path-id] [ standby]
Syntax Description vrf { vrf-name | all } (Optional) Specifies a particular VPN routing and forwarding (VRF) instance
or all VRF instances.
type Interface type. For more information, use the question mark ( ? ) online help
function.
Command Default If a vrf vrf-name is not specified, the local routes receiving updates from the RIB are displayed for the
default IPv4 unicast VRF.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 79
RIB Commands
show route local
Release Modification
Release 3.3.0 The vrf vrf-name keyword and argument were added.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Use the show route local command to display information about local routes in the routing table.
The topology keyword must be accompanied by the ipv4 multicast keywords, except when the afi-all
keyword or the safi-all keyword is specified.
Examples The following is sample output from the show route local command:
Field Description
L Code to indicate the route is local.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
80 OL-26050-03
RIB Commands
show route local
Related Commands
Command Description
show route connected, on page 77 Displays information about all clients that have
registered with the RIB as protocols.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 81
RIB Commands
show route longer-prefixes
show route [vrf {vrf-name| all}] [ipv4| ipv6] [unicast| multicast| {topology topo-name}| safi-all]
longer-prefixes {ip-address mask | ip-address/prefix-length} [ standby]
Syntax Description vrf { vrf-name | all } (Optional) Specifies a particular VPN routing and forwarding (VRF) instance or
all VRF instances.
/ prefix-length Length of the IP address prefix. A decimal value that indicates how many of the
high-order contiguous bits of the address compose the prefix (the network portion
of the address). A slash (/) must precede the decimal value.
Command Default If a vrf vrf-name is not specified, the current routes in the RIB sharing a specified number of bits with a
network are displayed for the default IPv4 unicast VRF.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
82 OL-26050-03
RIB Commands
show route longer-prefixes
Release 3.3.0 The vrf vrf-name keyword and argument were added.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Use the show route longer-prefixes command to troubleshoot forwarding problems whose cause may be a
long prefix.
The topology keyword must be accompanied by the ipv4 multicast keywords, except when the afi-all
keyword or the safi-all keyword is specified.
Examples The following is sample output from the show route longer-prefixes command:
Field Description
172.29.52.70/32 IP address and length of the route.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 83
RIB Commands
show route longer-prefixes
Field Description
4d15h Time (in hh:mm:ss or ndnh) since the route was
installed in the RIB.
Related Commands
Command Description
router static Establishes a static route.
show route summary, on page 95 Displays the current contents of the routing table in
summary format.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
84 OL-26050-03
RIB Commands
show route next-hop
show route [vrf {vrf-name| all}] [ipv4| ipv6] [unicast| multicast| {topology topo-name}| safi-all] next-hop
[ip-address][[standby]]
Syntax Description vrf { vrf-name | all } (Optional) Specifies a particular VPN routing and forwarding (VRF)
instance or all VRF instances.
Command Default If a vrf vrf-name is not specified, the next-hop gateway or host is displayed for the default IPv4 unicast
VRF.
Release 3.5.0 The ip-address argument was changed from required to optional.
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Use the show route next-hop command to find all routes going through a next-hop address or interface.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 85
RIB Commands
show route next-hop
The topology keyword must be accompanied by the ipv4 multicast keywords, except when the afi-all
keyword or the safi-all keyword is specified.
Examples The following is sample output from the show route next-hop command filtering routes on the next-hop
address:
The following is sample output from the show route next-hop command filtering routes on the next-hop
interface:
Field Description
11.1.1.0/24 IP address and length of the route.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
86 OL-26050-03
RIB Commands
show route next-hop
Related Commands
Command Description
show route, on page 63 Displays the current contents of the routing table.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 87
RIB Commands
show route quarantined
show route [vrf {vrf-name| all}] [ipv4| ipv6] [unicast| multicast| {}| safi-all] quarantined
[ip-address/prefix-length]| ip-address mask] [standby]
Syntax Description vrf { vrf-name | all } (Optional) Specifies a particular VPN routing and forwarding (VRF) instance
or all VRF instances.
/ prefix-length (Optional) Length of the IP address prefix. A decimal value that indicates
how many of the high-order contiguous bits of the address compose the
prefix (the network portion of the address). A slash (/) must precede the
decimal value.
Command Default If a vrf vrf-name is not specified, the next-hop gateway or host is displayed for the default IPv4 unicast
VRF.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
88 OL-26050-03
RIB Commands
show route quarantined
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
RIB quarantining detects mutually recursive routes and quarantines the last route that actually completes the
mutual recursion. The quarantined route is periodically evaluated to see if the mutual recursion has gone away.
If the recursion still exists, the route remains quarantined. If the recursion has gone away, the route is released
from quarantine.
Use the show route quarantined command to display mutually recursive (looping) routes.
The topology keyword must be accompanied by the ipv4 multicast keywords, except when the afi-all
keyword or the safi-all keyword is specified.
Examples The following is sample output from the show route quarantined command:
Field Description
10.10.109.1/32 IP address and length of the route.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 89
RIB Commands
show route quarantined
Field Description
00:00:01 Time (in hh:mm:ss or ndnh) since the route was
installed in the RIB.
Related Commands
Command Description
show route, on page 63 Displays the current contents of the routing table.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
90 OL-26050-03
RIB Commands
show route resolving-next-hop
show route [vrf {vrf-name| all}] [ipv4| ipv6] [unicast| multicast| {topology topo-name}| safi-all]
resolving-next-hop ip-address [ standby]
Syntax Description vrf { vrf-name | all } (Optional) Specifies a particular VPN routing and forwarding (VRF)
instance or all VRF instances.
Command Default If a vrf vrf-name is not specified, the next-hop gateway or host is displayed for the default IPv4 unicast
VRF.
Release 3.3.0 The vrf vrf-name keyword and argument were added.
Release 3.4.0 This command was changed from show route next-hop to show route
resolving-next-hop .
The all and standby keywords were added.
The afi-all keyword was removed.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 91
RIB Commands
show route resolving-next-hop
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Use the show route resolving-next-hop command to perform a recursive route lookup on the supplied
destination address and return information on the next immediate router (next hop) to the destination.
The topology keyword must be accompanied by the ipv4 multicast keywords, except when the afi-all
keyword or the safi-all keyword is specified.
Examples The following is sample output from the show route resolving-next-hop command:
Field Description
Known via Name of the routing protocol that installed the
matching route.
Related Commands
Command Description
show route, on page 63 Displays the current contents of the routing table.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
92 OL-26050-03
RIB Commands
show route static
show route [vrf {vrf-name| all}] [afi-all| ipv4| ipv6] [unicast| multicast| {topology topo-name}| safi-all]
static [ standby]
Syntax Description vrf { vrf-name | all } (Optional) Specifies a particular VPN routing and forwarding (VRF)
instance or all VRF instances.
Command Default If a vrf vrf-name is not specified, the current static routes of the RIB are displayed for the default IPv4
unicast VRF.
Release 3.3.0 The vrf vrf-name keyword and argument were added.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 93
RIB Commands
show route static
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Use the show route static command to display information about static routes in the routing table.
The topology keyword must be accompanied by the ipv4 multicast keywords, except when the afi-all
keyword or the safi-all keyword is specified.
Examples The following is sample output from the show route static command:
Field Description
S Code to indicate the route is static.
Related Commands
Command Description
show route, on page 63 Displays the current contents of the routing table.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
94 OL-26050-03
RIB Commands
show route summary
show route [vrf {vrf-name| all}] [afi-all| ipv4| ipv6] [unicast| multicast| {topology topo-name}| safi-all]
summary [detail] [standby]
Syntax Description vrf { vrf-name | all } (Optional) Specifies a particular VPN routing and forwarding (VRF) instance
or all VRF instances.
detail (Optional) Displays a detailed summary of the contents of the RIB, including
the number of paths and some protocol-specific route attributes.
Command Default If a vrf vrf-name is not specified, the contents of the RIB are displayed for the default IPv4 unicast VRF.
Release 3.3.0 The vrf vrf-name keyword and argument were added.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 95
RIB Commands
show route summary
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Use the show route summary command to display information about routes in the routing information base.
When a route summary is needed frequently—for instance, in a polling situation—use the show route
summary command without the detail keyword. The detail keyword is used less frequently for verification
purposes, because it is much more expensive (in bandwidth), requiring a scan of the entire routing database.
The topology keyword must be accompanied by the ipv4 multicast keywords, except when the afi-all
keyword or the safi-all keyword is specified.
Examples The following is sample output from the show route summary command:
This table explains fields in the output of the show route summary command.
Field Description
Route Source Routing protocol name.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
96 OL-26050-03
RIB Commands
show route summary
The following is sample output from the show route summary command with the detail keyword:
Route Source Active Route Active Path Backup Route Backup Path
static 1 1 0 0
connected 2 2 1 1
local 3 3 0 0
isis 1 1 1 1
Level 1: 0 0 1 1
Level 2: 1 1 0 0
ospf 1673 6 12 0 0
Intra-Area: 3 6 0 0
Inter-Area: 3 6 0 0
External-1: 0 0 0 0
External-2: 0 0 0 0
bgp 100 10 20 4 8
External: 5 10 4 8
Internal: 5 10 0 0
local: 0 0 0 0
Total 7 7 2 2
This table explains fields in the output of the show route summary detail command.
Field Description
Route Source Source of the route. Routing protocol name and type.
Related Commands
Command Description
show route, on page 63 Displays the current contents of the routing table.
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
OL-26050-03 97
RIB Commands
show route summary
Cisco IOS XR Routing Command Reference for the Cisco CRS Router, Release 4.2.x
98 OL-26050-03