ARP
nv show interface neighbor
显示 IP 邻居表中的所有条目。
版本历史
在 Cumulus Linux 5.7.0 中引入
示例
cumulus@switch:~$ nv show interface neighbor
Interface IP/IPV6 LLADR(MAC) State Flag
------------- ------------------------- ----------------- --------- ----------
eth0 192.168.200.251 48:b0:2d:00:00:01 stale
192.168.200.1 48:b0:2d:aa:8b:45 reachable
fe80::4ab0:2dff:fe00:1 48:b0:2d:00:00:01 reachable router
peerlink.4094 169.254.0.1 48:b0:2d:3f:69:d6 permanent
fe80::4ab0:2dff:fe3f:69d6 48:b0:2d:3f:69:d6 reachable router
swp51 169.254.0.1 48:b0:2d:a2:4c:79 permanent
fe80::4ab0:2dff:fea2:4c79 48:b0:2d:a2:4c:79 reachable router
swp52 169.254.0.1 48:b0:2d:48:f1:ae permanent
fe80::4ab0:2dff:fe48:f1ae 48:b0:2d:48:f1:ae reachable router
swp53 169.254.0.1 48:b0:2d:2d:de:93 permanent
fe80::4ab0:2dff:fe2d:de93 48:b0:2d:2d:de:93 reachable router
swp54 169.254.0.1 48:b0:2d:80:8c:21 permanent
fe80::4ab0:2dff:fe80:8c21 48:b0:2d:80:8c:21 reachable router
vlan10 10.1.10.3 44:38:39:22:01:78 permanent
10.1.10.101 48:b0:2d:a1:3f:4b reachable
10.1.10.104 48:b0:2d:1d:d7:e8 noarp |ext_learn
fe80::4ab0:2dff:fea1:3f4b 48:b0:2d:a1:3f:4b reachable
fe80::4ab0:2dff:fe1d:d7e8 48:b0:2d:1d:d7:e8 noarp |ext_learn
fe80::4638:39ff:fe22:178 44:38:39:22:01:78 permanent
...
nv show interface <interface-id> neighbor ipv4
显示指定接口的 ARP 表中的所有条目。
命令语法
语法 | 描述 |
---|---|
<interface-id> | 接口名称。 |
版本历史
在 Cumulus Linux 5.7.0 中引入
示例
cumulus@switch:~$ nv show interface swp51 neighbor ipv4
IPV4 LLADR(MAC) State Flag
----------- ----------------- --------- ----
169.254.0.1 48:b0:2d:2b:5b:b9 permanent
nv show interface <interface-id> neighbor ipv4 <neighbor-id>
显示具有特定 IPv4 地址的接口的表条目。
命令语法
语法 | 描述 |
---|---|
<interface-id> | 该接口。 |
<neighbor-id> | 邻居的 IPv4 地址。 |
版本历史
在 Cumulus Linux 5.7.0 中引入
示例
cumulus@switch:~$ nv show interface swp51 neighbor ipv4 169.254.0.1
lladdr
=========
LLADR(MAC) State Flag
----------------- --------- ----
48:b0:2d:2b:5b:b9 permanent
nv show interface <interface-id> neighbor ipv4 <neighbor-id> lladdr <lladdr-id> flag
显示为指定接口和关联 MAC 地址的 ARP 表中邻居设置的标志。
命令语法
语法 | 描述 |
---|---|
<interface-id> | 接口名称。 |
<neighbor-id> | 邻居的 IPv4 地址。 |
<lladdr-id> | 与 IPv4 地址关联的 MAC 地址。 |
版本历史
在 Cumulus Linux 5.7.0 中引入
示例
cumulus@switch:~$ nv show interface swp51 neighbor ipv4 169.254.0.1 lladdr 48:b0:2d:2b:5b:b9 flag
operational applied
----------- ---------
is-router is-router
nv show interface <interface-id> neighbor ipv4 <neighbor-id> lladdr <lladdr-id> state
显示指定接口和关联 MAC 地址的 ARP 表中邻居的状态。
命令语法
语法 | 描述 |
---|---|
<interface-id> | 接口名称。 |
<neighbor-id> | 邻居的 IPv4 地址。 |
<lladdr-id> | 与 IPv4 地址关联的 MAC 地址。 |
版本历史
在 Cumulus Linux 5.7.0 中引入
示例
cumulus@switch:~$ nv show interface swp51 neighbor ipv4 169.254.0.1 lladdr 48:b0:2d:2b:5b:b9 state
operational applied
----------- ---------
permanent permanent
nv show system global arp
显示 ARP 设置,例如邻居基本可达计时器和垃圾回收设置。
版本历史
在 Cumulus Linux 5.6.0 中引入
示例
cumulus@switch:~$ nv show system global arp
operational applied
---------------------------- ----------- -------
base-reachable-time 50 50
garbage-collection-threshold
effective 35840
maximum 40960
minimum 128
nv show system global arp garbage-collection-threshold
显示 ARP 垃圾回收阈值设置。
版本历史
在 Cumulus Linux 5.6.0 中引入
示例
cumulus@switch:~$ nv show system global arp garbage-collection-threshold
operational applied
--------- ----------- -------
effective 35840
maximum 40960
minimum 128