Problem
You have configured a routing protocol and you want to make sure the router is learning routes from that protocol.
Solution
Include the protocol name in the show route command:
aviva@RouterG> show route protocol isis inet.0: 18 destinations, 18 routes (18 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 10.0.2.0/24 *[IS-IS/18] 00:45:17, metric 20 > to 10.0.1.1 via fe-0/0/1.0 to 10.0.0.2 via fe-1/0/1.0 10.0.8.0/24 *[IS-IS/18] 00:45:17, metric 20 > to 10.0.0.2 via fe-1/0/1.0 10.0.21.0/24 *[IS-IS/15] 00:45:17, metric 20 > to 10.0.16.1 via fe-1/0/0.0 10.0.24.0/24 *[IS-IS/18] 00:45:17, metric 20 > to 10.0.1.1 via fe-0/0/1.0 10.0.29.0/24 *[IS-IS/18] 00:45:17, metric 30 > to 10.0.1.1 via fe-0/0/1.0 192.168.14.1/32 *[IS-IS/18] 00:45:17, metric 20 > to 10.0.1.1 via fe-0/0/1.0 192.168.17.1/32 *[IS-IS/18] 00:45:17, metric 10 > to 10.0.0.2 via fe-1/0/1.0 192.168.18.1/32 *[IS-IS/18] 00:45:17, metric 10 > to 10.0.1.1 via fe-0/0/1.0 192.168.42.1/32 *[IS-IS/15] 00:45:17, metric 10 > to 10.0.16.1 via fe-1/0/0.0
Discussion
When you are setting up routing protocols on your network, use the show route protocol command to make sure that each router has a route to each other router and that the routes are being directed out the proper interface on the router. In this recipe, we are setting up an IS-IS network and checking that the local IS-IS router has learned routes to all IS-IS destinations.
Router Configuration and File Management
Basic Router Security and Access Control
IPSec
SNMP
Logging
NTP
Router Interfaces
IP Routing
Routing Policy and Firewall Filters
RIP
IS-IS
OSPF
BGP
MPLS
VPNs
IP Multicast