RIB
nv show vrf <vrf-id> router rib
Shows the routing table for the specified VRF.
Command Syntax
Syntax | Description |
---|---|
<vrf-id> | The VRF name. |
Version History
Introduced in Cumulus Linux 5.0.0
Example
cumulus@switch:~$ nv show vrf default router rib
AFI Prefix
---- ---------------
ipv4 10.0.1.12/32
10.0.1.34/32
10.0.1.255/32
10.10.10.1/32
10.10.10.2/32
10.10.10.3/32
10.10.10.4/32
10.10.10.63/32
10.10.10.64/32
10.10.10.101/32
10.10.10.102/32
10.10.10.103/32
10.10.10.104/32
ipv6 fe80::/64
nv show vrf <vrf-id> router rib <afi>
Shows the IPv4 or IPv6 routing table for the specified VRF.
Command Syntax
Syntax | Description |
---|---|
<vrf-id> | The VRF name. |
<afi> | The route address family (IPv4 or IPv6). |
Version History
Introduced in Cumulus Linux 5.0.0
Example
cumulus@switch:~$ nv show vrf default router rib ipv4
route
========
Route Protocol Distance ResolvedVia ResolvedViaIntf Uptime NHGId Metric TableId Flags
--------------- --------- -------- ----------- --------------- -------- ----- ------ ------- ------------
10.0.1.12/32 connected 0 07:01:03 7 0 fib-selected
installed
offloaded
selected
10.0.1.34/32 bgp 20 00:01:54 144 0 fib-selected
installed
selected
10.0.1.255/32 bgp 20 00:01:54 144 0 fib-selected
installed
selected
10.10.10.1/32 connected 0 07:03:56 7 0 fib-selected
installed
offloaded
selected
10.10.10.2/32 bgp 20 00:01:53 221 0 fib-selected
installed
selected
10.10.10.3/32 bgp 20 00:01:54 144 0 fib-selected
installed
selected
10.10.10.4/32 bgp 20 00:01:54 144 0 fib-selected
installed
selected
10.10.10.63/32 bgp 20 00:01:54 144 0 fib-selected
installed
selected
10.10.10.64/32 bgp 20 00:01:54 144 0 fib-selected
installed
selected
10.10.10.101/32 bgp 20 00:01:54 115 0 fib-selected
installed
...
nv show vrf <vrf-id> router rib <afi> route
Shows the routing table for IPv4 routes.
Cumulus Linux 5.10.0 and later includes redesigned flags in the command ouput.
Command Syntax
Syntax | Description |
---|---|
<vrf-id> | The VRF name. |
<afi> | The route address family (IPv4 or IPv6). |
Version History
Introduced in Cumulus Linux 5.0.0
Example
cumulus@switch:~$ nv show vrf default router rib ipv4 route
Flags - * - selected, q - queued, o - offloaded, i - installed, S - fib-
selected, x - failed
Route Protocol Distance Uptime NHGId Metric Flags
--------------- --------- -------- -------------------- ----- ------ -----
10.1.10.0/24 connected 0 2024-07-18T21:57:29Z 46 0 *Sio
10.1.20.0/24 connected 0 2024-07-18T21:57:29Z 47 0 *Sio
10.1.30.0/24 connected 0 2024-07-18T21:57:29Z 48 0 *Sio
10.1.40.0/24 bgp 20 2024-07-18T22:02:22Z 57 0 *Si
10.1.50.0/24 bgp 20 2024-07-18T22:02:22Z 57 0 *Si
10.1.60.0/24 bgp 20 2024-07-18T22:02:22Z 57 0 *Si
10.10.10.1/32 connected 0 2024-07-18T21:55:54Z 7 0 *Sio
10.10.10.2/32 bgp 20 2024-07-18T21:57:29Z 34 0 *Si
10.10.10.3/32 bgp 20 2024-07-18T22:02:22Z 57 0 *Si
10.10.10.4/32 bgp 20 2024-07-18T22:02:27Z 57 0 *Si
10.10.10.101/32 bgp 20 2024-07-18T22:01:14Z 50 0 *Si
10.10.10.102/32 bgp 20 2024-07-18T22:02:22Z 58 0 *Si
nv show vrf <vrf-id> router rib <afi> route <route-id>
Shows the routing table for the specified route.
Command Syntax
Syntax | Description |
---|---|
<vrf-id> | The VRF name. |
<afi> | The route address family (IPv4 or IPv6). |
<route-id> | The IP prefix. |
Version History
Introduced in Cumulus Linux 5.0.0
Example
cumulus@switch:~$ nv show vrf default router rib ipv4 route 10.1.40.0/24
protocol
===========
EntryIdx - Entry index, TblId - Table Id, NHGId - Nexthop group Id,
ResolvedViaIntf - Resolved via interface, Flags - u - unreachable, r -
recursive, o - onlink, i - installed, d - duplicate, c - connected, A - active
Protocol EntryIdx TblId NHGId Distance Metric ResolvedViaIntf Weight Flags
-------- -------- ----- ----- -------- ------ --------------- ------ -----
bgp 1 254 57 20 0 swp51 1 iA swp52 1 iA
...
nv show vrf <vrf-id> router rib <afi> route <route-id> protocol <protocol-id>
Shows the routing table for the specified protocol route.
Command Syntax
Syntax | Description |
---|---|
<vrf-id> | The VRF name. |
<afi> | The route address family (IPv4 or IPv6). |
<route-id> | The IP prefix. |
<protocol-id> | The protocol name, such as bgp or ospf . |
Version History
Introduced in Cumulus Linux 5.0.0
Example
cumulus@switch:~$ nv show vrf default router rib ipv4 route 10.1.40.0/24 protocol bgp
entry-index
==============
Entry
-----
1
nv show vrf <vrf-id> router rib <afi> route <route-id> protocol <protocol-id> entry-index
Shows the route entry index values for the specified protocol route.
Command Syntax
Syntax | Description |
---|---|
<vrf-id> | The VRF name. |
<afi> | The route address family (IPv4 or IPv6). |
<route-id> | The IP prefix. |
<protocol-id> | The protocol name, such as bgp or ospf . |
Version History
Introduced in Cumulus Linux 5.0.0
Example
cumulus@switch:~$ nv show vrf default router rib ipv4 route 10.1.40.0/24 protocol bgp entry-index
Entry
-----
1
nv show vrf <vrf-id> router rib <afi> route <route-id> protocol <protocol-id> entry-index <entry-index>
Shows detailed information about the specified protocol route entry index.
Command Syntax
Syntax | Description |
---|---|
<vrf-id> | The VRF name. |
<afi> | The route address family (IPv4 or IPv6). |
<route-id> | The IP prefix. |
<protocol-id> | The protocol name, such as bgp or ospf . |
<entry-index> | The routing table entry index. |
Version History
Introduced in Cumulus Linux 5.0.0
Example
cumulus@switch:~$ nv show vrf default router rib ipv4 route 10.1.40.0/24 protocol bgp entry-index 1
operational
---------------- -------------------------
distance 20
metric 0
uptime 2024-07-18T22:02:22Z
nexthop-group-id 57
table-id 254
flags-string *Si
[via] fe80::4ab0:2dff:fe50:8cbb
[via] fe80::4ab0:2dff:feba:6208
nv show vrf <vrf-id> router rib <afi> route <route-id> protocol <protocol-id> entry-index <entry-index> flags
Shows the routing table flags for the specified protocol route entry index.
Command Syntax
Syntax | Description |
---|---|
<vrf-id> | The VRF name. |
<afi> | The route address family (IPv4 or IPv6). |
<route-id> | The IP prefix. |
<protocol-id> | The protocol name, such as bgp or ospf . |
<entry-index> | The routing table entry index. |
Version History
Introduced in Cumulus Linux 5.0.0
Example
cumulus@switch:~$ nv show vrf default router rib ipv4 route 10.1.40.0/24 protocol bgp entry-index 1 flags
operational
------------
selected
fib-selected
installed
nv show vrf <vrf-id> router rib <afi> route <route-id> protocol <protocol-id> entry-index <entry-index> via
Shows the routing table next hop information for the specified protocol route entry index.
Command Syntax
Syntax | Description |
---|---|
<vrf-id> | The VRF name. |
<afi> | The route address family (IPv4 or IPv6). |
<route-id> | The IP prefix. |
<protocol-id> | The protocol name, such as bgp or ospf . |
<entry-index> | The routing table entry index. |
Version History
Introduced in Cumulus Linux 5.0.0
Example
cumulus@switch:~$ nv show vrf default router rib ipv4 route 10.1.40.0/24 protocol bgp entry-index 1 via
Nexthop flags-string type vrf weight Summary
------------------------- ------------ ---------- --- ------ ----------------
fe80::4ab0:2dff:fe50:8cbb iA ip-address 1 Interface: swp51
fe80::4ab0:2dff:feba:6208 iA ip-address 1 Interface: swp52
nv show vrf <vrf-id> router rib <afi> route <route-id> protocol <protocol-id> entry-index <entry-index> via <via-id>
Shows the routing table next hop resolution information for the specified protocol route entry index.
Command Syntax
Syntax | Description |
---|---|
<vrf-id> | The VRF name. |
<afi> | The route address family (IPv4 or IPv6). |
<route-id> | The IP prefix. |
<protocol-id> | The protocol name, such as bgp or ospf . |
<entry-index> | The routing table entry index. |
<via-id> | The IP address of the nexthop router. |
Version History
Introduced in Cumulus Linux 5.0.0
Example
cumulus@switch:~$ nv show vrf default router rib ipv4 route 10.1.40.0/24 protocol bgp entry-index 1 via fe80::4ab0:2dff:fe50:8cbb
operational
------------ -----------
type ip-address
weight 1
flags-string iA
resolved-via
===============
No Data
interface
============
Interface
---------
swp51
nv show vrf <vrf-id> router rib <afi> route <route-id> protocol <protocol-id> entry-index <entry-index> via <via-id> flags
Shows the routing table flags for the specified protocol route entry index next hop.
Command Syntax
Syntax | Description |
---|---|
<vrf-id> | The VRF name. |
<afi> | The route address family (IPv4 or IPv6). |
<route-id> | The IP prefix. |
<protocol-id> | The protocol name, such as bgp or ospf . |
<entry-index> | The routing table entry index. |
<via-id> | The IP address of the nexthop router. |
Version History
Introduced in Cumulus Linux 5.0.0
Example
cumulus@switch:~$ nv show vrf default router rib ipv4 route 10.1.40.0/24 protocol bgp entry-index 1 via fe80::4ab0:2dff:fe50:8cbb flags
operational
-----------
installed
active
nv show vrf <vrf-id> router rib <afi> route <route-id> protocol <protocol-id> entry-index <entry-index> via <via-id> label
Shows the routing table label information for the specified protocol route entry index next hop.
Command Syntax
Syntax | Description |
---|---|
<vrf-id> | The VRF name. |
<afi> | The route address family (IPv4 or IPv6). |
<route-id> | The IP prefix. |
<protocol-id> | The protocol name, such as bgp or ospf . |
<entry-index> | The routing table entry index. |
<via-id> | The IP address of the nexthop router. |
Version History
Introduced in Cumulus Linux 5.1.0
Example
cumulus@switch:~$ nv show vrf default router rib ipv4 route 10.1.40.0/24 protocol bgp entry-index 1 via fe80::4ab0:2dff:fe50:8cbb label
nv show vrf <vrf-id> router rib <afi> route <route-id> protocol <protocol-id> entry-index <entry-index> via <via-id> resolved-via
Shows the routing table recursive next hop resolution information for the specified protocol route entry index next hop.
Command Syntax
Syntax | Description |
---|---|
<vrf-id> | The VRF name. |
<afi> | The route address family (IPv4 or IPv6). |
<route-id> | The IP prefix. |
<protocol-id> | The protocol name, such as bgp or ospf . |
<entry-index> | The routing table entry index. |
<via-id> | The IP address of the nexthop router. |
Version History
Introduced in Cumulus Linux 5.0.0
Example
cumulus@switch:~$ nv show vrf default router rib ipv4 route 10.1.40.0/24 protocol bgp entry-index 1 via 10.0.1.0 resolved-via
nv show vrf <vrf-id> router rib <afi> route <route-id> protocol <protocol-id> entry-index via <via-id> resolved-via <resolved-via-id>
Shows the routing table information for a specific recursive next hop for the specified protocol route entry index next hop.
Command Syntax
Syntax | Description |
---|---|
<vrf-id> | The VRF name. |
<afi> | The route address family (IPv4 or IPv6). |
<route-id> | The IP prefix. |
<protocol-id> | The protocol name, such as bgp or ospf . |
<entry-index> | The routing table entry index. |
<via-id> | The IP address of the nexthop router. |
<resolved-via-id> | The IP address of the nexthop router that resolves the route. |
Version History
Introduced in Cumulus Linux 5.0.0
Example
cumulus@switch:~$ nv show vrf default router rib ipv4 route 10.1.40.0/24 protocol bgp entry-index 1 via 10.0.1.0 resolved-via 10.0.10.0