Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

Dell Command Line Reference Guide for the S4048–ON System 9.14.2.6

show ip route

View information, including how they were learned, about the IP routes on the switch.

Syntax
show ip route [vrf vrf-name] hostname | ip-address [mask] [longer-prefixes] | list prefix-list | protocol [process-id | routing-tag] | all | connected | static | summary]
Parameters
vrf vrf-name
(OPTIONAL) Enter the keyword vrf and then the VRF name to list the routes in the route table of a specific VRF.
ip-address
(OPTIONAL) Specify a name of a device or the IP address of the device to view more detailed information about the route.
mask
(OPTIONAL) Specify the network mask of the route. Use this parameter with the IP address parameter.
longer-prefixes
(OPTIONAL) Enter the keywords longer-prefixes to view all routes with a common prefix.
list prefix-list
(OPTIONAL) Enter the keyword list and the name of a configured prefix list. For more information, refer to the show ip route list command.
protocol
(OPTIONAL) Enter the name of a routing protocol (bgp, isis, ospf, rip) or the keywords connected or static.
NOTE bgp, isis, ospf, and rip.
  • If you enter bgp, you can include the BGP as-number .
  • If you enter isis, you can include the ISIS routing-tag.
  • If you enter ospf, you can include the OSPF process-id.
process-id
(OPTIONAL) Specify that only OSPF routes with a certain process ID must be displayed.
routing-tag
(OPTIONAL) Specify that only ISIS routes with a certain routing tag must be displayed.
connected
(OPTIONAL) Enter the keyword connected to view only the directly connected routes.
all
(OPTIONAL) Enter the keyword all to view both active and non-active routes.
static
(OPTIONAL) Enter the keyword static to view only routes the ip route command configures.
summary
(OPTIONAL) Enter the keyword summary. For more information, refer to the show ip route summary command.
Command Modes
  • EXEC
  • EXEC Privilege
Command History

This guide is platform-specific. For command information about other platforms, see the relevant Dell EMC Networking OS Command Line Reference Guide.

Version
Description
9.10(0.1)
Introduced on the S6010-ON and S4048T-ON.
9.10(0.0)
Introduced on the S3148.
9.10(0.0)
Introduced on the S6100–ON.
9.8(2.0)
Introduced on the S3100 series.
9.8(1.0)
Introduced on the Z9100–ON.
9.8(0.0P5)
Introduced on the S4048-ON.
9.8(0.0P2)
Introduced on the S3048-ON.
9.7(0.0)
Introduced on the S6000-ON.
9.4.(0.0)
Added support for VRF.
9.2(1.0)
Introduced on the Z9500.
9.0.2.0
Introduced on the S6000.
8.3.19.0
Introduced on the S4820T.
8.3.11.1
Introduced on the Z9000.
8.3.7.0
Introduced on the S4810.
8.1.1.0
Introduced on the E-Series.
7.9.1.0
Introduced VRF on the E-Series.
7.6.1.0
Introduced on the S-Series.
7.5.1.0
Introduced on the C-Series.
pre-6.1.1.0
Introduced on the E-Series.
Usage Information
The following describes the show ip route all command in the following example.
Field
Description
(undefined)
Identifies the type of route:
  • C = connected
  • S = static
  • R = RIP
  • B = BGP
  • IN = internal BGP
  • EX = external BGP
  • LO = Locally Originated
  • 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
  • i = IS-IS
  • L1 = IS-IS level-1
  • L2 = IS-IS level-2
  • IA = IS-IS inter-area
  • * = candidate default
  • > = non-active route
  • + = summary routes

The weight for weighted ECMP route calculations is displayed for each path in the route in show ip route command. The ECMP weight is displayed only if weighted ECMP is enabled using the ip ecmp weighted command is enabled.

If weighted ECMP is disabled, the show ip route command does not show the weighted ECMP route information.

Destination
Identifies the route’s destination IP address
Gateway
Identifies whether the route is directly connected and on which interface the route is configured.
Dist/Metric
Identifies if the route has a specified distance or metric.
Last Change
Identifies when the route was last changed or configured.
Example
DellEMC# show ip route all

Codes:C- connected, S - static, R - RIP
      B- BGP, IN - internal BGP, EX - external BGP, LO - Locally Originated
      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, i - IS-IS, L1 - IS-IS level-1
      L2- IS-IS level-2, IA - IS-IS inter area, * - candidate default
      >- non-active route + - summary route

Gateway of last resort is not set

     Destination     Gateway            Dist/Metric Last Change
----------- ------- ----------- -----------
R   3.0.0.0/8       via 100.10.10.10, Te 2/8 120/1   00:07:12
                    via 101.10.10.10, Te 2/9
    100.10.10.0/24  Direct, Te 2/8           0/0     00:08:54
> R 100.10.10.0/24  Direct, Te 2/8           120/0   00:08:54
C   101.10.10.0/24  Direct, Te 2/9           0/0     00:09:15
> R 101.10.10.0/24  Direct, Te 2/9           120/0   00:09:15
DellEMC#
Example (Summary)
DellEMC# show ip route summary

Route Source  Active Routes   Non-active Routes
connected     2               0
static        1               0
Total         3               0
Total 3 active route(s) using 612 bytes
R1_E600i>show ip route static ?
|                    Pipe through a command
<cr>
R1_E600i>show ip route static
    Destination   Gateway            Dist/Metric Last Change
----------- ------- ----------- -----------
*S  0.0.0.0/0     via 10.10.91.9, Te 1/2     1/0        3d2h
DellEMC>
Example (vrf)
DellEMC# show ip route vrf test1

Codes: C - connected, S - static, R - RIP,
       B - BGP, IN - internal BGP, EX - external BGP,LO - Locally Originated,
       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, i - IS-IS, L1 - IS-IS level-1,
       L2 - IS-IS level-2, IA - IS-IS inter area, * - candidate default,
> - non-active route, + - summary route

Gateway of last resort is not set

   Destination    Gateway         Dist/Metric Last Change
   -----------    -------         ----------- -----------
C  13.0.0.0/24    Direct, Te 1/17      0/0    00:00:04
Example (With Weighted ECMP Enabled)
DellEMC(conf)# ip route 1.1.1.0/24 6.6.6.2 weight 100
DellEMC(conf)# ip route 1.1.1.0/24 6.6.6.2 weight 200
DellEMC(conf)# do show ip route
Codes: C - connected, S - static, R - RIP,
       B - BGP, IN - internal BGP, EX - external BGP,LO - Locally Originated,
       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, i - IS-IS, L1 - IS-IS level-1,
       L2 - IS-IS level-2, IA - IS-IS inter area, * - candidate default,
       > - non-active route, + - summary route
Gateway of last resort is not set
       Destination            Gateway                                     Dist/Metric Last Change
       -----------                    -------                             ----------- -----------
  S    1.1.1.0/24         4.4.4.2, via Te 1/4 , weight 100                1/0    00:00:01
                                    6.6.6.2, via Te 1/16,  weight 200
  C    4.4.4.0/24         Direct, Te 1/4                                  0/0    00:01:32
  C    6.6.6.0/24         Direct, Te 1/16                                 0/0    00:01:25


DellEMC# show ip route 1.1.1.0/24
Routing entry for 1.1.1.0/24
    Known via "static", distance 1, metric 0
    Last update 00:05:01 ago
    Routing Descriptor Blocks:
    * 4.4.4.2, via TenGigabitEthernet 1/4 weight 100
    * 6.6.6.2, via TenGigabitEthernet 1/16 weight 200
DellEMC(conf)#           
Example (With Weighted ECMP Disabled)
DellEMC(conf)# ip route 1.1.1.0/24 6.6.6.2 weight 100
DellEMC(conf)# ip route 1.1.1.0/24 6.6.6.2 weight 200
DellEMC(conf)# do show ip route
Codes: C - connected, S - static, R - RIP,
       B - BGP, IN - internal BGP, EX - external BGP,LO - Locally Originated,
       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, i - IS-IS, L1 - IS-IS level-1,
       L2 - IS-IS level-2, IA - IS-IS inter area, * - candidate default,
       > - non-active route, + - summary route
Gateway of last resort is not set
       Destination            Gateway                                    Dist/Metric Last Change
       -----------                    -------                            ----------- -----------
  S    1.1.1.0/24         4.4.4.2, via Te 1/4                            1/0    00:00:01
                                    6.6.6.2, via Te 1/16
  C    4.4.4.0/24         Direct, Te 1/4                                 0/0    00:01:32
  C    6.6.6.0/24         Direct, Te 1/16                                0/0    00:01:25

DellEMC(conf)#do show ip route 1.1.1.0/24
Routing entry for 1.1.1.0/24
    Known via "static", distance 1, metric 0
    Last update 00:05:01 ago
    Routing Descriptor Blocks:
    * 4.4.4.2, via TenGigabitEthernet 1/4 
    * 6.6.6.2, via TenGigabitEthernet 1/16 
DellEMC(conf)#           

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\