接口


nv show interface

显示交换机上所有接口的信息,例如名称、类型(swp、bond、vrf 等)、状态(up 或 down)、速度、MTU、远程主机和远程端口以及 IP 地址。

版本历史

在 Cumulus Linux 5.0.0 中引入

示例

cumulus@switch:~$ nv show interface
Interface   State  Speed  MTU    Type      Remote Host      Remote Port      Summary         
----------  -----  -----  -----  --------  ---------------  --------------…  ---------------…
BLUE        up            65575  vrf                                         IP Address:     
                                                                             127.0.0.1/8     
                                                                             IP Address:     
                                                                             ::1/128         
RED         up            65575  vrf                                         IP Address:     
                                                                             127.0.0.1/8     
                                                                             IP Address:     
                                                                             ::1/128         
bond1       up     1G     9000   bond                                                        
bond2       up     1G     9000   bond                                                        
bond3       up     1G     9000   bond                                                        
br_default  up            9216   bridge                                                      
br_l3vni    up            9216   bridge                                                      
eth0        up     1G     1500   eth       oob-mgmt-switch  swp10            IP Address:     
                                                                             192.168.200.11/…
lo          up            65536  loopback                                    IP Address:     
                                                                             10.10.10.1/32   
                                                                             IP Address:     
                                                                             127.0.0.1/8     
                                                                             IP Address:     
                                                                             ::1/128         
mgmt        up            65575  vrf                                         IP Address:     
                                                                             127.0.0.1/8     
                                                                             IP Address:     
                                                                             ::1/128         
swp1        up     1G     9000   swp       server01         48:b0:2d:bc:2e…                  
swp2        up     1G     9000   swp       server02         48:b0:2d:36:9e…                  
swp3        up     1G     9000   swp       server03         48:b0:2d:09:b9…                  
swp4        down          1500   swp                                                         
swp5        down          1500   swp                                                         
swp6        up     1G     9216   swp                                                        
...

nv show interface <interface-id>

显示指定接口的配置信息。

命令语法

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

版本历史

在 Cumulus Linux 5.0.0 中引入

示例

cumulus@switch:~$ nv show interface swp1
                           operational              applied
-------------------------  -----------------------  -------
type                       swp                      swp    
router                                                     
  pbr                                                      
    [map]                                                  
  ospf                                                     
    enable                                          off    
  pim                                                      
    enable                                          off    
  adaptive-routing                                         
    enable                                          off    
  ospf6                                                    
    enable                                          off    
lldp                                                       
  dcbx-pfc-tlv             off                             
  dcbx-ets-config-tlv      off                             
  dcbx-ets-recomm-tlv      off                             
  state                    enabled                         
  [neighbor]               server01                        
evpn                                                       
  multihoming                                              
    uplink                                          off    
ptp                                                        
  enable                   off                      off    
[acl]                                                      
synce                                                      
  enable                                            off    
neighbor                                                   
  [ipv4]                                                   
  [ipv6]                                                   
sflow                                                      
  sample-rate              0                               
  state                    disabled                 enabled
parent                     bond1                           
ip                                                         
  vrrp                                                     
    enable                                          off    
  igmp                                                     
    enable                                          off    
  neighbor-discovery                                       
    enable                                          on     
    router-advertisement                                   
      enable                                        off    
    home-agent                                             
      enable                                        off    
    [rdnss]                                                
    [dnssl]                                                
    [prefix]                                               
  ipv4                                                     
    forward                                         on     
  ipv6                                                     
    enable                                          on     
    forward                                         on     
  vrf                                               default
  [gateway]                                                
link                                                       
  auto-negotiate           off                      on     
  duplex                   full                     full   
  speed                    1G                       auto   
  mac-address              48:b0:2d:f0:b9:86               
  fec                                               auto   
  mtu                      9000                     9216   
  fast-linkup              off                             
  [breakout]                                               
  state                    up                       up     
  flap-protection                                          
    enable                                          on     
  stats                                                    
    in-bytes               8.19 MB                         
    in-pkts                67797                           
    in-drops               0                               
    in-errors              0                               
    out-bytes              9.96 MB                         
    out-pkts               102895                          
    out-drops              0                               
    out-errors             0                               
    carrier-transitions    4                               
    carrier-up-count       2                               
    carrier-down-count     2                               
  protodown                disabled                        
  oper-status              up                              
  admin-status             up                              
  oper-status-last-change  2024/10/22 18:36:00.469 
...

Cumulus Linux 5.11 及更高版本显示接口操作状态上次更改的时间(日期和时间)。


nv show interface <interface-id> bond

显示指定接口的 bond 成员配置。

命令语法

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

版本历史

在 Cumulus Linux 5.0.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 bond

nv show interface <interface-id> bond member

显示指定接口的 bond 成员。

命令语法

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

版本历史

在 Cumulus Linux 5.0.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 bond member

nv show interface <interface-id> bond member <member-id>

显示指定接口的特定 bond 成员配置。

命令语法

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

版本历史

在 Cumulus Linux 5.0.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 bond member bond1

nv show interface <interface> counters

显示特定接口的所有计数器,例如丢包、错误和分配计数。

命令语法

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

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 counters
                     operational  applied  pending
-------------------  -----------  -------  -------
carrier-transitions  6                            

Detailed Counters
====================
    Counter            Receive  Transmit
    -----------------  -------  --------
    Broadcast Packets  0        0       
    Multicast Packets  0        0       
    Total Octets       0        0       
    Total Packets      0        0       
    Unicast Packets    0        0       

Drop Counters
================
    Counter          Receive  Transmit
    ---------------  -------  --------
    ACL Drops        0        n/a     
    Buffer Drops     0        n/a     
    Non-Queue Drops  n/a      0       
    Queue Drops      n/a      0       
    Total Drops      0        0       

Error Counters
=================
    Counter           Receive  Transmit
    ----------------  -------  --------
    Alignment Errors  0        n/a     
    FCS Errors        0        n/a     
    Jabber Errors     0        n/a     
    Length Errors     0        n/a     
    Oversize Errors   0        n/a     
    Symbol Errors     0        n/a     
    Total Errors      0        0       
    Undersize Errors  0        n/a     

Packet Size Statistics
=========================
    Counter     Receive  Transmit
    ----------  -------  --------
    64          0        0       
    65-127      0        0       
    128-255     0        0       
    256-511     0        0       
    512-1023    0        0       
    1024-1518   0        0       
    1519-2047   0        0       
    2048-4095   0        0       
    4096-16383  0        0       

Ingress Buffer Statistics
============================
    priority-group  rx-frames  rx-buffer-discards  rx-shared-buffer-discards
    --------------  ---------  ------------------  -------------------------
    0               0          0 Bytes             0 Bytes                  
    1               0          0 Bytes             0 Bytes                  
    2               0          0 Bytes             0 Bytes                  
    3               0          0 Bytes             0 Bytes                  
    4               0          0 Bytes             0 Bytes                  
    5               0          0 Bytes             0 Bytes                  
    6               0          0 Bytes             0 Bytes                  
    7               0          0 Bytes             0 Bytes
...

nv show interface <interface> counters drops

显示特定接口的丢包计数器。

命令语法

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

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 counters drops
Counter          Receive  Transmit
---------------  -------  --------
ACL Drops        0        n/a     
Buffer Drops     0        n/a
Non-Queue Drops  n/a      0       
Queue Drops      n/a      0       
Total Drops      0        0

nv show interface <interface> counters errors

显示特定接口的错误计数器。

命令语法

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

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 counters errors
Counter           Receive  Transmit
----------------  -------  --------
Alignment Errors  0        n/a     
FCS Errors        0        n/a     
Jabber Errors     0        n/a     
Length Errors     0        n/a     
Oversize Errors   0        n/a     
Symbol Errors     0        n/a     
Total Errors      0        0       
Undersize Errors  0        n/a

nv show interface <interface> counters pktdist

显示特定接口的数据包分配计数器。

命令语法

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

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 counters pktdist
Counter     Receive  Transmit
----------  -------  --------
64          0        0       
65-127      0        0       
128-255     0        0       
256-511     0        0       
512-1023    0        0       
1024-1518   0        0       
1519-2047   0        0       
2048-4095   0        0       
4096-16383  0        0

nv show interface <interface-id> ip

显示指定接口的 IP 配置。

命令语法

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

版本历史

在 Cumulus Linux 5.0.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 ip
                        operational  applied  pending
----------------------  -----------  -------  -------
igmp                                                 
  enable                             off      off    
ipv4                                                 
  forward                            on       on     
ipv6                                                 
  enable                             on       on     
  forward                            on       on     
neighbor-discovery                                   
  enable                             on       on     
  [dnssl]                                            
  home-agent                                         
    enable                           off      off    
  [prefix]                                           
  [rdnss]                                            
  router-advertisement                               
    enable                           off      off    
vrrp                                                 
  enable                             off      off    
vrf                                  default  default
[gateway]

nv show interface <interface-id> ip address

显示为指定接口配置的 IP 地址。

命令语法

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

版本历史

在 Cumulus Linux 5.0.0 中引入

示例

cumulus@switch:~$ nv show interface lo ip address

-------------
10.10.10.1/32
127.0.0.1/8  
::1/128  

nv show interface <interface-id> ip address <ip-prefix-id>

显示有关指定接口的特定 IP 地址的详细信息。

命令语法

语法描述
<interface-id>接口名称。
<ip-prefix-id>IPv4 或 IPv6 地址以及 CIDR 表示法中的路由前缀。

版本历史

在 Cumulus Linux 5.0.0 中引入

示例

cumulus@switch:~$ nv show interface lo ip address 10.10.10.1/32

nv show interface <interface-id> ip gateway

显示指定接口的网关 IP 地址。

命令语法

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

版本历史

在 Cumulus Linux 5.0.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 ip gateway

nv show interface <interface-id> ip gateway <ip-address-id>

显示有关指定接口的特定网关 IP 地址的信息

命令语法

语法描述
<interface-id>接口名称。
<ip-address-id>网关 IP 地址。

版本历史

在 Cumulus Linux 5.0.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 ip gateway 10.10.10.1

nv show interface <interface-id> ip ipv4

显示指定接口的 IPv4 信息。

命令语法

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

版本历史

在 Cumulus Linux 5.0.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 ip ipv4
         operational  applied  pending
-------  -----------  -------  -------
forward               on       on

nv show interface <interface-id> ip ipv6

显示指定接口的 IPv6 信息。

命令语法

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

版本历史

在 Cumulus Linux 5.0.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 ip ipv6
        operational  applied  pending
-------  -----------  -------  -------
enable                on       on     
forward               on       on

nv show interface <interface-id> ip neighbor

显示有关为指定接口配置的 IP 邻居的信息。

命令语法

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

版本历史

在 Cumulus Linux 5.0.0 中引入

示例

cumulus@switch:~$ nv show interface swp51 ip neighbor
        operational                applied  pending
------  -------------------------  -------  -------
[ipv4]  169.254.0.1                                
[ipv6]  fe80::4ab0:2dff:fe08:9898

nv show interface <interface-id> ip neighbor ipv4

显示指定接口的 IPv4 邻居。

命令语法

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

版本历史

在 Cumulus Linux 5.0.0 中引入

示例

cumulus@switch:~$ nv show interface swp51 ip neighbor ipv4
             lladdr             state    
-----------  -----------------  ---------
169.254.0.1  48:b0:2d:08:98:98  permanent

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

显示有关指定接口的特定 IPv4 邻居的信息。

命令语法

语法描述
<interface-id>接口名称。
<neighbor-id>邻居的 IPv4 地址。

版本历史

在 Cumulus Linux 5.0.0 中引入

示例

cumulus@switch:~$ nv show interface swp51 ip neighbor ipv4 169.254.0.1
        operational        applied  pending
------  -----------------  -------  -------
lladdr  48:b0:2d:08:98:98                  
state   permanent

nv show interface <interface-id> ip neighbor ipv6

显示指定接口的 IPv6 邻居。

命令语法

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

版本历史

在 Cumulus Linux 5.0.0 中引入

示例

cumulus@switch:~$ nv show interface swp51 ip neighbor ipv6
                           lladdr             state    
-------------------------  -----------------  ---------
fe80::4ab0:2dff:fe08:9898  48:b0:2d:08:98:98  reachable

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

显示有关指定接口的特定 IPv6 邻居的信息。

命令语法

语法描述
<interface-id>接口名称。
<neighbor-id>邻居的 IPv4 地址。

版本历史

在 Cumulus Linux 5.0.0 中引入

示例

cumulus@switch:~$ nv show interface swp51 ip neighbor ipv6 fe80::4ab0:2dff:fe08:9898
        operational        applied  pending
------  -----------------  -------  -------
lladdr  48:b0:2d:08:98:98                  
state   reachable

nv show interface <interface-id> link

显示指定接口的配置和统计信息。

命令语法

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

版本历史

在 Cumulus Linux 5.0.0 中引入

示例

cumulus@switch:~$  nv show interface swp1 link
                         operational              applied
-----------------------  -----------------------  -------
admin-status             up                              
oper-status              up                              
oper-status-last-change  2024/10/22 18:36:00.469         
protodown                disabled                        
auto-negotiate           off                      on     
duplex                   full                     full   
speed                    1G                       auto   
mac-address              48:b0:2d:f0:b9:86               
fec                                               auto   
mtu                      9000                     9216   
fast-linkup              off                             
[breakout]                                               
state                    up                       up     
flap-protection                                          
  enable                                          on     
stats                                                    
  in-bytes               8.21 MB                         
  in-pkts                67938                           
  in-drops               0                               
  in-errors              0                               
  out-bytes              9.98 MB                         
  out-pkts               103107                          
  out-drops              0                               
  out-errors             0                               
  carrier-transitions    4                               
  carrier-up-count       2                               
  carrier-down-count     2

Cumulus Linux 5.11 及更高版本显示接口操作状态上次更改的时间(日期和时间)以及运营商转换的次数。


显示指定接口的端口 breakout。

命令语法

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

版本历史

在 Cumulus Linux 5.4.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 link breakout

显示有关指定接口的特定端口 breakout 的信息。

命令语法

语法描述
<interface-id>接口名称。
<mode-id>Breakout 模式标识符:1x、2x、4x、8x、disabled 或 loopback。

版本历史

在 Cumulus Linux 5.4.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 link breakout 2x

显示指定接口的链路标志。

命令语法

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

版本历史

在 Cumulus Linux 5.0.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 link flag

显示物理层信息,例如端口上每个通道的错误计数器。

使用 Spectrum 1 ASIC 的交换机不支持 nv show interface <interface> link phy-detail 命令。

命令语法

语法描述
<interface-id>您要配置的接口。

版本历史

在 Cumulus Linux 5.10.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 link phy-detail 
                          operational
-------------------------  -----------------
time-since-last-clear-min  324
phy-received-bits          15561574400000000
symbol-errors              0
effective-errors           0
phy-raw-errors-lane0       747567424
phy-raw-errors-lane1       215603747
phy-raw-errors-lane2       158456437
phy-raw-errors-lane3       30578923
phy-raw-errors-lane4       121708834
phy-raw-errors-lane5       29244642
phy-raw-errors-lane6       79102523
phy-raw-errors-lane7       96656135
raw-ber                    1E-7
symbol-ber                 15E-255
effective-ber              15E-255
raw-ber-lane0              3E-6
raw-ber-lane1              9E-7
raw-ber-lane2              6E-7
raw-ber-lane3              1E-7
raw-ber-lane4              5E-7
raw-ber-lane5              1E-7
raw-ber-lane6              3E-7
raw-ber-lane7              4E-7
rs-num-corr-err-bin0       757956054591
rs-num-corr-err-bin1       598244758
rs-num-corr-err-bin2       807002
rs-num-corr-err-bin3       3371
rs-num-corr-err-bin4       180
rs-num-corr-err-bin5       1
rs-num-corr-err-bin6       0
rs-num-corr-err-bin7       0
rs-num-corr-err-bin8       1
rs-num-corr-err-bin9       0
rs-num-corr-err-bin10      0
rs-num-corr-err-bin11      0
rs-num-corr-err-bin12      0
rs-num-corr-err-bin13      0
rs-num-corr-err-bin14      0
rs-num-corr-err-bin15      0

显示端口的物理层诊断信息。

使用 Spectrum 1 ASIC 的交换机不支持 nv show interface <interface> link phy-diag 命令。

命令语法

语法描述
<interface-id>您要配置的接口。

版本历史

在 Cumulus Linux 5.10.0 中引入

示例

cumulus@switch$ nv show interface swp20 link phy-diag 
                                  operational
--------------------------------  -----------
pd-fsm-state                      0x7
eth-an-fsm-state                  0x6
phy-hst-fsm-state                 0x8
psi-fsm-state                     0x0
phy-manager-link-enabled          0x9bff0
core-to-phy-link-enabled          0x9b800
cable-proto-cap-ext               0x0
loopback-mode                     0x0
retran-mode-request               0x0
retran-mode-active                0x0
fec-mode-request                  0x1
profile-fec-in-use                0x4
pd-link-enabled                   0x80000
phy-hst-link-enabled              0x80000
eth-an-link-enabled               0x0
phy-manager-state                 0x3
eth-proto-admin                   0x0
ext-eth-proto-admin               0x0
eth-proto-capability              0x0
ext-eth-proto-capability          0x0
data-rate-oper                    0x0
an-status                         0x0
an-disable-admin                  0x0
proto-mask                        0x2
module-info-ext                   0x0
ethernet-compliance-code          0x1c
ext-ethernet-compliance-code      0x32
memory-map-rev                    0x40
linear-direct-drive               0x0
cable-breakout                    0x0
cable-rx-amp                      0x1
cable-rx-pre-emphasis             0x0
cable-rx-post-emphasis            0x0
cable-tx-equalization             0x0
cable-attenuation-53g             0x0
cable-attenuation-25g             0x0
cable-attenuation-12g             0x0
cable-attenuation-7g              0x0
cable-attenuation-5g              0x0
tx-input-freq-sync                0x0
tx-cdr-state                      0xff
rx-cdr-state                      0xff
module-fw-version                 0x2e820043
module-st                         0x3
dp-st-lane0                       0x4
dp-st-lane1                       0x4
dp-st-lane2                       0x4
dp-st-lane3                       0x4
dp-st-lane4                       0x4
dp-st-lane5                       0x4
dp-st-lane6                       0x4
dp-st-lane7                       0x4
rx-output-valid                   0x0
rx-power-type                     0x1
active-set-host-compliance-code   0x52
active-set-media-compliance-code  0x1c
error-code-response               0x0
temp-flags                        0x0
vcc-flags                         0x0
mod-fw-fault                      0x0
dp-fw-fault                       0x0
rx-los-cap                        0x0
tx-fault                          0x0
tx-los                            0x0
tx-cdr-lol                        0x0
tx-ad-eq-fault                    0x0
rx-los                            0x0
rx-cdr-lol                        0x0
rx-output-valid-change            0x0
flag-in-use                       0x0

显示接口的链路 protodown 原因详细信息。

命令语法

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

版本历史

在 Cumulus Linux 5.9.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 link protodown-reason

显示指定接口的状态;链路是 up 还是 down。

命令语法

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

版本历史

在 Cumulus Linux 5.0.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 link state
operational  applied  pending
  -----------  -------  -------
  up           up       up

显示指定接口的统计信息,例如数据包大小、丢包和数据包错误。

命令语法

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

版本历史

在 Cumulus Linux 5.0.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 link stats
                     operational  applied  pending
-------------------  -----------  -------  -------
carrier-transitions  6                            
in-bytes             39.22 MB                     
in-drops             0                            
in-errors            0                            
in-pkts              324557                       
out-bytes            48.51 MB                     
out-drops            0                            
out-errors           0                            
out-pkts             501951

显示指定接口的流量工程统计信息。

命令语法

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

版本历史

在 Cumulus Linux 5.0.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 link traffic-engineering

nv show interface <interface-id> pluggable

显示指定接口的 SFP 模块信息。

Cumulus Linux 5.11 及更高版本不再提供此命令。请改用 nv show platform transceiver <interface> 命令。

命令语法

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

版本历史

在 Cumulus Linux 5.3.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 pluggable

nv show interface <interface-id> rates

显示特定接口的流量速率和 PPS

监视接口的流量速率和 PPS 可确保最佳的网络性能和可靠性。您可以使用提供的数据有效地分配和利用网络资源,从而确保服务质量并防止网络瓶颈。这些数据可以帮助您全面了解网络健康状况、检测任何 DDoS 攻击,并查看当前网络是否可以处理高峰负载,或者您是否需要未来的网络容量扩展和升级。

通过同时监视流量速率和 PPS,您可以识别高峰使用时间并调整带宽分配或优化数据包路径,以确保低延迟和高吞吐量。

  • 您只能监视物理端口的流量速率和 PPS。
  • 命令输出提供近似值。

命令语法

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

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 rates
                operational
---------------  -----------
load-interval    10        
in-bits-rate     10.00 Gbps
in-utilization   100.0%    
in-pkts-rate     822.41 kpps
out-bits-rate    10.00 Gbps
out-utilization  100.0%    
out-pkts-rate    822.40 kpps

nv show interface <interface-id> storm-control

显示指定接口的风暴控制配置设置。

命令语法

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

版本历史

在 Cumulus Linux 5.3.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 storm-control
                 applied
---------------  -------
broadcast        400    
multicast        3000   
unknown-unicast  2000

nv show interface <interface-id> tunnel

显示指定接口的隧道信息。

命令语法

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

版本历史

在 Cumulus Linux 5.1.0 中引入

示例

cumulus@switch:~$ nv show interface swp1 tunnel

nv show interface bonds

显示有关交换机上 bond 的信息,例如管理和操作状态、LACP 模式和速率、是否启用 LACP bypass 以及 up delay 和 down delay 设置。

版本历史

在 Cumulus Linux 5.11.0 中引入

示例

cumulus@switch:~$ nv show interface bonds
Interface  Admin Status  Oper Status  Mode  Mlag ID  Lacp-rate  Lacp-bypass  Up-delay  Down-delay
---------  ------------  -----------  ----  -------  ---------  -----------  --------  ----------
bond1      up            down         lacp           fast       off          0         0 

nv show interface bond-members

显示有关交换机上 bond 成员的信息,例如哪些接口是 bond 的一部分、管理和操作状态以及每个 bond 成员的速度和 MTU。

版本历史

在 Cumulus Linux 5.11.0 中引入

示例

cumulus@switch:~$ nv show interface bond-members
Interface  Parent  Admin Status  Oper Status  Speed  MTU 
---------  ------  ------------  -----------  -----  ----
swp1       bond1   up            up           1G     9216
swp2       bond1   up            up           1G     9216
swp3       bond1   up            up           1G     9216
swp4       bond1   up            up           1G     9216

nv show interface carrier-stats

显示有关交换机上接口的信息,例如操作状态、状态更改的次数以及上次状态更改的日期和时间。

版本历史

在 Cumulus Linux 5.11.0 中引入

示例

cumulus@switch:~$ nv show interface carrier-stats
Interface  Oper Status  Up Count  Down Count  Total State Changes  Last State Change      
---------  -----------  --------  ----------  -------------------  -----------------------
bond1      down         0         0           0                    Never                  
eth0       up           1         1           2                    2024/11/04 19:42:24.613
lo         up           1         0           1                    2024/11/04 19:42:24.613                  
mgmt       up           0         0           0                    Never                  
swp1       up           1         1           2                    2024/11/04 22:32:37.918
swp2       up           1         1           2                    2024/11/04 22:32:37.940
swp3       up           1         1           2                    2024/11/04 22:32:37.963
swp4       up           1         1           2                    2024/11/04 22:32:37.980
swp5       down         1         1           2                    2024/11/04 19:41:56.512
swp6       down         1         1           2                    2024/11/04 19:41:56.512
swp7       down         1         1           2                    2024/11/04 19:41:56.512
swp8       down         1         1           2                    2024/11/04 19:41:56.512
...

nv show interface rates

显示所有接口的流量速率和 PPS

监视接口的流量速率和 PPS 可确保最佳的网络性能和可靠性。您可以使用提供的数据有效地分配和利用网络资源,从而确保服务质量并防止网络瓶颈。这些数据可以帮助您全面了解网络健康状况、检测任何 DDoS 攻击,并查看当前网络是否可以处理高峰负载,或者您是否需要未来的网络容量扩展和升级。

通过同时监视流量速率和 PPS,您可以识别高峰使用时间并调整带宽分配或优化数据包路径,以确保低延迟和高吞吐量。

  • 您只能监视物理端口的流量速率和 PPS。
  • 命令输出提供近似值。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv show interface rates
Interface  Intvl  In-Bits Rate  In-Util  In-Pkts Rate  Out-Bits Rate  Out-Util  Out-Pkts Rate
---------  -----  ------------  -------  ------------  -------------  --------  -------------
swp1       60     0 bps         0.0%     0 pps         0 bps          0.0%      0 pps
swp2       60     0 bps         0.0%     0 pps         0 bps          0.0%      0 pps
swp3       60     0 bps         0.0%     0 pps         0 bps          0.0%      0 pps
swp4       60     0 bps         0.0%     0 pps         0 bps          0.0%      0 pps
swp5       60     0 bps         0.0%     0 pps         0 bps          0.0%      0 pps
swp6       60     0 bps         0.0%     0 pps         0 bps          0.0%      0 pps
swp7       60     0 bps         0.0%     0 pps         0 bps          0.0%      0 pps
swp8       60     0 bps         0.0%     0 pps         0 bps          0.0%      0 pps
swp9       60     10.00 Gbps    100.0%   822.41 kpps   10.00 Gbps     100.0%    822.42 kpps
swp10      60     0 bps         0.0%     0 pps         0 bps          0.0%      0 pps
swp11      60     0 bps         0.0%     0 pps         0 bps          0.0%      0 pps
swp12      60     0 bps         0.0%     0 pps         0 bps          0.0%      0 pps
swp13      60     7.34 Gbps     73.4%    603.21 kpps   5.00 Gbps      50.0%     411.19 kpps
swp14      60     0 bps         0.0%     0 pps         0 bps          0.0%      0 pps
swp15      60     0 bps         0.0%     0 pps         0 bps          0.0%      0 pps
swp16      60     0 bps         0.0%     0 pps         0 bps          0.0%      0 pps
swp17      60     8.42 Gbps     84.2%    692.80 kpps   6.73 Gbps      67.3%     553.59 kpps
swp18      60     0 bps         0.0%     0 pps         0 bps          0.0%      0 pps
swp19      60     204 bps       0.0%     0 pps         539 bps        0.0%      1 pps
swp20      60     0 bps         0.0%     0 pps         0 bps          0.0%      0 pps
swp21      60     6.73 Gbps     67.3%    553.59 kpps   8.42 Gbps      84.2%     692.81 kpps
swp22      60     10.00 Gbps    100.0%   14.88 Mpps    10.00 Gbps     100.0%    14.88 Mpps
swp23      60     10.00 Gbps    100.0%   14.88 Mpps    10.00 Gbps     100.0%    14.88 Mpps
swp24      60     0 bps         0.0%     0 pps         0 bps          0.0%      0 pps
swp25      60     5.00 Gbps     50.0%    411.19 kpps   7.34 Gbps      73.4%     603.21 kpps
swp26      60     0 bps         0.0%     0 pps         0 bps          0.0%      0 pps
swp27      60     10.00 Gbps    100.0%   822.42 kpps   10.00 Gbps     100.0%    822.41 kpps
swp28      60     0 bps         0.0%     0 pps         0 bps          0.0%      0 pps
swp29      60     0 bps         0.0%     0 pps         0 bps          0.0%      0 pps
swp30      60     0 bps         0.0%     0 pps         0 bps          0.0%      0 pps
swp31      60     0 bps         0.0%     0 pps         0 bps          0.0%      0 pps
swp32      60     0 bps         0.0%     0 pps         0 bps          0.0%      0 pps

nv show interface down

显示有关处于 down 状态的接口的信息。

版本历史

在 Cumulus Linux 5.11.0 中引入

示例

cumulus@switch:~$ nv show interface down
Interface  Admin Status  Oper Status  Speed  MTU    Type      Summary                
---------  ------------  -----------  -----  -----  --------  -----------------------
bond1      up            down                9216   bond                             
lo         up            unknown             65536  loopback  IP Address: 127.0.0.1/8
                                                              IP Address:     ::1/128
swp5       down          down                1500   swp                              
swp6       down          down                1500   swp                              
swp7       down          down                1500   swp                              
swp8       down          down                1500   swp                              
swp9       down          down                1500   swp                              
swp10      down          down                1500   swp                              
swp11      down          down                1500   swp                              
swp12      down          down                1500   swp
...

nv show interface svi

显示交换机上的 SVI 信息。

版本历史

在 Cumulus Linux 5.11.0 中引入

示例

cumulus@switch:~$ nv show interface svi

nv show interface vrf

显示交换机上的 VRF 信息。

版本历史

在 Cumulus Linux 5.11.0 中引入

示例

cumulus@switch:~$ nv show interface vrf
Interface  Summary                
---------  -----------------------
mgmt       IP Address: 127.0.0.1/8
           IP Address: 127.0.1.1/8
           IP Address:     ::1/128

nv show interface –view=counters

显示交换机上配置的所有接口的所有统计信息。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv show interface --view=counters
Interface   MTU    RX_OK   RX_ERR  RX_DRP  RX_OVR  TX_OK   TX_ERR  TX_DRP  TX_OVR  Flg  
----------  -----  ------  ------  ------  ------  ------  ------  ------  ------  -----
BLUE        65575  0       0       0       0       0       0       1197    0       OmRU 
RED         65575  0       0       0       0       0       0       1197    0       OmRU 
bond1       9000   324612  0       0       0       502040  0       0       0       BMmRU
bond2       9000   330788  0       0       0       499929  0       0       0       BMmRU
bond3       9000   324604  0       0       0       499590  0       0       0       BMmRU
br_default  9216   44391   0       0       0       40362   0       0       0       BMRU 
br_l3vni    9216   0       0       0       0       7253    0       0       0       BMRU 
eth0        1500   214911  0       0       0       29286   0       0       0       BMRU 
lo          65536  227368  0       0       0       227368  0       0       0       LRU  
mgmt        65575  31690   0       0       0       0       0       1197    0       OmRU 
swp1        9000   324616  0       0       0       502040  0       0       0       BMsRU
swp2        9000   330792  0       0       0       499929  0       0       0       BMsRU
swp3        9000   324608  0       0       0       499590  0       0       0       BMsRU
swp6        9216   0       0       0       0       97832   0       0       0       BMRU 
swp7        9216   0       0       0       0       97832   0       0       0       BMRU 
swp51       9216   273647  0       10793   0       274422  0       0       0       BMRU 
swp52       9216   249220  0       10793   0       262843  0       0       0       BMRU 
vlan10      9216   13482   0       80      0       14416   0       0       0       BMRU 
vlan10-v0   9216   300     0       80      0       7090    0       0       0       BMRU 
vlan20      9216   20409   0       50      0       11355   0       0       0       BMRU 
vlan20-v0   9216   275     0       50      0       5894    0       0       0       BMRU 
vlan30      9216   11700   0       50      0       12033   0       0       0       BMRU 
vlan30-v0   9216   226     0       50      0       5894    0       0       0       BMRU 
vlan220_l3  9216   0       0       0       0       2420    0       0       0       BMRU 
vlan297_l3  9216   0       0       0       0       2420    0       0       0       BMRU 
vxlan48     9216   27342   0       0       0       25891   40829   51      0       BMRU 
vxlan99     9216   0       0       0       0       0       0       4800    0       BMRU

nv show system link

显示全局链路配置。

版本历史

在 Cumulus Linux 5.7.0 中引入

示例

cumulus@switch:~$ nv show system link
                 applied
---------------  -------
flap-protection         
  threshold      5      
  interval       10

显示链路 flap 保护阈值和间隔配置设置。

版本历史

在 Cumulus Linux 5.7.0 中引入

示例

cumulus@switch:~$ nv show system link flap-protection
           applied
---------  -------
threshold  8      
interval   30

nv show vrf <vrf-id> loopback

显示与此 VRF 关联的环回接口。

命令语法

语法描述
<vrf-id>VRF 名称。

版本历史

在 Cumulus Linux 5.0.0 中引入

示例

cumulus@switch:~$ nv show vrf default loopback
             operational    applied      pending    
-----------  -------------  -----------  -----------
ip                                                  
  [address]  10.10.10.1/32                          
  [address]  127.0.0.1/8    127.0.0.1/8  127.0.0.1/8
  [address]  ::1/128        ::1/128      ::1/128

nv show vrf <vrf-id> loopback ip

显示与指定 VRF 的环回接口关联的 IP 地址。

命令语法

语法描述
<vrf-id>VRF 名称。

版本历史

在 Cumulus Linux 5.0.0 中引入

示例

cumulus@switch:~$ nv show vrf default loopback ip
           operational    applied      pending    
---------  -------------  -----------  -----------
[address]  10.10.10.1/32                          
[address]  127.0.0.1/8    127.0.0.1/8  127.0.0.1/8
[address]  ::1/128        ::1/128      ::1/128

nv show vrf <vrf-id> loopback ip address <ip-prefix-id>

显示有关指定 VRF 的指定环回 IP 地址的详细信息。

命令语法

语法描述
<vrf-id>VRF 名称。
<ip-prefix-id>IPv4 或 IPv6 地址以及 CIDR 表示法中的路由前缀。

版本历史

在 Cumulus Linux 5.0.0 中引入

示例

cumulus@switch:~$ nv show vrf default loopback ip address 10.10.10.1/32