5000 Series Layer 2/3 Managed Data Center Switch CLI Reference Guide
659
bgp
,
connected
, or
static
. Use the
all
parameter to display all routes including best and non-best routes. If
you do not use the
all
parameter, the command only displays the best route.
Note:
if you use the
connected
keyword for
protocol
, the
all
option is not available because there are no
best or non-best connected routes.
show ip route [vrf vrf-name] [{ip-address [protocol] | {ip-address mask [longer-prefixes] [protocol] |
protocol} [all] | all}]
Parameters
vrf vrf-name
Indicates the virtual router identification.
ip-address
Indicates the IP-Address of the destination network corresponding to
this route.
protocol
Indicates the routes whose prefix length is equal to or longer than
pfx-len. This option may not be given if the shorter-prefixes option is
given.
mask
Indicates the mask of the destination network corresponding to this
route.
longer-prefixes
Indicates the option of a longer prefix setting.
all
Not available.
Default
The default is None.
Command Mode
•
Privileged EXEC
•
User EXEC
Example
The following shows example CLI display output for the command.
(Routing)#show ip route
Route Codes: R - RIP Derived, C - Connected, S - Static
B - BGP Derived
O - OSPF Derived, IA - OSPF Inter Area
E1 - OSPF External Type 1, E2 - OSPF External Type 2
N1 - OSPF NSSA External Type 1, N2 - OSPF NSSA External Type 2
S U - Unnumbered Peer
L - Leaked Route
K - Kernel, P - Net Prototype
The following shows an example of output that displays leaked routes.
Subnetwork 9.0.0.0/24 is a connected subnetwork in global table and subnet 56.6.6.0/24 is reachable via
a gateway 9.0.0.2 in the global table. These two routes leak into the virtual router
Red
and leak the
connected subnet 8.0.0.0/24 from
Red
to global table.