Examples
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, B - BGP
O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - ISIS, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, su - IS-IS summary null, * - candidate default
U - per-user static route, o - ODR, L - local, G - DAGR
A - access/subscriber, (!) - FRR Backup path
Gateway of last resort is 1.0.0.1 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 1.0.0.1, 13:14:59
C 1.0.0.0/16 is directly connected, 13:14:59, MgmtEth0/5/CPU0/0
L 1.0.14.15/32 is directly connected, 13:14:59, MgmtEth0/5/CPU0/0
C 3.2.3.0/24 is directly connected, 00:04:39, tenGigE 0/3/0/0
L 3.2.3.2/32 is directly connected, 00:04:39, tenGigE 0/3/0/0
O E2 5.2.5.0/24 [110/20] via 3.3.3.1, 00:04:20, tenGigE 0/3/0/0
O E2 6.2.6.0/24 [110/20] via 3.3.3.1, 00:04:20, tenGigE 0/3/0/0
C 7.2.7.0/24 is directly connected, 00:04:20, tenGigE 0/3/0/7
L 7.2.7.2/32 is directly connected, 00:04:20, tenGigE 0/3/0/7
O E2 8.2.8.0/24 [110/20] via 3.3.3.1, 00:04:20, tenGigE 0/3/0/0
C 10.3.0.0/16 is directly connected, 13:14:59, tenGigE 0/0/0/0
L 10.3.0.2/32 is directly connected, 13:14:59, tenGigE 0/0/0/0
This table
describes the significant fields shown in the display.
Table 11. show route
Field Descriptions
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).
|
[1/0]
|
First
number in the brackets is the administrative distance of the information
source; the second number is the metric for the route.
|
1.0.0.0/16
|
Address
and prefix length of the remote network.
|
MgmtEthernet 0/5/CPU0/0
|
Specifies
the interface through which the specified network can be reached.
|
C
|
Code
indicating how the route was derived. See the code legend preceding the output.
In this case, the route was connected.
|
L
|
Code
indicating how the route was derived. See the code legend preceding the output.
In this case, the route was local.
|
O
|
Code
indicating how the route was derived. See the code legend preceding the output.
In this case, the route was on-demand routing (ODR).
|
E2
|
Code
indicating how the route was derived. See the code legend preceding the output.
In this case, the route was OSPF external type 2.
|
8.2.8.0/24
|
Address
and prefix length of the remote network connected to the static route.
|
via
3.3.3.1
|
Specifies
the address of the next router to the remote network.
|
13:14:59
|
Specifies
the last time the route was updated.
|
(!)
|
Code
indicating fast re-route (FRR) backup path information.
|
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:
RP/0/RP0/CPU0:router# show route 10.0.0.0
Routing entry for 10.0.0.0/16
Known via "connected", distance 0, metric 0 (connected)
Installed Mar 22 22:10:20.906
Routing Descriptor Blocks
directly connected, via tenGigE 0/0/0/0
Route metric is 0
No advertising protos.
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 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.
RP/0/RP0/CPU0:router# show route 10.0.0.1
Routing entry for 10.0.0.0/8
Known via "isis", distance 115, metric 10, type level-2
Installed Jan 22 09:26:56.210
Routing Descriptor Blocks:
* 10.0.0.9, from 10.0.0.9, via tenGigE 2/1
Route metric is 10
No advertising protos.
This table
describes the significant fields shown in the display.
Table 12. show route
with IP Address Field Descriptions
Field
|
Description
|
Routing
entry for
|
Network
address and mask.
|
Known via
|
Indicates
how the route was derived.
|
distance
|
Administrative distance of the information source.
|
metric
|
Route
value assigned by the routing protocol.
|
type
|
IS-IS type
level.
|
Routing
Descriptor Blocks:
|
Displays
the next-hop IP address followed by the information source.
|
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.
|
Route
metric
|
Best
metric for this Routing Descriptor Block.
|
No
advertising protos.
|
Indicates
that no other protocols are advertising the route to their redistribution
consumers. If the route is being advertised, protocols are listed in the
following manner:
Redist Advertisers:
isis p
ospf 43
|
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
Codes: C - connected, S - static, R - RIP, B - BGP
O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - ISIS, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, su - IS-IS summary null, * - candidate default
U - per-user static route, o - ODR, L - local, G - DAGR
A - access/subscriber, (!) - FRR Backup path
Gateway of last resort is not set
i L1 10.1.102.0/24 [115/20] via 10.1.102.41, 1w4d, tenGigE 0/1/0/0.1
i L1 10.3.3.0/24 [115/20] via 10.1.102.41, 1w4d, tenGigE 0/1/0/0.1
i L1 192.168.0.40/32 [115/20] via 10.1.102.41, 1w4d, tenGigE 0/1/0/0.1
Note
|
multicast keyword is not supported.
|
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
Codes: C - connected, S - static, R - RIP, B - BGP
O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - ISIS, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, su - IS-IS summary null, * - candidate default
U - per-user static route, o - ODR, L - local, G - DAGR
A - access/subscriber, (!) - FRR Backup path
Gateway of last resort is not set
B 1.2.3.4/32 [200/0] via 10.10.1.3, 00:01:40
C 2.0.0.0/30 is directly connected, 03:28:47, ServiceApp40
L 2.0.0.1/32 is directly connected, 03:28:47, ServiceApp40
C 2.0.1.0/30 is directly connected, 03:13:05, ServiceApp43
L 2.0.1.1/32 is directly connected, 03:13:05, ServiceApp43
C 2.4.1.0/24 is directly connected, 03:11:35, tenGigE 0/4/0/0
L 2.4.1.2/32 is directly connected, 03:11:35, tenGigE 0/4/0/0
C 3.1.0.0/30 is directly connected, 03:33:48, ServiceInfra1
L 3.1.0.2/32 is directly connected, 03:33:48, ServiceInfra1
C 3.1.3.0/30 is directly connected, 03:18:14, ServiceInfra2
L 3.1.3.2/32 is directly connected, 03:18:14, ServiceInfra2
C 5.3.0.0/16 is directly connected, 03:58:29, MgmtEth0/RP0/CPU0/0
is directly connected, 03:58:29, MgmtEth0/RP1/CPU0/0
L 5.3.16.10/32 is directly connected, 03:59:07, MgmtEth0/RP1/CPU0/0
L 5.3.16.12/32 [0/0] via 5.3.16.12, 03:58:29, MgmtEth0/RP0/CPU0/0
L 5.3.16.16/32 is directly connected, 03:58:29, MgmtEth0/RP0/CPU0/0
B 5.4.0.0/16 [200/0] via 10.1.1.10, 00:01:36
S 5.10.0.0/16 [1/0] via 5.3.0.1, 03:59:07
O 10.1.1.3/32 [110/11] via 40.1.10.1, 00:00:17, Bundle-Ether10
[110/11] via 200.40.1.101, 00:00:17, Bundle-Ether1.1
[110/0] via 100.100.2.1, 00:00:17, tenGigE 0/2/0/3.1 (!)
L 10.1.1.6/32 is directly connected, 03:58:29, Loopback0
O 10.1.1.9/32 [110/22] via 40.1.10.1, 00:00:17, Bundle-Ether10
[110/22] via 200.40.1.101, 00:00:17, Bundle-Ether1.1
[110/0] via 100.100.2.1, 00:00:17, tenGigE 0/2/0/3.1 (!)
O 10.1.1.10/32 [110/111] via 40.1.10.1, 00:00:17, Bundle-Ether10
[110/111] via 200.40.1.101, 00:00:17, Bundle-Ether1.1
[110/0] via 100.100.2.1, 00:00:17, tenGigE 0/2/0/3.1 (!)
O 10.1.1.11/32 [110/0] via 40.1.1.1, 00:01:33, Bundle-Ether1 (!)
[110/101] via 40.3.3.2, 00:01:33, tenGigE 0/5/0/9
O 10.1.1.12/32 [110/111] via 40.1.10.1, 00:00:17, Bundle-Ether10
[110/111] via 200.40.1.101, 00:00:17, Bundle-Ether1.1
[110/0] via 100.100.2.1, 00:00:17, tenGigE 0/2/0/3.1 (!)
O 10.1.1.16/32 [110/21] via 40.1.10.1, 00:00:17, Bundle-Ether10
[110/21] via 200.40.1.101, 00:00:17, Bundle-Ether1.1
[110/0] via 100.100.2.1, 00:00:17, tenGigE 0/2/0/3.1 (!)
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
Routing entry for 10.1.1.16/32
Known via "ospf 2", distance 110, metric 21, type intra area
Installed Oct 28 16:07:05.752 for 00:01:56
Routing Descriptor Blocks
40.1.10.1, from 10.1.1.16, via Bundle-Ether10, Protected
Route metric is 21
Label: None
Tunnel ID: None
Extended communities count: 0
Path id:2 Path ref count:0
Backup path id:33
200.40.1.101, from 10.1.1.16, via Bundle-Ether1.1, Protected
Route metric is 21
Label: None
Tunnel ID: None
Extended communities count: 0
Path id:1 Path ref count:0
Backup path id:33
100.100.2.1, from 10.1.1.16, via tenGigE 0/2/0/3.1, Backup
Route metric is 0
Label: None
Tunnel ID: None
Extended communities count: 0
Path id:33 Path ref count:2
Route version is 0xe (14)
No local label
IP Precedence: Not Set
QoS Group ID: Not Set
Route Priority: RIB_PRIORITY_NON_RECURSIVE_LOW (6) SVD Type RIB_SVD_TYPE_LOCAL
No advertising protos.
This example is a sample show route ipv6 command output:
RP/0/RP0/CPU0:router#show route ipv6
Fri May 18 14:00:10.996 EDT
Codes: C - connected, S - static, R - RIP, B - BGP
O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - ISIS, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, su - IS-IS summary null, * - candidate default
U - per-user static route, o - ODR, L - local, G - DAGR
A - access/subscriber, (!) - FRR Backup path
Gateway of last resort is not set
C 1111:2222::abcd/128 is directly connected,
06:20:02, tenGigE 0/0/0/4
This example is a
sample
show route ipv6
detail command output:
RP/0/RP0/CPU0:router#show route ipv6 1111:2222::abcd/128 detail
Fri May 18 14:00:20.798 EDT
Routing entry for 1111:2222::abcd/128
Known via "connected l2tpv3_xconnect", distance 0, metric 0 (connected)
Installed May 18 07:40:08.522 for 06:20:12
Routing Descriptor Blocks
1111:2222::abcd directly connected, via tenGigE 0/0/0/4
Route metric is 0
Label: 0x2 (2)
Tunnel ID: None
Extended communities count: 0
Route version is 0xd (13)
No local label
IP Precedence: Not Set
QoS Group ID: Not Set
Route Priority: RIB_PRIORITY_CONNECTED (2) SVD Type RIB_SVD_TYPE_LOCAL
Download Priority 0, Download Version 13
No advertising protos.
This example is a
sample
show route ipv6
summary command output:
RP/0/RP0/CPU0:router#show route ipv6 summary
Fri May 18 14:00:28.988 EDT
Route Source Routes Backup Deleted Memory (bytes)
local 0 0 0 0
connected l2tpv3_xconnect 1 0 0 160
connected 0 0 0 0
Total 1 0 0 160