Users Guide

Table Of Contents
192.168.2.2 90:b1:1c:f4:a6:e6 ethernet1/1/49:1 ethernet1/1/49:1
193.168.2.3 54:bf:64:e6:d4:c5 vlan4000 port-channel1000
Supported
Releases
10.2.0E or later
show ip route
Displays IP route information.
Syntax
show ip route [vrf vrf-name] [all | bgp | connected | ospf process-id | static | ip-prefix/mask|
summary] load-balancing {ingress-port enable | [tcp-udp-selection l4–destination-port | l4–source-
port] | [ip-selection destination-ip | source-ip | protocol | vlan-id | l4–destination-port | l4–
source-port] | [ipv6–selection destination-ip | source-ip | protocol | vlan-id | l4–destination-port |
l4–source-port] | [mac-selection destination-mac | source-mac | ethertype | vlan-id]}
Parameters
vrf vrf-name — (Optional) Enter vrf and then the VRF name to list the routes in the route table of a specific VRF.
all — (Optional) Displays both active and non-active IP routes.
bgp — (Optional) Displays BGP route information.
connected — (Optional) Displays only the directly connected routes.
ospf process-id — (Optional) Displays route information for the OSPF process, from 1 to 65535.
static — (Optional) Displays static route information.
ip-prefix/mask — (Optional) Displays routes for the destination prefix list.
NOTE: This option works only for the exact prefix and the mask length.
summary — (Optional) Displays an IP route summary.
Default Not configured
Command Mode EXEC
Usage Information None
Example
OS10# show ip route
Codes: C - connected
S - static
B - BGP, IN - internal BGP, EX - external 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, > - non-active route
Gateway of last resort is not set
Destination Gateway Dist/Metric Last Change
------------------------------------------------------------------
C 10.1.1.0/24 via 10.1.1.1 vlan100 0/0 01:16:56
B EX 10.1.2.0/24 via 10.1.2.1 vlan101 20/0 01:16:56
O 10.1.3.0/24 via 10.1.3.1 vlan102 110/2 01:16:56
B IN 10.1.4.0/24 via 10.1.4.1 vlan103 200/0 01:16:56
OS10(config)# do show ip route vrf VRF1
Codes: C - connected
S - static
B - BGP, IN - internal BGP, EX - external 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, * - candidate default,
+ - summary route, > - non-active route
Gateway of last resort is not set
Destination Gateway Dist/Metric Last Change
----------------------------------------------------------------------------------------------------
C 120.0.0.0/24 via 120.0.0.1 ethernet1/1/1 0/0 00:00:57
S 160.0.0.0/24 via 120.0.0.2 ethernet1/1/1 1/0 00:00:04
OS10(config)# do show ip route vrf VRF2
Codes: C - connected
S - static
B - BGP, IN - internal BGP, EX - external BGP
O - OSPF, IA - OSPF inter area, N1 - OSPF NSSA external type 1,
N2 - OSPF NSSA external type 2, E1 - OSPF external type 1,
590
Layer 3