ping mpls segment routing ospf
语法
ping mpls segment routing ospf fec algorithm algorithm-id <count count> <destination address> <detail> <exp forwarding-class> <instance routing-instance-name> <logical-system (all | logical-system-name)> <p2mp root-addr ip-address lsp-id identifier> <size bytes> <source source-address> <stitched-protocol> <sweep>
描述
检查 OSPF 协议添加的 MPLS 分段路由标签交换路径 (LSP) 连接的可操作性。键入 Ctrl+c 可中断 ping mpls segment routing ospf
命令。
选项
algorithm algorithm-id | (可选)指定灵活的算法标识符。值的范围是通过 0 255 。默认值为 0 ,表示未配置任何算法。与 algorithm-id 前缀结合使用用于区分标记的 SR 路径。 |
count count | (可选)要发送的 ping 请求数。如果未指定,则 |
destination address | (可选)为 ping 回显请求指定默认 ( |
detail | (可选)显示有关发送和接收的回显请求的详细信息。 |
exp forwarding-class | (可选)MPLS ping 数据包的转发类值。 |
fec | 使用转发等效类 (FEC) 前缀和长度对 LDP 信号的 LSP 执行 ping 操作。 |
instance routing-instance-name | (可选)允许您对路由实例和与 LSP 关联的转发等效类 (FEC) 的组合执行 ping 操作。 |
logical-system (all | logical-system-name) | (可选)在所有逻辑系统或指定的逻辑系统上执行此操作。 |
p2mp root-addr ip-address lsp-id identifier | (可选)对点对多点 LSP 的端点执行 ping 操作。输入点对多点 LSP 根的 IP 地址和点对多点 LSP 的 ID 号。 |
size bytes | (可选)LSP ping 请求数据包的大小( |
source source-address | (可选)传出接口的 IP 地址。此地址在 ping 请求的 IP 源地址字段中发送。如果未指定此选项,则默认地址通常是环路接口 ( |
stitched-protocol | (可选)协议拼接在中间节点上。 |
sweep | (可选)自动确定最大传输单元 (MTU) 的大小。 |
所需权限级别
网络
输出字段
输入此命令时,系统会提供有关请求状态的反馈。感叹号 (!
) 表示已收到回显回复。句点 (.
) 表示在超时期限内未收到回显回复。A x
表示收到带有错误代码的回显回复。带有错误代码的数据包不计入收到的数据包计数。它们单独核算。
示例输出
ping MPLS 分段路由 OSPF
user@host>ping mpls segment-routing ospf 6.6.6.6 !!!!! --- lsping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss
ping MPLS 分段路由 ISIS
user@host>ping mpls segment-routing ospf 6.6.6.6 detail Request for seq 1, to interface 333, label 22, packet size 80 Reply for seq 1, return code: Egress-ok, time: -7542.667 ms Local transmit time: 2019-03-06 11:55:03 IST 639.914 ms Remote receive time: 2019-03-06 11:54:56 IST 97.247 ms Request for seq 2, to interface 333, label 22, packet size 80 Reply for seq 2, return code: Egress-ok, time: -7543.680 ms Local transmit time: 2019-03-06 11:55:04 IST 641.965 ms Remote receive time: 2019-03-06 11:54:57 IST 98.285 ms Request for seq 3, to interface 333, label 22, packet size 80 Reply for seq 3, return code: Egress-ok, time: -7530.457 ms Local transmit time: 2019-03-06 11:55:05 IST 639.923 ms Remote receive time: 2019-03-06 11:54:58 IST 109.466 ms Request for seq 4, to interface 333, label 22, packet size 80 Reply for seq 4, return code: Egress-ok, time: -7540.548 ms Local transmit time: 2019-03-06 11:55:06 IST 642.870 ms Remote receive time: 2019-03-06 11:54:59 IST 102.322 ms Request for seq 5, to interface 333, label 22, packet size 80 Reply for seq 5, return code: Egress-ok, time: -7540.672 ms Local transmit time: 2019-03-06 11:55:07 IST 646.870 ms Remote receive time: 2019-03-06 11:55:00 IST 106.198 ms --- lsping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss
ping MPLS 分段路由 OSPF(标记为 OSPF 灵活算法 IPv4 ping)
user@host>ping mpls segment-routing ospf 10.10.10.10 algorithm 140 !!!!! --- lsping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss
发布信息
Junos OS 19.1R1 版中引入的命令
algorithm
Junos OS 23.1R1 版和 Junos OS 演化版 23.1R1 中引入的选项。