帮助我们改善您的体验。

让我们了解您的想法。

您是否能抽出两分钟的时间完成一份问卷调查?

close
keyboard_arrow_left
Junos CLI 参考
Table of Contents Expand all
list Table of Contents

机器翻译对您有帮助吗?

starstarstarstarstar
Go to English page
免责声明:

我们将使用第三方机器翻译软件翻译本页面。瞻博网络虽已做出相当大的努力提供高质量译文,但无法保证其准确性。如果对译文信息的准确性有任何疑问,请参阅英文版本. 可下载的 PDF 仅提供英文版.

show route summary

date_range 11-Mar-25

语法

content_copy zoom_out_map
show route summary
<logical-system (all | logical-system-name)>
<table routing-table-name>
<rib-sharding (main | rib-shard-name)>

语法(EX 系列交换机)

content_copy zoom_out_map
show route summary

作模式

cli 模式

cli-pfe 模式。

描述

显示有关路由表中条目的汇总统计信息。此外,在模式下 cli-pfe 显示 FIB 压缩统计信息的摘要。(PTX 和 ACX 系列设备)。

当设备学习路由时,CPU 使用率可能会增加。建议在设备学习路由并将路由输入路由表后使用 show route summary 命令。这可能需要几分钟时间,具体取决于您的网络规模。如果在使用 show route summary 命令时收到“与路由守护程序通信超时”错误,请等待几分钟,然后再尝试再次使用该命令。这不是严重的系统错误,但在使用命令行界面 (CLI) 时可能会遇到延迟。

选项

none

显示有关路由表中条目的汇总统计信息。

logical-system (all | logical-system-name)

(选答)在所有逻辑系统或特定逻辑系统上执行此作。

table routing-table-name

(选答)显示名称以此字符串开头的所有路由表的汇总统计信息(例如,运行show route summary table inet命令时同时显示 inet.0inet6.0)。如果您只想显示特定路由表的统计信息,请确保输入该路由表的确切名称。

rib-sharding (main | rib-shard-name)

(选答)显示肋骨分片的名称。

所需权限级别

视图

输出字段

表 1 列出了命令 show route summary 的输出字段。输出字段按其出现的大致顺序列出。

表 1:显示路由汇总输出字段

字段名称

字段说明

路由器 ID

本地路由设备的地址。

高水位线

系统中路由和转发 (RIB/FIB) 表路由以及 VRF 的高水位线数据。显示以下详细信息:

  • RIB 独特的目的地路由

  • RIB 路由

  • FIB 路由

  • VRF 类型路由实例

高水位线数据也可以在 LOG_NOTICE 级别的系统日志中查看。

routing-table-name

路由表示例的名称:

  • inet.0— 列出 IPv4 的所有路由。

  • junos-main::inet.0- 列出 IPv4 的所有活动路由。

  • junos-bgpshard0::inet.0- 列出 bgpshard0 线程中存在的 IPv4 路由。

  • __raass__inet.inet.0- 列出存储在 RaaS 服务器中且从客户端接收的 IPv4 路由。

  • __raasc__inet.inet.0- 列出存储在 RaaS 客户端中用于本地解析的 IPv4 路由。

  • inet.6— 列出 IPv6 的所有路由。

  • junos-main::inet6.0— 列出 IPv6 的所有活动路由。

  • junos-bgpshard0::inet6.0- 列出 bgpshard0 线程中存在的 IPv6 路由。

  • __raass__inet.inet6.0- 列出存储在 RaaS 服务器中且从客户端接收的 IPv6 路由。

  • __raasc__inet.inet6.0- 列出存储在 RaaS 客户端中用于本地解析的 IPv6 路由。

目的地

路由表中有路由的目标数。

路线

路由表中的路由数:

  • active - 处于活动状态的路由数。

  • holddown — 在被声明为非活动之前处于抑制状态的路由数。

  • 隐藏 - 由于路由策略而未使用的路由数。

RIB 路由基于 RIB 中的所有路由条目计算,其中包括活动路由、抑制路由和隐藏路由。有关详细信息,请参阅示例输出。

重新启动完成

此路由表的所有协议都已重新启动。

重启状态:

  • Pending:protocol-name- 此路由表尚未完成正常重新启动的协议列表。

  • Complete—此路由表的所有协议都已重新启动。

例如,如果输出显示 -

  • LDP.inet.0: 5 routes (4 active, 1 holddown, 0 hidden)
        Restart Pending: OSPF LDP VPN

    这表示OSPFLDP、 和VPN路由表的协议没有重新启动LDP.inet.0

  • vpls_1.l2vpn.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
    Restart Complete

    这表示路由表的所有协议都已重新启动 vpls_1.l2vpn.0

限制/阈值

显示针对使用 maximum-prefixes 和语句集的路由表配置的 maximum-paths 路由限制。如果未为路由表配置路由限制,则 show 输出不会显示此信息。

  • destinations — 第一个数字表示路由表中安装的最大路由前缀数。第二个数字表示触发警告消息的路由前缀数。

  • routes - 第一个数字表示最大路由数。第二个数字表示触发警告消息的路由数。

直接

直连网络上的路由。

当地

本地路由。

protocol-name

从中获知路由的协议的名称。例如, OSPFRSVPStatic

在 PFE 上显示路由表统计信息的 CLI-PFE 模式(ACX7100-32C、ACX7100-48L 和 ACX7509 设备)的输出字段(例如,IPv4、IPv6、MPLS 路由表)
指数 路由表索引号。
路线 活动路由数
尺寸(b) #chk 对 SME 的数据包大小。
前缀 对等设备发布的实际路由数。
聚焦 压缩后 PFE 生成的聚合路由数,其中包括有效的下一跃点
安装 ACX 设备上安装的路由数。
比较(%) 路由表压缩百分比。

示例输出

显示路由摘要

content_copy zoom_out_map
user@host> show route summary
Autonomous system number: 69
Router ID: 10.255.71.52

Highwater Mark (All time / Time averaged watermark)
    RIB Unique destination routes: 51 at 2020-06-15 13:54:01 / 51
    RIB routes                   : 52 at 2020-06-15 13:54:01 / 52
    FIB routes                   : 33 at 2020-06-15 13:54:01 / 33
    VRF type routing instances   : 0 at 2020-06-15 13:54:00
Maximum-ECMP: 32
inet.0: 24 destinations, 25 routes (23 active, 0 holddown, 1 hidden)
Restart Complete
              Direct:      6 routes,      5 active
               Local:      4 routes,      4 active
                OSPF:      5 routes,      4 active
              Static:      7 routes,      7 active
                IGMP:      1 routes,      1 active
                 PIM:      2 routes,      2 active

inet.3: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
Restart Complete
                RSVP:      2 routes,      2 active

iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
Restart Complete
              Direct:      1 routes,      1 active

mpls.0: 7 destinations, 7 routes (5 active, 0 holddown, 2 hidden)
Restart Complete
                MPLS:      3 routes,      3 active
                VPLS:      4 routes,      2 active

inet6.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
Restart Complete
              Direct:      2 routes,      2 active
                 PIM:      2 routes,      2 active
                 MLD:      1 routes,      1 active

green.l2vpn.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
Restart Complete
                 BGP:      2 routes,      2 active
               L2VPN:      2 routes,      2 active

red.l2vpn.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
Restart Complete
                 BGP:      2 routes,      2 active
               L2VPN:      1 routes,      1 active

bgp.l2vpn.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
Restart Complete
                 BGP:      4 routes,      4 active

show route summary(ACX7100-32C、ACX7100-48L 和 ACX7509 设备中的 cli-pfe 模式)

以下命令仅显示模式下的 cli-pfe 路由摘要信息:

content_copy zoom_out_map
user@host:pfe> show route summary

IPv4 Route Tables:
Index         Routes     Size(b)  Prefixes     Aggr     Installed   Comp(%)
--------  ----------  ----------  ---------  ---------  ----------  ------
Default     10095472  1569927632   5000016    4999986       11525    100
1                  0           0         0          0           0      0
51                10        1040         5          0           5      0
36738             10        1040         5          0           5      0

IPv6 Route Tables:
Index         Routes     Size(b)  Prefixes     Aggr     Installed   Comp(%)
--------  ----------  ----------  ---------  ---------  ----------  ------
0       IPv6       1300025       1299963          62      100

1       IPv6             0             0           0        0

51      IPv6             6             0           6        0

36738   IPv6             6             0           6        0
MPLS Route Tables:
Index         Routes     Size(b)  Prefixes     Aggr     Installed   Comp(%)
--------  ----------  ----------  ---------  ---------  ----------  ------
Default           14        1456         7          0           7      -
52                 2         208         1          0           1      -

IPv6 Route Tables:
Index         Routes     Size(b)  Prefixes     Aggr     Installed   Comp(%)
--------  ----------  ----------  ---------  ---------  ----------  ------
Default           27        2808        13          0          16  4294967273
1                  0           0         0          0           0      0
51                12        1248         6          0           6      0
53                12        1248         6          0           6      0
36738             12        1248         6          0           6      0

CLNP Route Tables:
Index         Routes     Size(b)  Prefixes     Aggr     Installed   Comp(%)
--------  ----------  ----------  ---------  ---------  ----------  ------
Default            4         416         2          0           2      -
51                 2         208         1          0           1      -

show route summary table(配置了 RIB 分片)

以下命令仅显示 junos-bgpshard0 线程中的路由摘要信息:

content_copy zoom_out_map
user@host> show route summary rib-sharding junos-bgpshard0
Autonomous system number: 1
Router ID: 2.2.2.1

inet.0: 774078 destinations, 1547602 routes (774078 active, 0 holddown, 0 hidden)
              Direct:    108 routes,    108 active
               Local:      7 routes,      7 active
                OSPF:    408 routes,    408 active
                 BGP: 1547048 routes, 773524 active
              Static:     31 routes,     31 active

junos-main::inet.0: 774078 destinations, 774078 routes (774078 active, 0 holddown, 0 hidden)
              Direct:    108 routes,    108 active
               Local:      7 routes,      7 active
                OSPF:    408 routes,    408 active
                 BGP: 773524 routes, 773524 active
              Static:     31 routes,     31 active

junos-bgpshard0::inet.0: 258448 destinations, 516635 routes (258448 active, 0 holddown, 0 hidden)
                 BGP: 516374 routes, 258187 active

junos-bgpshard1::inet.0: 258129 destinations, 515997 routes (258129 active, 0 holddown, 0 hidden)
                 BGP: 515736 routes, 257868 active

junos-bgpshard2::inet.0: 257731 destinations, 515200 routes (257731 active, 0 holddown, 0 hidden)
                 BGP: 514938 routes, 257469 active

__raass__inet.inet.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
                RaaS:      1 routes,      1 active

iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
              Direct:      1 routes,      1 active

inet6.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
              Direct:      2 routes,      2 active
               INET6:      1 routes,      1 active

junos-main::inet6.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
              Direct:      2 routes,      2 active
               INET6:      1 routes,      1 active

显示路由汇总表

content_copy zoom_out_map
user@host> show route summary table inet
Router ID: 192.168.0.1

inet.0: 32 destinations, 34 routes (31 active, 0 holddown, 1 hidden)
              Direct:      6 routes,      5 active
               Local:      9 routes,      9 active
                OSPF:      3 routes,      1 active
              Static:     13 routes,     13 active
                IGMP:      1 routes,      1 active
                 PIM:      2 routes,      2 active

inet.1: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
           Multicast:      1 routes,      1 active

inet6.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
               Local:      1 routes,      1 active
                 PIM:      2 routes,      2 active

inet6.1: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
           Multicast:      1 routes,      1 active

show route summary table(为路由表配置了路由限制)

content_copy zoom_out_map
user@host> show route summary table VPN-A.inet.0
Autonomous system number: 100
Router ID: 10.255.182.142

VPN-A.inet.0: 13 destinations, 14 routes (13 active, 0 holddown, 0 hidden)
Limit/Threshold: 2000/200 destinations 20/12 routes
              Direct:      2 routes,      2 active
               Local:      1 routes,      1 active
                OSPF:      4 routes,      3 active
                 BGP:      4 routes,      4 active
                IGMP:      1 routes,      1 active
                 PIM:      2 routes,      2 active

显示路由汇总 RIB 分片

content_copy zoom_out_map
user@host> show route summary rib-sharding junos-bgpshard14
Autonomous system number: 100
Router ID: 20.255.255.10

inet.0: 54 destinations, 54 routes (54 active, 0 holddown, 0 hidden)
              Direct:     29 routes,     29 active
               Local:     25 routes,     25 active

iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
              Direct:      1 routes,      1 active

inet6.0: 14 destinations, 14 routes (14 active, 0 holddown, 0 hidden)
               Local:     14 routes,     14 active

发布信息

在 Junos OS 7.4 版之前引入的命令。

rib-sharding 为 cRPD 20.1R1 版引入了选项。

external-footer-nav