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
命令的输出字段。输出字段按其出现的大致顺序列出。
字段名称 |
字段说明 |
输出级别 |
---|---|---|
|
会话的传输地址。 |
任何 |
|
会话的状态: |
任何 |
|
TCP 连接状态: |
任何 |
|
会话关闭前的剩余时间(以秒为单位)。 |
任何 |
|
此会话对等方的 LDP 标识符。 |
细节丰富 |
|
发送下一次激活之前的时间(以秒为单位)。 |
|
|
本地路由器是否在会话和会话建立期间发挥活动作用。 |
|
|
本地路由器是否在会话中和会话建立期间扮演被动角色。 |
|
|
会话的最大协议数据单元 (PDU) 大小(数据包大小)。 |
|
|
会话关闭前的剩余时间(以秒为单位)。此值对应于使用在层次结构级别配置的 |
|
|
参与会话的邻居数。 |
|
|
LDP 会话的类别: |
任何 |
|
激活间隔(以秒为单位)。 |
|
|
TCP 连接重试间隔(以秒为单位)。 |
|
|
本地传输地址。 |
|
|
远程传输地址。 |
|
|
此会话结束的时间。 |
|
|
自上次会话中断以来的时间。 |
|
|
会话中断的原因:
|
|
|
会话从上到下更改的次数。 |
|
|
LDP 正在正常重启过程中。 |
|
|
向对等方播发的 LDP 功能。 |
|
|
从对等方收到的 LDP 功能。 |
|
|
有关 MPLS LDP 会话保护状态的信息。 |
|
|
在宣布正常重新启动完成之前剩余的时间量(以毫秒为单位)。 |
|
|
显示最长匹配 MD5 身份验证 |
|
|
有关 LDP 会话本地结束平稳重新启动的信息。平稳重启和帮助程序模式是独立的。
|
|
|
有关在 LDP 会话的远程端平稳重新启动的信息。平稳重启和帮助程序模式是独立的。
|
|
|
重新启动节点尝试在其邻居的帮助下恢复其丢失状态的时间量(以毫秒为单位)。 |
|
|
会话上收到的下一跃点地址。 |
|
|
排队等待发送给组中对等方的邮件数。 |
|
|
发送的消息类型:
|
|
示例输出
显示 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 版之前引入的命令。