Static Routing Operational Commands

Show Commands

Static Routes Created by staticd

These commands show static routes as created by the static route daemon (staticd).

Syntax:

show static route <options>

Attribute Description

<afi>

Supported AFIs are ipv4, ipv6, and mpls.

<safi>

Supported SAFIs are unicast, labeled-unicast, and multicast.

instance <name>

Static routes for an instance

Example: List static routes for all instances

supervisor@dev1: cfg> show static route
Instance: default, AFI: ipv4, SAFI: unicast
Prefix/Label              Pref    Next Hop                  Interface
198.51.100.100/24          2       198.51.100.22                   -
Instance: default, AFI: ipv6, SAFI: unicast
Prefix/Label              Pref    Next Hop                  Interface
2001:db8:0:334::/32                2     2001:db8:0:99::                      -

Static Routes in the Routing Table

These commands show the static routes included in the final routing table.

Syntax:

show route <options> source static <options>

Attribute Description

<afi>

Supported AFIs are ipv4, ipv6, and mpls.

<safi>

Supported SAFIs are unicast, labeled-unicast, and multicast.

detail

Detailed route information

instance <name>

Routing table information for a specific instance

label <value>

Destination label

mpls

Address family

prefix <value>

Destination prefix

source

Source of the routing information

Example 1: List static routes information

supervisor@dev1: cfg> show route ipv4 source static
Instance: default, AFI: ipv4, SAFI: unicast
Prefix/Label                             Source            Pref    Next Hop                                 Interface
198.51.100.100/24                         static            2       198.51.100.22                                  ifl-0/0/1/4
supervisor@dev1: cfg>

Example 2: List detailed static routes information

supervisor@dev1: cfg> show route ipv4 source static detail
Instance: default, AFI: ipv4, SAFI: unicast
198.51.100.100/24
  Source: static, Preference: 2
    Next Hop: 198.51.100.22
      Covering prefix: 198.51.100.22/24
      Next Hop type: direct, Next Hop action: None
      Resolved in: default-ipv4-unicast
      Egress interface: ifl-0/0/1/4, NextHop MAC: 7a:00:81:64:04:04

Example 3: List MPLS route information

supervisor@rtbrick: cfg> show route mpls
Instance: default, AFI: mpls, SAFI: unicast
Prefix/Label    Source            Pref    Next Hop                Interface
20010           bgp               170     2001:db8:0:110::        ifl-0/0/17/1001
20011           bgp               170     2001:db8:0:110::        ifl-0/0/17/1001
20012           bgp               170     2001:db8:0:110::        ifl-0/0/17/1001
20013           bgp               170     2001:db8:0:110::        ifl-0/0/17/1001
20014           bgp               170     2001:db8:0:110::        ifl-0/0/17/1001
20015           bgp               170     2001:db8:0:110::        ifl-0/0/17/1001
20016           bgp               170     2001:db8:0:110::        ifl-0/0/17/1001
20017           bgp               170     2001:db8:0:110::        ifl-0/0/17/1001
20018           bgp               170     2001:db8:0:110::        ifl-0/0/17/1001