Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[ScreenOS] How to interpret the output for "get route summary"

0

0

Article ID: KB31210 KB Last Updated: 07 Apr 2021Version: 2.0
Summary:

This article explains how to interpret and understand the output for the command get route summary.

Solution:

Sample Output

trust-vr
----------------------------------------------------
Route Source          Networks  Subnets  Supernets
----------------------------------------------------
Connected                2         3         3
Host                     0         5         0
Static                   0         3         0
System Default           0         0         0
OSPF                     0         0         0
[ OSPF Intra area        0         0         0 ]
[ OSPF Inter area        0         0         0 ]
[ OSPF External - 1      0         0         0 ]
[ OSPF External - 2      0         0         0 ]
BGP                      0         0         0
RIP                      0         0         0
NHRP                     0         0         0
Imported                 0         0         0
Auto Exported            0         0         0
Auto Discovered          0         0         0

Total 16/max entries

This command displays the route summary information, including the number of routes for each protocol in every virtual router.

For every protocol, the count of the routes is divided into three categories: Network, Subnet and Supernet. The following explains the logic behind how it is calculated:

  1. Network - By default, IP addresses in Class-A have a subnet mask of 8, Class B has a subnet mask of 16, and class C has a subnet of 24. If there is a route for a network, for example, 10.10.10.0/8, then it will be considered as Network route.

  2. Subnet - If the route is for 10.10.10.0/24, then it is a Class-A network with a subnet mask of Class-C (CIDR). This route will be considered as a Subnet route.

  3. Supernet - If the route is for 192.168.1.0/23, then it is a Class-C IP network with a subnet mask less than the default class C subnet mask (24). In this case, it is considered as a Supernet.

Consider the following routing table example:

SSG-> get route

IPv4 Dest-Routes for <untrust-vr> (0 entries)
--------------------------------------------------------------------
H: Host C: Connected S: Static A: Auto-Exported
I: Imported R: RIP/RIPng P: Permanent D: Auto-Discovered
N: NHRP
iB: IBGP eB: EBGP O: OSPF/OSPFv3 E1: OSPF external type 1
E2: OSPF/OSPFv3 external type 2 trailing B: backup route

IPv4 Dest-Routes for <trust-vr> (8 entries)
--------------------------------------------------------------------
ID       IP-Prefix          Interface   Gateway   P     Pref    Mtr  
--------------------------------------------------------------------
4        10.200.2.0/24      eth4/1      0.0.0.0   C      0      0
8        209.11.164.0/23    eth1/2      0.0.0.0   C      0      0
2        172.27.201.0/24    mgt         0.0.0.0   C      0      0
90       192.168.3.0/24     loopback.2  0.0.0.0   C      0      0
89       192.168.0.0/23     loopback.1  0.0.0.0   C      0      0
10       198.160.114.0/23   eth1/4      0.0.0.0   C      0      0
91       11.0.0.0/8         loopback.3  0.0.0.0   C      0      0
6        1.1.1.0/24         eth1/1      0.0.0.0   C      0       0

Total number of connected routes: 8

  1. Here, the networks are: 11.0.0.0/8, 192.168.3.0/24. Default subnet mask as per the class.

  2. The Subnets are: 10.200.2.0/24, 172.27.201.0/24, 1.1.1.10/24. IP of a different class and subnet mask of a different class.

  3. The supernets are: 209.11.164.0/23, 198.160.114.0/23, 192.168.0.0/23. Subnet mask of a lower class.

 

Excerpt from the output of get route summary:

Route          Source     Networks     Subnets     Supernets
-------------------------------------------------------------------
Connected                 2            3           3

Sometimes, the get route summary command may not show the changes made to the routing table immediately. To reflect the changes in route, you may need to clear the vrouter stats using clear vr trust stat.

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search