show mpls label usage
语法
show mpls label usage <label label value> <label-range range-start range-end> <logical-system (all | logical-sytem-name)>
说明
显示 RPD 中的可用标签空间资源,并在 RPD 中显示使用该标签空间的应用程序。MPLS 当前使用四个不同的标签空间,即 LSI、动态、块和静态。每个标签空间都有一个固定编号,不能增长超过固定值。使用此命令,管理员可以监控每个标签空间中的可用标签,以及使用这些标签的应用程序中的可用标签。根据标签的可用性,管理员可以决定停止任何服务,并释放某些标签,或使用有标签可用的其他服务。
从 Junos OS 17.2 版开始,您可以配置 enhanced-ip
命令,使用配备 Junos Trio 芯片组的模块化端口集中器 (MPC) 的平台支持命令。您还可以分离用于不同标签空间的 MPLS 标签,从而提供更高的灵活性和可扩展性。
将每台成员路由器的网络服务 enhanced-ip
设置为时,机箱中仅开机的 MPC 或模块化接口卡 (MIC) 模块和多服务密集端口集中器 (MS-DPC) 模块。非服务 DPC 不适用于增强型 IP 网络服务。
选项
none | 使用标签在每个标签空间和应用程序中显示可用标签。 |
label label value | (可选)显示有关由哪个 label value 协议使用的信息(如果有)。 |
label-range range-start range-end | (可选)显示有关 |
logical-system (all |logical-system-name) | (可选)在所有逻辑系统或特定逻辑系统上执行此操作。 |
其他信息
标签空间超过阈值后,将添加新系统日志消息。
<标签空间名称>标签空间使用量超出 90% 的阈值限制。
例如,LSI 标签空间使用量超过 90% 的阈值限制。
必需的权限级别
视图
输出字段
表 1 介绍了命令的 show mpls label usage
输出字段。输出字段按其出现顺序列出。
字段名称 |
字段说明 |
---|---|
Label Space |
表示 MPLS 中当前使用的不同类型的标签。 |
Total |
指示可用标签空间总数。 |
Available |
指示可自由可用的标签数量以及可用标签空间的百分比。 |
Applications |
指示使用 MPLS 标签空间的应用程序。 |
Effective Ranges |
表示实际使用范围,如果与已分配的标签相冲突,则可以与配置的范围不同。 |
Configured Ranges |
指示当前配置的范围分配给设备上的不同标签空间。 |
示例输出
显示 mpls 标签用法
user@host> show mpls label usage Label space Total Available Applications LSI 999984 999971 (100.00%) BGP/LDP VPLS with no-tunnel-services, BGP L3VPN with vrf-table-label Block 999984 999971 (100.00%) BGP/LDP VPLS with tunnel-services, BGP L2VPN Dynamic 999984 999971 (100.00%) RSVP, LDP, PW, L3VPN, RSVP-P2MP, LDP-P2MP, MVPN, EVPN, BGP Static 48576 48576 (100.00%) Static LSP, Static PW
在 enhanced-ip
受支持的设备上启用后,您将获得以下附加输出。
user@host> show mpls label usage Label space Total Available Applications LSI 996983 996983 (100.00%) BGP/LDP VPLS with no-tunnel-services, BGP L3VPN with vrf-table-label Block 996983 996983 (100.00%) BGP/LDP VPLS with tunnel-services, BGP L2VPN Dynamic 996983 996983 (100.00%) RSVP, LDP, PW, L3VPN, RSVP-P2MP, LDP-P2MP, MVPN, EVPN, BGP Static 48576 48576 (100.00%) Static LSP, Static PW Effective Ranges Range name Shared with Start End Dynamic 16 999 Dynamic 4001 999999 Static 1000000 1048575 SRGB 1000 2999 OSPF SRGB 3000 4000 GLOBAL Configured Ranges Range name Shared with Start End Dynamic 16 999 Dynamic 4001 999999 Static 1000000 1048575 SRGB 1000 2999 OSPF SRGB 3000 4000 GLOBAL user@host> show mpls label usage label 101 Label 101 is used by protocol BGP user@host> show mpls label usage label 102 Label 102 is used by protocol LDP user@host> show mpls label usage label 103 Label 103 is not allocated to any protocol
发布信息
在 Junos OS 15.1 版中引入的命令。
支持 label
在 Junos OS 17.2 版中添加的语句。
支持 label-range
在 Junos OS 17.2 版中添加的语句。