show ldp session
语法
show ldp session <brief | detail | extensive> <auto-targeted> <destination> <instance instance-name> <logical-system (all | logical-system-name)>
说明
显示有关标签分发协议 (LDP) 会话的信息。
选项
none | 显示有关所有路由实例的所有 LDP 会话的标准信息。 |
brief | detail | extensive | (可选)显示指定的输出级别。 |
auto-targeted | (可选)显示有关使用环路地址自动针对的 LDP 会话的信息。 |
destination | (可选)将 LDP 会话显示限制为指定地址。 |
instance instance-name | (可选)显示指定实例的路由实例信息。如果 |
logical-system (all | logical-system-name) | (可选)在所有逻辑系统或特定逻辑系统上执行此操作。仅 Junos OS 支持此选项。 |
必需的权限级别
视图
输出字段
表 1 介绍了命令的 show ldp session
输出字段。输出字段按其显示大致顺序列出。
字段名称 |
字段说明 |
输出级别 |
---|---|---|
|
会话的传输地址。 |
any |
|
会话状态: |
any |
|
TCP 连接状态: |
any |
|
会话结束之前的剩余时间(以秒为单位)。 |
any |
|
此会话对等方的 LDP 标识符。 |
详细扩展 |
|
发送下一次激活的时间,以秒为单位。 |
|
|
本地路由器是否在会话和会话建立过程中发挥着积极作用。 |
|
|
本地路由器是否在会话和会话建立过程中扮演被动角色。 |
|
|
会话的最大协议数据单元 (PDU) 大小(数据包大小)。 |
|
|
会话结束之前的剩余时间(以秒为单位)。此值与使用 |
|
|
促成会话的邻接方数。 |
|
|
LDP 会话类别: |
any |
|
保持间隔,以秒为单位。 |
|
|
TCP 连接重试间隔,以秒为单位。 |
|
|
本地传输地址。 |
|
|
远程传输地址。 |
|
|
本次研讨会已启动的时间。 |
|
|
自上次会话以来的时间。 |
|
|
会话中断的原因:
|
|
|
会话从上到下更改的次数。 |
|
|
LDP 正在正常重新启动。 |
|
|
向对等方通告的 LDP 功能。 |
|
|
从对等方接收的 LDP 功能。 |
|
|
有关 MPLS LDP 会话保护状态的信息。 |
|
|
声明正常重新启动完成之前剩余的时间量(以毫秒为单位)。 |
|
|
显示最长匹配的 MD5 身份验证 |
|
|
有关 LDP 会话本地结束平滑重启的信息。平滑重启和助手模式是独立的。
|
|
|
有关 LDP 会话远程结束时平稳重新启动的信息。平滑重启和助手模式是独立的。
|
|
|
重新启动节点尝试在邻接方的帮助下恢复其丢失状态的时间量(以毫秒为单位)。 |
|
|
会话中收到的下一跃点地址。 |
|
|
排队发送给组中对等方的消息数。 |
|
|
正在发送的消息类型:
|
|
示例输出
show ldp 会话简述
user@host> show ldp session brief Address State Connection Hold time 10.255.72.160 Operational Open 21 10.255.72.164 Operational Open 20 10.255.72.172 Operational Open 21
显示 ldp 会话详细信息
user@host> show ldp session detail Address: 192.168.0.3, State: Operational, Connection: Open, Hold time: 27 Session ID: 192.168.0.2:0--192.168.0.3:0 Next keepalive in 7 seconds Passive, Maximum PDU: 4096, Hold time: 30, Neighbor count: 1 Neighbor types: discovered Keepalive interval: 10, Connect retry interval: 1 Local address: 192.168.0.2, Remote address: 192.168.0.3 Up for 00:00:02 Capabilities advertised: none Capabilities received: none Protection: disabled Local - Restart: enabled, Helper mode: enabled, Reconnect time: 60000 Remote - Restart: enabled, Helper mode: enabled, Reconnect time: 60000 Local maximum neighbor reconnect time: 120000 msec Local maximum neighbor recovery time: 240000 msec Local Label Advertisement mode: Downstream unsolicited Remote Label Advertisement mode: Downstream unsolicited Negotiated Label Advertisement mode: Downstream unsolicited Nonstop routing state: Not in sync Next-hop addresses received: 10.0.0.5 10.0.0.33
显示 ldp 会话范围
user@host> show ldp session extensive Address: 192.168.0.3, State: Operational, Connection: Open, Hold time: 22 Session ID: 192.168.0.2:0--192.168.0.3:0 Next keepalive in 2 seconds Passive, Maximum PDU: 4096, Hold time: 30, Neighbor count: 1 Neighbor types: discovered Keepalive interval: 10, Connect retry interval: 1 Local address: 192.168.0.2, Remote address: 192.168.0.3 Up for 00:05:37 Capabilities advertised: none Capabilities received: none Protection: disabled Local - Restart: enabled, Helper mode: enabled, Reconnect time: 60000 Remote - Restart: enabled, Helper mode: enabled, Reconnect time: 60000 Local maximum neighbor reconnect time: 120000 msec Local maximum neighbor recovery time: 240000 msec Local Label Advertisement mode: Downstream unsolicited Remote Label Advertisement mode: Downstream unsolicited Negotiated Label Advertisement mode: Downstream unsolicited Nonstop routing state: Not in sync Next-hop addresses received: 10.0.0.5 10.0.0.33 Queue depth: 0 Message type Total Last 5 seconds Sent Received Sent Received Initialization 1 1 0 0 Keepalive 33 33 1 1 Notification 0 0 0 0 Address 1 1 0 0 Address withdraw 0 0 0 0 Label mapping 7 5 0 0 Label request 0 0 0 0 Label withdraw 3 1 0 0 Label release 1 3 0 0 Label abort 0 0 0 0
显示 ldp 会话自动定向详细信息
user@host> show ldp session auto-generated detail Address: 192.168.1.5, State: Operational, Connection: Open, Hold time: 25 Session ID: 192.168.1.1:0--192.168.1.5:0 Next keepalive in 5 seconds Passive, Maximum PDU: 4096, Hold time: 30, Neighbor count: 1 Neighbor types: discovered, Auto-targeted ^^^^^^^^^^^^^ Keepalive interval: 10, Connect retry interval: 1 Local address: 192.168.1.1, Remote address: 192.168.1.5 Up for 00:00:34 Capabilities advertised: none Capabilities received: none Protection: disabled Local - Restart: disabled, Helper mode: enabled Remote - Restart: disabled, Helper mode: enabled Local maximum neighbor reconnect time: 120000 msec Local maximum neighbor recovery time: 240000 msec Local Label Advertisement mode: Downstream unsolicited Remote Label Advertisement mode: Downstream unsolicited Negotiated Label Advertisement mode: Downstream unsolicited Nonstop routing state: Not in sync Next-hop addresses received: 192.168.1.2 192.168.1.3
发布信息
在 Junos OS 7.4 版之前引入的命令。