RIB Operational commands
Display Routes
The show route command displays information on routes.
Syntax:
show route <option>
Option | Description |
---|---|
- |
Without any option, the command shows the information for all routes for all instances. |
detail |
Shows detailed route information. |
import |
The commands show all the routes imported from another instance. For information about route import command options, see section Show Route Import. |
incoming interface <name> |
Shows the information of the specified interface through which the routes enter to the router. |
instance <name> |
Shows routing table information for a specified instance. |
ipv4 |
Shows route information for the IPv4 routing table. |
ipv6 |
Shows route information for the IPv6 routing table. |
l2vpn |
Shows route information for the L2VPN routing table. For information about l2vpn command options, see section Show Route L2VPN. |
mpls |
Shows route information for the MPLS routing table. |
prefix <value> |
Shows route information for a specified destination prefix. |
prefix-length-distribution |
Shows the number of routes with the same prefix length for the sources. |
service |
Shows the number of routes with the same service label. |
source |
Shows routes from a specified source. |
summary |
Shows the number of routes selected by RIB for each source. |
Example 1: The following example shows route information.
supervisor@rtbrick>LEAF01: op> show route
Instance: default, AFI: ipv4, SAFI: unicast
Prefix/Label Source Pref Next Hop Interface
192.1.0.3/32 direct 0 192.1.0.3 lo-0/0/0/1
Instance: default, AFI: ipv4, SAFI: labeled-unicast
Prefix/Label Source Pref Next Hop Interface Label
192.1.0.3/32 direct 0 192.1.0.3 lo-0/0/0/1 -
Instance: default, AFI: ipv6, SAFI: unicast
Prefix/Label Source Pref Next Hop Interface
192:1::2/128 bgp 20 fe80::eac5:7aff:fe8f:5663 ifl-0/1/70/13
192:1::3/128 direct 0 192:1::3 lo-0/0/0/1
192:1::4/128 bgp 20 fe80::eac5:7aff:fe8f:5663 ifl-0/1/70/13
Instance: default, AFI: ipv6, SAFI: labeled-unicast
Prefix/Label Source Pref Next Hop Interface Label
192:1::2/128 bgp 20 fe80::eac5:7aff:fe8f:5663 ifl-0/1/70/13 -
192:1::3/128 direct 0 192:1::3 lo-0/0/0/1 -
192:1::4/128 bgp 20 fe80::eac5:7aff:fe8f:5663 ifl-0/1/70/13 2020
Example 2: A route summary is shown in the following example.
supervisor@rtbrick>LEAF01: op> show route summary
Instance: default
Source Routes
bgp 4
direct 4
Total Routes 8
Instance: inband-vrf
Source Routes
bgp 4
direct 2
Total Routes 6
Instance: ip2vrf
Source Routes
bgp 3
direct 2
Total Routes 5
Instance: li-vrf
Source Routes
bgp 2
direct 2
Total Routes 4
Instance: mgmt-vrf
Source Routes
bgp 4
direct 2
Total Routes 6
Instance: radius-vrf
Source Routes
bgp 3
direct 2
Total Routes 5
Example 3: This example shows routes with IPv4 prefixes of the same length
supervisor@rtbrick>LEAF01: op>> show route prefix-length-distribution
Instance: default
Prefix Length Count
/32 2
/128 6
Sum 8
Instance: inband-vrf
Prefix Length Count
/32 3
/128 3
Sum 6
Instance: ip2vrf
Prefix Length Count
/24 1
/32 2
/128 2
Sum 5
Instance: li-vrf
Prefix Length Count
/32 2
/128 2
Sum 4
Instance: mgmt-vrf
Prefix Length Count
/32 3
/128 3
Sum 6
Instance: radius-vrf
Prefix Length Count
/24 1
/32 2
/128 2
Sum 5
Show Route Import
Syntax:
show route import <option>
Option | Description |
---|---|
import |
The command shows all the routes imported from another instance. |
detail |
Shows detailed information for imported routes. |
instance |
Shows routing table information for a specific instance for imported routes. |
ipv4 |
Shows route information for the IPv4 routing table for imported routes. |
ipv6 |
Shows route information for the IPv4 routing table for imported routes. |
source |
Shows source of the routing information for the specified source. |
summary |
Shows the number of imported routes selected by RIB for each source. |
Show Route L2VPN
Syntax:
show route l2vpn <option>
Option | Description |
---|---|
l2vpn |
Without any option, the commands display all the L2VPN routes. |
detail |
Shows detailed information for l2vpn routes. |
evpn-vpws |
Shows routing table information for the EVPN-VPWS address family. |
instance |
Shows L2VPN routing table information for a specific instance |
label <label> |
Shows L2VPN routing table information for destination label. |
prefix |
Shows L2VPN routing table information for the destination prefix. |
source |
Shows source information for the L2VPN routes. |
summary |
Shows the number of L2VPN routes selected by RIBD for each source. |
vpls-vpws |
Shows the L2VPN routes from VPLS-VPWS address specified. |
Show Route Resolution
The show route-resolution
command displays the routes that were requested to be resolved for their nexthops. Otherwise, it shows the route is unresolved.
Syntax:
show route-resolution <options>
Option | Description |
---|---|
- |
Without any option, the command shows the information for all requests and response tables side by side. |
destination-instance |
Shows the information for all requests and responses for a destination instance. |
look-up instance |
Shows lookup instance routes. |
prefix |
Shows routes for prefix 4 or prefix 6. |
resolved |
Shows resolved routes. |
source |
Shows source of requested source. |
unresolved |
Shows unresolved routes. |
Example 1: Below is an example of the route resolution requested by the protocol BGP.
supervisor@rtbrick>LEAF01: op> show route-resolution
192:1::2, Source: bgp
Destination instance: default, AFI: ipv4, SAFI: vpn-multicast
Lookup instance: default, AFI: ipv6, SAFI: labeled-unicast
Covering Prefix: 192:1::2/128
Interface MAC Address Nexthop
ifl-0/1/70/13 e8:c5:7a:8f:56:63 fe80::eac5:7aff:fe8f:5663
fe80::eac5:7aff:fe8f:5663, Source: bgp
Destination instance: default, AFI: ipv6, SAFI: unicast
Lookup instance: default, AFI: ipv6, SAFI: unicast
Covering Prefix: fe80::eac5:7aff:fe8f:5663/128
Interface MAC Address Nexthop
ifl-0/1/70/13 e8:c5:7a:8f:56:63 fe80::eac5:7aff:fe8f:5663
fe80::eac5:7aff:fe8f:5663, Source: bgp
Destination instance: default, AFI: ipv4, SAFI: vpn-unicast
Lookup instance: default, AFI: ipv6, SAFI: labeled-unicast
Covering Prefix: fe80::eac5:7aff:fe8f:5663/128
Interface MAC Address Nexthop
ifl-0/1/70/13 e8:c5:7a:8f:56:63 fe80::eac5:7aff:fe8f:5663
fe80::eac5:7aff:fe8f:5663, Source: bgp
Destination instance: default, AFI: ipv6, SAFI: labeled-unicast
Lookup instance: default, AFI: ipv6, SAFI: labeled-unicast
Covering Prefix: fe80::eac5:7aff:fe8f:5663/128
Interface MAC Address Nexthop
ifl-0/1/70/13 e8:c5:7a:8f:56:63 fe80::eac5:7aff:fe8f:5663
fe80::eac5:7aff:fe8f:5663, Source: bgp
Destination instance: default, AFI: ipv6, SAFI: vpn-unicast
Lookup instance: default, AFI: ipv6, SAFI: labeled-unicast
Covering Prefix: fe80::eac5:7aff:fe8f:5663/128
Interface MAC Address Nexthop
ifl-0/1/70/13 e8:c5:7a:8f:56:63 fe80::eac5:7aff:fe8f:5663
Show Route rib-in
The show route rib-in
command shows all advertised routes' information received and stored in the inbound RIB (Routing Information Base). These commands allow you to view routes based on specific criteria such as instance, source, address family (AFI), subsequent address family identifier (SAFI) and so on.
Syntax:
show route rib-in <options>
Option | Description |
---|---|
- |
Without any option, the command shows the information for all routes in the routing information base. |
detail |
Provides a detailed view of routes matching the specified prefix in the inbound RIB. |
<afi> |
To show only the routes for a specific network protocol, such as IPv4 or IPv6. |
<safi> |
To view specific types of routes, such as IPv4 unicast or IPv6 multicast, received from neighbors. |
instance <instance> |
Shows the routes in the inbound RIB of a specific routing instance. |
source <source> |
Shows the routes in the inbound RIB from a specific neighbor. |
summary |
Provides a summary view of all routes in the inbound RIB. |
Show Route Prefix
The show route prefix
command shows all advertised routes' information received and stored in the inbound RIB (Routing Information Base).
Syntax:
show route prefix <options>
Option | Description |
---|---|
- |
Without any option, the command shows the information for all routes in the routing information base. |
prefix <value> |
Specify the prefix. This is to see if a specific route with a particular prefix has been received from a neighbor. |
rib-in |
Shows all routes currently stored in the routing information base without any filtering. |
detail |
Provides a detailed view of routes matching the specified prefix in the inbound RIB. |