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 instance <instance-name>
show static route (ipv4|ipv6|mpls)
show static route (ipv4|ipv6|mpls) (unicast|labeled-unicast|multicast)
show static route (ipv4|ipv6|mpls) (unicast|labeled-unicast|multicast) instance <instance-name>

Attribute Description

instance <name>

Static routes for an instance

ipv4

Configures an IPv4 static route.

ipv6

Configures an IPv6 static route.

mpls

Configures an MPLS static route.

(labeled-unicast | multicast | unicast)

Specifies the SAFI for the static route.

Example: List static routes for all instances

supervisor@rtbrick: op> show static route
Instance: default, AFI: ipv4, SAFI: unicast
Prefix/Label                                Pref    Next Hop                                    Interface
198.51.100.11/32                            2       192.0.2.2                                   ifl-0/1/20/0
198.51.100.12/32                            2       192.0.2.2                                   ifl-0/1/20/0
198.51.100.13/32                            2       192.0.2.2                                   ifl-0/1/20/0
Instance: default, AFI: mpls, SAFI: unicast
Prefix/Label                                Pref    Next Hop                                    Interface
20001,bos:1                                 2       192.0.2.2                                   ifl-0/1/20/0
20003,bos:1                                 2       192.0.2.2                                   ifl-0/1/20/0
20005,bos:1                                 2       192.0.2.2                                   ifl-0/1/20/0

Static Conditional-profile Request/Response

The commands below can be used to retrieve and display static conditional-profile request and response data.

Syntax:

show static conditional-profile request
show static conditional-profile response
show static conditional-profile <conditional-profile-name> request
show static conditional-profile <conditional-profile-name> response

Parameter Description

<conditional-profile-name> request

Displays the Static Conditional-profile Request data for the specified conditional profile.

<conditional-profile-name> response

Displays the Static Conditional-profile Response data for the specified conditional profile.

Examples:

The following output shows the static conditional-profile request data for all configured conditional profiles.

supervisor@rtbrick.net: cfg> show static conditional-profile request
Conditional profile name: backbone_v4
  Match instance: vrf1-blue
  Match AFI: ipv4
  Match SAFI: unicast
  Compare type: route-count
  Compare operation: greater-than
  Compare value: 5
  Condition response table name: global.static.1.condition.response
  Compare table name: vrf1-blue.ribd.fib-local.ipv4.unicast
  Destination instance: vrf1-blue
Conditional profile name: backbone_v6
  Match instance: vrf1-blue
  Match AFI: ipv6
  Match SAFI: unicast
  Compare type: route-count
  Compare operation: greater-than
  Compare value: 5
  Condition response table name: global.static.1.condition.response
  Compare table name: vrf1-blue.ribd.fib-local.ipv6.unicast
  Destination instance: vrf1-blue

The following output shows the static conditional-profile response data for all configured conditional profiles.

supervisor@rtbrick.net: cfg> show static conditional-profile response
Conditional profile name: backbone_v4
  Match instance: vrf1-blue
  Match AFI: ipv4
  Match SAFI: unicast
  Compare type: route-count
  Compare operation: greater-than
  Compare value: 5
  Condition response table name: global.static.1.condition.response
  Compare table name: vrf1-blue.ribd.fib-local.ipv4.unicast
  Condition result: True
  Condition holddown: False
  Holddown start time: 2026-09-19T05:07:17.404248+0000
  Last event time: 2026-09-19T05:07:17.404248+0000
  Holddown event count: 1
  Backoff interval: 50
  Backoff timer user handle: 0
  Destination instance: vrf1-blue
Conditional profile name: backbone_v6
  Match instance: vrf1-blue
  Match AFI: ipv6
  Match SAFI: unicast
  Compare type: route-count
  Compare operation: greater-than
  Compare value: 5
  Condition response table name: global.static.1.condition.response
  Compare table name: vrf1-blue.ribd.fib-local.ipv6.unicast
  Condition result: True
  Condition holddown: False
  Holddown start time: 2026-09-19T05:07:17.404256+0000
  Last event time: 2026-09-19T05:07:17.404256+0000
  Holddown event count: 1
  Backoff interval: 50
  Backoff timer user handle: 0
  Destination instance: vrf1-blue

The following output shows the static conditional-profile request data for the specified conditional profile 'backbone_v4'.

supervisor@rtbrick.net: cfg> show static conditional-profile backbone_v4 request
Conditional profile name: backbone_v4
  Match instance: vrf1-blue
  Match AFI: ipv4
  Match SAFI: unicast
  Compare type: route-count
  Compare operation: greater-than
  Compare value: 5
  Condition response table name: global.static.1.condition.response
  Compare table name: vrf1-blue.ribd.fib-local.ipv4.unicast
  Destination instance: vrf1-blue

The following output shows the static conditional-profile response data for the specified conditional profile 'backbone_v4'.

supervisor@rtbrick.net: cfg> show static conditional-profile backbone_v4 response
Conditional profile name: backbone_v4
  Match instance: vrf1-blue
  Match AFI: ipv4
  Match SAFI: unicast
  Compare type: route-count
  Compare operation: greater-than
  Compare value: 5
  Condition response table name: global.static.1.condition.response
  Compare table name: vrf1-blue.ribd.fib-local.ipv4.unicast
  Condition result: True
  Condition holddown: False
  Holddown start time: 2026-09-19T05:07:17.404248+0000
  Last event time: 2026-09-19T05:07:17.404248+0000
  Holddown event count: 1
  Backoff interval: 50
  Backoff timer user handle: 0
  Destination instance: vrf1-blue

Static Routes in the Routing Table

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

Syntax:

show route (ipv4|ipv6|mpls) source static
show route (ipv4|ipv6|mpls) source static detail
show route (ipv4|ipv6|mpls) source static instance <instance-name>
show route (ipv4|ipv6|mpls) source static instance <instance-name> detail
show route (ipv4|ipv6|mpls) source static instance <instance-name> label <label>
show route (ipv4|ipv6|mpls) source static instance <instance-name> label <label> detail
show route (ipv4|ipv6|mpls) source static instance <instance-name> prefix <prefix>
show route (ipv4|ipv6|mpls) source static instance <instance-name> prefix <prefix> detail
show route (ipv4|ipv6|mpls) source static instance <instance-name> prefix <prefix> exact
show route (ipv4|ipv6|mpls) source static instance <instance-name> prefix <prefix> exact detail
show route (ipv4|ipv6|mpls) source static instance <instance-name> summary
show route (ipv4|ipv6|mpls) source static instance <instance-name> summary platform
show route (ipv4|ipv6|mpls) source static label <label>
show route (ipv4|ipv6|mpls) source static label <label> detail
show route (ipv4|ipv6|mpls) source static prefix <prefix>
show route (ipv4|ipv6|mpls) source static prefix <prefix> detail
show route (ipv4|ipv6|mpls) source static prefix <prefix> exact
show route (ipv4|ipv6|mpls) source static prefix <prefix> exact detail
show route (ipv4|ipv6|mpls) source static summary
show route (ipv4|ipv6|mpls) source static summary platform
show route (ipv4|ipv6|mpls) (unicast|labeled-unicast) source static
show route (ipv4|ipv6|mpls) (unicast|labeled-unicast) source static detail
show route (ipv4|ipv6|mpls) (unicast|labeled-unicast) source static instance <instance-name>
show route (ipv4|ipv6|mpls) (unicast|labeled-unicast) source static instance <instance-name> detail
show route (ipv4|ipv6|mpls) (unicast|labeled-unicast) source static instance <instance-name> label <label>
show route (ipv4|ipv6|mpls) (unicast|labeled-unicast) source static instance <instance-name> label <label> detail
show route (ipv4|ipv6|mpls) (unicast|labeled-unicast) source static instance <instance-name> prefix <prefix>
show route (ipv4|ipv6|mpls) (unicast|labeled-unicast) source static instance <instance-name> prefix <prefix> detail
show route (ipv4|ipv6|mpls) (unicast|labeled-unicast) source static instance <instance-name> prefix* <prefix> exact.
show route (ipv4|ipv6|mpls) (unicast|labeled-unicast) source static instance <instance-name> prefix <prefix> exact detail
show route (ipv4|ipv6|mpls) (unicast|labeled-unicast) source static instance <instance-name> summary
show route (ipv4|ipv6|mpls) (unicast|labeled-unicast) source static instance <instance-name> summary platform
show route (ipv4|ipv6|mpls) (unicast|labeled-unicast) source static label <label>
show route (ipv4|ipv6|mpls) (unicast|labeled-unicast) source static label <label> detail
show route (ipv4|ipv6|mpls) (unicast|labeled-unicast) source static prefix <prefix>
show route (ipv4|ipv6|mpls) (unicast|labeled-unicast) source static prefix <prefix> detail
show route (ipv4|ipv6|mpls) (unicast|labeled-unicast) source static prefix <prefix> exact
show route (ipv4|ipv6|mpls) (unicast|labeled-unicast) source static prefix <prefix> exact detail
show route (ipv4|ipv6|mpls) (unicast|labeled-unicast) source static summary
show route (ipv4|ipv6|mpls) (unicast|labeled-unicast) source static summary platform

Attribute Description

<afi>

Supported AFIs are ipv4, ipv6, and mpls.

<safi>

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

detail

Detailed route information

instance <instance-name>

Routing table information for a specific instance

label <label>

Destination label

prefix <prefix>

Destination prefix

source

Source of the routing information

summary

Summary of the routing information

platform

Platform-specific information

exact

Exact match of the routing information.

Example 1: List static routes information

supervisor@rtbrick: op> show route ipv4 source static
Flags: & - Imported
Instance: default, AFI: ipv4, SAFI: unicast
Flags  Prefix/Label                                Source               Pref  Next Hop                                    Outgoing Interface
       198.51.100.11/32                            static                  2  192.0.2.2                                   ifl-0/1/20/0
       198.51.100.12/32                            static                  2  192.0.2.2                                   ifl-0/1/20/0
       198.51.100.13/32                            static                  2  192.0.2.2                                   ifl-0/1/20/0

Example 2: List detailed static routes information

supervisor@rtbrick: op> show route ipv4 source static detail
Instance: default, AFI: ipv4, SAFI: unicast
  Prefix: 198.51.100.11/32
    Source: static, Preference: 2
      Next Hop: 192.0.2.2
        Covering prefix: 192.0.2.2/32
        Next Hop type: direct, Next Hop action: None
        Resolved in: default-ipv4-unicast(Primary)
        Outgoing Interface: ifl-0/1/20/0, NextHop MAC: 5c:07:58:79:0a:17
  Prefix: 198.51.100.12/32
    Source: static, Preference: 2
      Next Hop: 192.0.2.2
        Covering prefix: 192.0.2.2/32
        Next Hop type: direct, Next Hop action: None
        Resolved in: default-ipv4-unicast(Primary)
        Outgoing Interface: ifl-0/1/20/0, NextHop MAC: 5c:07:58:79:0a:17
  Prefix: 198.51.100.13/32
    Source: static, Preference: 2
      Next Hop: 192.0.2.2
        Covering prefix: 192.0.2.2/32
        Next Hop type: direct, Next Hop action: None
        Resolved in: default-ipv4-unicast(Primary)
        Outgoing Interface: ifl-0/1/20/0, NextHop MAC: 5c:07:58:79:0a:17

Example 3: List MPLS route information

supervisor@rtbrick: op> show route mpls
Flags: & - Imported
Instance: default, AFI: mpls, SAFI: unicast
Flags  Prefix/Label                                Source               Pref  Next Hop                                    Outgoing Interface
       20001,bos:1                                 static                  2  192.0.2.2                                   ifl-0/1/20/0
       20003,bos:1                                 static                  2  192.0.2.2                                   ifl-0/1/20/0
       20005,bos:1                                 static                  2  192.0.2.2                                   ifl-0/1/20/0