Neighbor Discovery


nv show interface <interface-id> ip neighbor-discovery

显示接口的 ND 设置。

命令语法

语法描述
<interface-id>接口名称。

版本历史

在 Cumulus Linux 5.1.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 ip neighbor-discovery
                      applied
--------------------  -------
enable                on     
router-advertisement         
  enable              off    
home-agent                   
  enable              off 

nv show interface <interface-id> ip neighbor-discovery dnssl

显示在指定接口上配置的 DNSSL 域名后缀。

您必须将 --applied 与此命令一起使用才能显示输出。

命令语法

语法描述
<interface-id>接口名称。

版本历史

在 Cumulus Linux 5.1.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 ip neighbor-discovery dnssl --applied
No Data

nv show interface <interface-id> ip neighbor-discovery dnssl <domain-name-id>

显示指定 DNSSL 域名后缀的配置信息。

您必须将 --applied 与此命令一起使用才能显示输出。

命令语法

语法描述
<interface-id>接口名称。
<domain-name-id>主机名 (RFC 1123) 或国际化主机名 (RFC 5890) 的域名部分。

版本历史

在 Cumulus Linux 5.1.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 ip neighbor-discovery dnssl accounting.nvidia.com --applied
--------  --------
lifetime  infinite

nv show interface <interface-id> ip neighbor-discovery home-agent

显示接口的 Home Agent 配置,例如路由器作为 Home Agent 的最长时间以及路由器优先级。

命令语法

语法描述
<interface-id>接口名称。

版本历史

在 Cumulus Linux 5.1.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 ip neighbor-discovery home-agent
            applied
----------  -------
enable      on     
lifetime    200    
preference  0

nv show interface <interface-id> ip neighbor-discovery prefix

显示指定接口的 ND 前缀。

您必须将 --applied 与此命令一起使用才能显示输出。

命令语法

语法描述
<interface-id>接口名称。

版本历史

在 Cumulus Linux 5.1.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 ip neighbor-discovery prefix --applied
No Data

nv show interface <interface-id> ip neighbor-discovery prefix <ipv6-prefix-id>

显示指定接口的 ND 前缀配置,例如前缀对于链路确定的有效时间、从前缀生成的地址保持首选的时间以及指定的前缀是否使用 IPv6 自动配置设置。

命令语法

语法描述
<interface-id>接口名称。
<ipv6-prefix-id>IPv6 地址和路由前缀。

版本历史

在 Cumulus Linux 5.1.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 ip neighbor-discovery prefix 2001:db8:1::100/32
                    applied   
------------------  ----------
autoconfig          on        
off-link            on        
preferred-lifetime  100000    
router-address      on        
valid-lifetime      2000000000

nv show interface <interface-id> ip neighbor-discovery rdnss

显示在指定接口上配置的 RDNSS

您必须将 --applied 与此命令一起使用才能显示输出。

命令语法

语法描述
<interface-id>接口名称。

版本历史

在 Cumulus Linux 5.1.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 ip neighbor-discovery rdnss --applied
No Data

nv show interface <interface-id> ip neighbor-discovery rdnss <ipv6-address-id>

显示在指定接口上配置的指定 RDNSS 的配置。

您必须将 --applied 与此命令一起使用才能显示输出。

命令语法

语法描述
<interface-id>接口名称。
<ipv6-address-id>RDNSS 的 IPv6 地址。

版本历史

在 Cumulus Linux 5.1.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 ip neighbor-discovery rdnss 2001:db8:1::100 --applied
No Data

nv show interface <interface-id> ip neighbor-discovery router-advertisement

显示接口的路由器通告配置,例如路由器通告消息中通告的跳数限制值、路由器通告消息可以在路由上存在的最长时间、邻居请求消息重新传输的间隔以及是否启用快速传输模式。

命令语法

语法描述
<interface-id>接口名称。

版本历史

在 Cumulus Linux 5.1.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 ip neighbor-discovery router-advertisement
                   applied
-----------------  -------
enable             off    
fast-retransmit    off    
hop-limit          64     
interval           600000 
interval-option    off    
lifetime           1800   
managed-config     off    
other-config       off    
reachable-time     0      
retransmit-time    0      
router-preference  medium

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

显示指定接口的 IP 邻居表中的所有条目。

命令语法

语法描述
<interface-id>接口。

版本历史

在 Cumulus Linux 5.7.0 中引入

示例

cumulus@switch:~$ nv show interface swp51 neighbor
ipv4
=========
    IPV4         LLADR(MAC)         
    -----------  -----------------  
    10.5.5.51    00:00:5e:00:53:51      
    169.254.0.1  48:b0:2d:a2:4c:79
ipv6
=========
    IPV6                       LLADR(MAC)         
    -------------------------  -----------------
    fe80::4ab0:2dff:fea2:4c79  48:b0:2d:a2:4c:79

nv show interface <interface-id> neighbor ipv4

显示指定接口的所有 IPv4 表条目。

命令语法

语法描述
<interface-id>接口。

版本历史

在 Cumulus Linux 5.7.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 neighbor ipv4
IPV4         LLADR(MAC)       
-----------  -----------------
169.254.0.1  48:b0:2d:4d:1a:ed

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:4d:1a:ed  permanent

nv show interface <interface-id> neighbor ipv4 <neighbor-id> lladdr <lladdr-id> state

显示指定接口的 IPv4 邻居表中邻居的状态。

命令语法

语法描述
<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:4d:1a:ed state
operational  applied
-----------  -------
permanent

nv show interface <interface-id> neighbor ipv4 <neighbor-id> lladdr <lladdr-id> flag

显示指定接口的 IPv4 邻居表中为邻居设置的标志。

命令语法

语法描述
<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:4d:1a:ed flag
  operational  applied  
   -----------  ---------
   is-router    is-router

nv show interface <interface-id> neighbor ipv6

显示指定接口的所有 IPv6 表条目。

命令语法

语法描述
<interface-id>接口。

版本历史

在 Cumulus Linux 5.7.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 neighbor ipv6
IPV6                       LLADR(MAC)
-------------------------  -----------------
fe80::1e34:daff:fe6c:dd8   1c:34:da:6c:0d:d8
fe80::3e2c:30ff:fe4b:800   3c:2c:30:4b:08:00

nv show interface <interface-id> neighbor ipv6 <neighbor-id>

显示具有特定 IPv6 地址的接口的表条目。

命令语法

语法描述
<interface-id>接口。
<neighbor-id><neighbor-id>

版本历史

在 Cumulus Linux 5.7.0 中引入

示例

cumulus@switch:~$ nv show interface swp51 neighbor ipv6 fe80::4ab0:2dff:fea2:4c79
lladdr
=========
    LLADR(MAC)         State      Flag
    -----------------  ---------  ----
    00:00:5E:00:53:51  permanent

邻居的 IPv6 地址。

nv show interface <interface-id> neighbor ipv6 <neighbor-id> lladdr <lladdr-id> state

命令语法

语法描述
<interface-id>接口。
<neighbor-id><neighbor-id>
<lladdr-id>与 IPv6 地址关联的 MAC 地址。

版本历史

在 Cumulus Linux 5.7.0 中引入

示例

cumulus@switch:~$ nv show interface swp51 neighbor ipv6 fe80::4ab0:2dff:fea2:4c79 lladdr 00:00:5E:00:53:51 state
No Data

nv show interface <interface-id> neighbor ipv6 <neighbor-id> lladdr <lladdr-id> flag

显示指定接口的 IP 邻居表中为邻居设置的标志。

命令语法

语法描述
<interface-id>接口。
<neighbor-id><neighbor-id>
<lladdr-id>与 IPv6 地址关联的 MAC 地址。

版本历史

在 Cumulus Linux 5.7.0 中引入

示例

cumulus@switch:~$ nv show interface swp51 neighbor ipv6 fe80::4ab0:2dff:fea2:4c79 lladdr 00:00:5E:00:53:51 flag
  operational  applied  
   -----------  ---------
   is-router    is-router

nv show system global nd

显示 ND 设置,例如邻居基本可达计时器和垃圾回收设置。

版本历史

在 Cumulus Linux 5.6.0 中引入

示例

cumulus@switch:~$ nv show system global nd
                              operational  applied  
----------------------------  -----------  ------- 
base-reachable-time           50           50      
garbage-collection-threshold                               
  effective                   17920                        
  maximum                     20480                        
  minimum                     128           

nv show system global nd garbage-collection-threshold

显示 ND 垃圾回收阈值设置。

版本历史

在 Cumulus Linux 5.6.0 中引入

示例

cumulus@switch:~$ nv show system global nd garbage-collection-threshold
           operational  applied
---------  -----------  -------
effective  35840               
maximum    40960               
minimum    128