run show route


The run show route command shows the information about the IP routing table.


Command Syntax

run show route [vrf <vrf-name> | <ip-address> | ospf | bgp | static |connected | kernal | ipv4 | ipv6 | summary]


Parameter

Parameter

Description

vrf <vrf-name>

Optional. Specifies a VRF name. The value is a string.

<ip-address>Optional. Specifies a destination IP address.


Usage Guidelines

When a VRF is specified, only the routing table information of the specific VRF is displayed.

When no VRF is specified, the result shows only the routing table information of the default VRF.


Example

•  View the information about the IP address 40.92.0.0/24.      

admin@Xorplus# run show route 40.92.0.0/24
RIB entry for 40.92.0.0/24
==========================
Routing entry for 40.92.0.0/24
  Known via "ospf", distance 110, metric 10
  Last update 00:43:58 ago
    directly connected, vlan4092, weight 1

Routing entry for 40.92.0.0/24
  Known via "connected", distance 0, metric 0, best
  Last update 00:44:43 ago
  * directly connected, vlan4092


FIB entry for 40.92.0.0/24
==========================
40.92.0.0/24 dev vlan4092 proto kernel scope link src 40.92.0.1

•  View the information about the IP routing table of OSPF protocol.      

admin@Xorplus# run show route ospf
RIB entry for ospf
==================
Codes: K - kernel route, C - connected, S - static, R - RIP,
       O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
       T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
       F - PBR, f - OpenFabric,
       > - selected route, * - FIB route, q - queued route, r - rejected route

O>* 1.1.1.1/32 [110/10] via 40.93.0.2, vlan4093, weight 1, 03:01:16
O>* 2.2.2.2/32 [110/10] via 40.94.0.2, vlan4094, weight 1, 00:00:45
O   3.3.3.3/32 [110/0] is directly connected, lo, weight 1, 05:55:08
O>* 4.4.4.4/32 [110/10] via 40.92.0.2, vlan4092, weight 1, 00:47:26
O>* 40.40.0.0/24 [110/30] via 40.92.0.2, vlan4092, weight 1, 00:00:45
  *                       via 40.94.0.2, vlan4094, weight 1, 00:00:45
O   40.92.0.0/24 [110/10] is directly connected, vlan4092, weight 1, 00:47:26
O   40.93.0.0/24 [110/10] is directly connected, vlan4093, weight 1, 03:06:18
O   40.94.0.0/24 [110/10] is directly connected, vlan4094, weight 1, 00:01:38

 •  View the information about the IP routing table of the default VRF.      

admin@Xorplus# run show route
show ip route
=============
Codes: K - kernel route, C - connected, S - static, R - RIP,
       O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
       T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
       F - PBR, f - OpenFabric,
       > - selected route, * - FIB route, q - queued route, r - rejected route

K>* 0.0.0.0/0 [0/0] via 10.10.51.1, eth0, 05:48:10
O>* 1.1.1.1/32 [110/10] via 40.93.0.2, vlan4093, weight 1, 02:54:17
O>* 2.2.2.2/32 [110/10] via 40.94.0.2, vlan4094, weight 1, 05:46:52
O   3.3.3.3/32 [110/0] is directly connected, lo, weight 1, 05:48:09
C>* 3.3.3.3/32 is directly connected, lo, 05:48:10
O>* 4.4.4.4/32 [110/10] via 40.92.0.2, vlan4092, weight 1, 00:40:27
C>* 10.10.51.0/24 is directly connected, eth0, 05:48:10



show ipv6 route
===============
Codes: K - kernel route, C - connected, S - static, R - RIPng,
       O - OSPFv3, I - IS-IS, B - BGP, N - NHRP, T - Table,
       v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR,
       f - OpenFabric,
       > - selected route, * - FIB route, q - queued route, r - rejected route

C * fe80::/64 is directly connected, vlan4092, 00:41:11
C * fe80::/64 is directly connected, vlan4093, 02:59:17
C * fe80::/64 is directly connected, vlan4094, 05:47:4

Copyright © 2024 Pica8 Inc. All Rights Reserved.