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:
| Attribute | Description |
|---|---|
|
Supported AFIs are ipv4, ipv6, and mpls. |
|
Supported SAFIs are unicast, labeled-unicast, and multicast. |
|
Static routes for an instance |
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 Routes in the Routing Table
These commands show the static routes included in the final routing table.
Syntax:
| Attribute | Description |
|---|---|
|
Supported AFIs are ipv4, ipv6, and mpls. |
|
Supported SAFIs are unicast, labeled-unicast, and multicast. |
|
Detailed route information |
|
Routing table information for a specific instance |
|
Destination label |
|
Address family |
|
Destination prefix |
|
Source 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