show ancp neighbor
语法
show ancp neighbor
<brief | detail>
<ip-address ip-address
<system-name mac-address>
描述
显示有关所有 ANCP 邻接方或指定 ANCP 邻接方的信息,无论操作状态如何。
选项
brief | detail | (选答)显示指定的详细信息级别。 |
ip-address ip-address | (选答)显示有关 IP 地址指定的邻接方(访问节点)的信息。 |
system-name mac-address | (选答)显示有关 MAC 地址指定的邻接方(接入节点)的信息。 |
所需权限级别
视图
输出字段
表 1 列出了命令 show ancp neighbor
的输出字段。输出字段按其出现的大致顺序列出。
字段名称 |
字段说明 |
输出级别 |
---|---|---|
版本 |
ANCP 实现的版本:
|
|
|
ANCP 邻接方的 IP 地址。 |
|
|
将 ANCP 消息与特定分区相关联的编号。 |
|
|
ANCP 邻接的运行状态:
|
所有级别 |
|
邻接以以下格式之一建立的时间:
|
|
|
与 ANCP 邻接方(接入本地环路)关联的订阅者数。 |
|
|
协商的 ANCP 功能:
|
所有级别 |
|
ANCP 邻接方的 MAC 地址。 |
|
|
交换 ANCP 消息的 TCP 端口。 |
|
|
从边缘设备的角度标识 ANCP 链路实例的编号。 |
|
|
从接入节点的角度标识 ANCP 实例的编号。此数字是唯一的,当节点或链路在关闭后恢复时会更改。 |
|
|
ANCP 对等方以 100 毫秒的增量播发的邻接计时器值;ANCP ACK 消息之间的间隔。此值在 ANCP 会话期间保持不变。 |
|
|
标识是否使用分区以及如何协商 ID 的数字:
|
|
|
指定所请求分区类型的数字: |
|
|
标识 ANCP 代理已与之形成邻接关系的访问节点的逻辑分区的编号。 值为零表示代理在分区 ID 为零的单个 TCP 会话上支持 IP 地址上的每个邻接方。这是默认的支持案例。 非零值表示代理在具有非零分区 ID 的单个 TCP 会话上支持 IP 地址上的每个邻接方。 |
|
|
共享分区的邻接数。 |
|
|
在宣布邻接方关闭之前,边缘设备等待来自邻接方的邻接数据包的剩余时间。最大滞区时间值是配置的邻接计时器值的三倍。此字段根据收到最后一个邻接数据包的时间显示当前值。 |
|
|
从邻居接收的用于维护邻接的同步消息数。 |
|
|
为响应节点的同步消息,从邻居接收的同步确认消息数。 |
|
|
从邻居收到的消息数,指示需要重置与邻居的链接。 |
|
|
建立邻接后定期从邻居接收的确认消息数。 |
|
|
从邻接方接收的状态消息数,指示端口已转换为正常运行状态。 |
|
|
从邻接方收到的状态消息数,指示端口已转换为关闭状态。 |
|
|
从邻居收到的通用响应消息数。 |
|
|
从邻居收到的邻接更新消息数。 |
|
|
从邻居收到的对 |
|
|
从不归入其他类别之一的邻接方接收的所有其他 ANCP 消息包的数目。 |
|
|
为保持邻接而发送给邻居的同步消息数。 |
|
|
为响应邻居的同步消息而发送给邻居的同步确认消息数。 |
|
|
发送给邻居的消息数,指示需要重置与邻居的链接。 |
|
|
建立邻接关系后定期向邻居发送的确认消息数。 |
|
|
发送给邻居的通用响应消息数。 |
|
|
发送到邻居的 OAM |
|
|
已超过从邻接方接受的最大发现表条目数的次数。 |
|
其他计数器
|
|
detail |
|
发送到邻居的通用响应消息数,其中包括以下每个结果代码:
|
|
示例输出
显示 ANCP 邻居
user@host> show ancp neighbor Version IP Address PartID State Time Subscriber Capabilities Count 0x31 203.0.113.13 0 Established 11:24 2 Topo 0x31 203.0.113.15 0 Not Estblshd 2:45 2 Topo * 0x0 198.51.100.102 0 Establishing 0 0 * 0x0 192.0.2.0 0 Configured 0 0 * 0x0 192.0.2.1 0 Configured 0 0
显示 ANCP 邻接方详细信息
user@host> show ancp neighbor detail Neighbor Information Version : 0x32 IP Address : 10.150.240.13 System Name : 00:10:94:02:00:01 Auto-Configure Interface: xe-2/0/0 Time : 1:45:55 TCP Port : 61412 State : Established Subscriber Count : 100 Capabilities : Topo, OAM System Instance : 7 Peer Instance : 26 Adjacency Timer (in 100ms) : 250 Peer Adjacency Timer (in 100ms) : 250 Adjacency Loss Hold Time (secs) : 10 Partition Type : 0 Partition Flag : 1 Partition Identifier : 0 Partition Adjacencies : 0 Dead Timer : 69 Received Syn Count : 5 Received Synack Count : 5 Received Rstack Count : 0 Received EOF Count : 1 <<<<<< Received Ack Count : 354 Received Port Up Count : 600 Received Port Down Count : 100 Received Generic Resp Count : 0 Received Adjacency Update Count : 0 Received OAM Count : 0 Received Other Count : 0 Sent Syn Count : 5 Sent Synack Count : 5 Sent Rstack Count : 3 Sent Ack Count : 364 Sent Generic Resp Count : 0 Sent OAM Count : 0 Max Discovery Limit Exceed Count : 0 Internal Port Up Sent Count : 600 Internal Port Down Sent Count : 100 Internal Port Reset Count : 2 Internal Adjacency Loss Port Down Count : 3 Internal Access Change Port Down Count : 0 Adjacency Loss Timeout Count : 8 Sent Rstack Time : Wed, 21 Aug 2024 13:09:20 Received Rstack Time : None Received EOF Time : Wed, 21 Aug 2024 12:47:49 Adjacency Loss Timeout Time : Wed, 21 Aug 2024 13:09:31
显示 ANCP 邻接方 IP 地址
user@host> show ancp neighbor ip-address 192.0.2.85 Neighbor Information Version : 0x32 IP Address : 192.0.2.85 System Name : 00:00:5e:00:53:ba Up Time : 26 TCP Port : 32666 State : Established Subscriber Count : 4 Capabilities : Topo System Instance : 2 Peer Instance : 20 Adjacency Timer (in 100ms) : 100 Peer Adjacency Timer (in 100ms) : 100 Partition Type : 0 Partition Flag : 1 Partition Identifier : 0 Partition Adjacencies : 0 Dead Timer : 23 Received Syn Count : 1 Received Synack Count : 1 Received Rstack Count : 0 Received Ack Count : 4 Received Port Up Count : 10 Received Port Down Count : 0 Received Generic Resp Count : 0 Received Adjacency Update Count : 0 Received OAM Count : 0 Received Other Count : 0 Sent Syn Count : 1 Sent Synack Count : 2 Sent Rstack Count : 0 Sent Ack Count : 3 Sent Generic Resp Count : 0 Sent OAM Count : 0 Max Discovery Limit Exceed Count : 0 Result Codes: Received Sent Invalid Request Message Count : 0 0 Specified Port(s) Down Count : 0 0 Out of Resources Count : 0 0 Request Msg Not Implemented Count: 0 0 Malformed Msg Count : 0 0 TLV Missing Count : 0 0 Invalid TLV Contents Count : 0 0 Non-Existent Port(s) Count : 0 0
显示 ANCP 邻接方系统名称
user@host> show ancp neighbor 00:00:5e:00:53:ba detail Neighbor Information Version : 0x31 IP Address : 203.0.113.101 System Name : 00:00:5e:00:53:ba Up Time : 19 TCP Port : 1028 State : Established Subscriber Count : 2 Capabilities : Topology Discovery, OAM System Instance : 1 Peer Instance : 10 Adjacency Timer (in 100ms) : 100 Peer Adjacency Timer (in 100ms) : 250 Partition Type : 0 Partition Flag : 1 Partition Identifier : 0 Partition Adjacencies : 0 Dead Timer : 55 Received Syn Count : 1 Received Synack Count : 1 Received Rstack Count : 0 Received Ack Count : 1 Received Port Up Count : 34 Received Port Down Count : 0 Received Generic Resp Count : 0 Received Adjacency Update Count : 0 Received OAM Responses Count : 2 Received Other Count : 0 Sent Syn Count : 1 Sent Synack Count : 1 Sent Rstack Count : 0 Sent Ack Count : 3 Sent Generic Resp Count : 0 Sent OAM Requests Count : 4 Max Discovery Limit Exceed Count : 3 Result Codes: Received Sent Invalid Request Message Count : 0 0 Specified Port(s) Down Count : 0 0 Out of Resources Count : 0 0 Request Msg Not Implemented Count : 0 0 Malformed Msg Count : 0 0 TLV Missing Count : 0 0 Invalid TLV Contents Count : 0 0 Non-Existent Port(s) Count : 0 0
发布信息
在 Junos OS 9.4 版中引入的命令。
从 Junos OS 21.2R1 版开始添加了其他计数器。