Support Support Downloads Knowledge Base Juniper Support Portal 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"



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

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


Sample Output

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,, then it will be considered as Network route.

  2. Subnet - If the route is for, 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, 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
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      eth4/1   C      0      0
8    eth1/2   C      0      0
2    mgt   C      0      0
90     loopback.2   C      0      0
89     loopback.1   C      0      0
10   eth1/4   C      0      0
91         loopback.3   C      0      0
6         eth1/1   C      0       0

Total number of connected routes: 8

  1. Here, the networks are:, Default subnet mask as per the class.

  2. The Subnets are:,, IP of a different class and subnet mask of a different class.

  3. The supernets are:,, 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