show ip static route

Displays information about IPv4 static routes.
Syntax
show ip static route [ ip-address | ip-address /mask ] [ vrf vrf-name ]
Parameters
ip-address
Specifies an IP address.
ip-address/mask
Specifies an IP address and mask.
vrf vrf-name
Specifies a VRF.
Modes

User EXEC mode

Usage Guidelines

The Bfd-State field in the command output is supported for ICX 7850 devices only.

The show ip static route command displays the following information:

Output field Description
IP Static Routing Table The number of entries in the IP Static Routing Table.
IP Prefix Lists the destination network prefixes for which static routes are defined.
Next Hop The next-hop IP address that packets should be forwarded to for reaching the specified IP prefix.
Interface The interface through which the route is reachable.
Dis/Metric/Tag
  • Dis: Administrative distance of the route. Lower values indicate more preferred routes.
  • Metric: The metric associated with the route. This typically indicates the cost of the route.
  • Tag:
Name A name or label assigned to the route.
Bfd-State A tag value that can be used for route filtering and management.
Watcher The watcher profile associated with the route.
Examples

The following is sample output from the show ip static route command for an ICX 7850 device.

device> show ip static route

IP Static Routing Table - 9 entries:
 IP Prefix          Next Hop        Interface  Dis/Metric/Tag  Name           Bfd-State
*1.1.1.0/24         50.50.50.1      -          1/1/0                          NA
*3.3.3.0/24         50.50.50.1      -          1/1/0                          NA
*10.177.0.0/16      10.177.112.1    -          1/1/0                          NA
 11.11.11.0/24      20.20.20.2      -          1/1/0                          NA
 20.0.0.0/24        10.0.0.1        -          1/1/0                          NA
 33.33.33.0/24      20.20.20.2      -          1/1/0                          NA
 40.40.40.0/24      20.20.20.2      -          1/1/0                          NA
 40.40.40.0/24      30.30.30.2      -          1/1/0                          NA
 50.50.50.0/24      20.20.20.2      -          1/1/0                          NA
 100.100.100.100/32 10.0.0.1        -          1/1/0                          NA

The following is sample output from the show ip static route command when watcher profiles mapped to the configured static routes.

device> show ip static route

IP Static Routing Table -  3 entries:
 IP Prefix          Next Hop        Interface  Dis/Metric/Tag  Name            Watcher
*0.0.0.0/0          10.177.112.1    -          1/1/0
*28.1.1.0/24        DIRECT          e 1/2/1    100/1/0                          w2
 28.1.1.0/24        DIRECT          e 1/1/8    150/1/0                          w1
*40.3.3.0/24        11.1.1.10       -          100/1/0
 40.3.3.0/24        22.1.1.10       -          120/1/0                          w1
 40.3.3.0/24        33.1.1.10       -          150/1/0         temp1            w2
 40.3.3.0/24        10.10.200.10    -          200/1/0                          w2
History
Release version Command history
10.0.20a The output for this command was modified to include information for watcher profiles mapped to the configured static routes.