操作命令


nv action

重置接口、BGP、QoS 缓冲区和池的计数器,移除 protodown MLAG 链路中的冲突,并断开系统用户的连接。


nv show action

显示操作作业。

版本历史

在 Cumulus Linux 5.4.0 中引入

示例

cumulus@switch:~$ nv show action
'1':
  detail: acl counters cleared.
  http_status: 200
  issue: []
  percentage: ''
  state: action_success
  status: acl counters cleared.
  timeout: 60
  type: ''
'2':
  detail: Local Time is now Wed 2024-05-29 09:47:30 UTC
  http_status: 200
  issue: []
  percentage: ''
  state: action_success
  status: Local Time is now Wed 2024-05-29 09:47:30 UTC
  timeout: 60
  type: ''

nv show action <action-job-id>

显示关于指定操作的信息。

命令语法

语法描述
<action-job-id>操作 ID。

版本历史

在 Cumulus Linux 5.4.0 中引入

示例

cumulus@switch:~$ nv show action 3
detail: acl counters cleared.
http_status: 200
issue: []
state: action_success
status: acl counters cleared.
timeout: 60
type: ''

nv action abort system ztp

如果 ZTP 处于发现过程中或当前未运行脚本,则终止 ZTP。

版本历史

在 Cumulus Linux 5.11.0 中引入

示例

cumulus@switch:~$ nv action abort system ztp

如果添加 force 选项 (nv action abort system ztp force),ZTP 将终止,而不会提示您进行确认。


nv action cancel system telemetry hft job <job-id> profile <profile-id>

取消特定或所有高频遥测数据收集作业,或特定或所有高频遥测配置文件的作业。您可以指定作业 ID 或 all 来取消所有作业。

命令语法

语法描述
<job-id>高频遥测数据收集作业 ID 或 all。要查看作业 ID 列表,请运行 nv show system telemetry hft job 命令。
<profile-id>配置文件的名称。高频遥测使用配置文件进行数据收集。配置文件是一组配置。Cumulus Linux 提供一个名为 standard 的默认配置文件。您可以创建最多四个新配置文件(除了默认配置文件之外的四个配置文件)。

版本历史

在 Cumulus Linux 5.10.0 中引入

示例

cumulus@switch:~$ nv action cancel system telemetry hft job 6 profile profile1
Action executing ...
Action succeeded

nv action change system date-time

配置 Cumulus Linux 软件时钟。交换机包含一个电池支持的硬件时钟,该时钟在交换机断电和重启之间保持时间。当交换机运行时,Cumulus Linux 操作系统维护自己的软件时钟。

在启动过程中,交换机将时间从硬件时钟复制到操作系统软件时钟。软件时钟负责所有计时。在系统关机期间,交换机将软件时钟复制回电池支持的硬件时钟。

日期格式为 YYYY-MM-DD。时间格式为 HH:MM:SS。

在 Cumulus Linux 5.7、5.8 和 5.9 中,此命令是 nv action change system time

版本历史

在 Cumulus Linux 5.10.0 中引入

示例

cumulus@switch:~$ nv action change system date-time 2023-12-04 2:33:30
System Date-time changed successfully
Local Time is now Mon 2023-12-04 02:33:30 UTC
Action succeeded

nv action clear acl counters

清除所有 ACL 计数器。

版本历史

在 Cumulus Linux 5.6.0 中引入

示例

cumulus@switch:~$ nv action clear acl counters
acl counters cleared.
Action succeeded

nv action clear bridge domain <bridge-id> mac-table dynamic

从转发数据库中清除所有动态 MAC 地址。

此命令清除在 ES 链路聚合上学习到的静态条目,这些条目作为静态条目安装在 EVPN 多宿主中,包括桥接驱动程序中的静态 VXLAN 条目。

命令语法

语法描述
<bridge-id>桥接名称。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action clear bridge domain br_default mac-table dynamic

nv action clear bridge domain <bridge-id> mac-table dynamic interface <interface-id>

从转发数据库中清除特定接口的所有动态 MAC 地址。

此命令不清除粘性条目、永久条目和 EVPN MAC 条目。

命令语法

语法描述
<bridge-id>桥接名称。
<interface-id>IP 地址或接口名称。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action clear bridge domain br_default mac-table dynamic interface swp1

nv action clear bridge domain <bridge-id> mac-table dynamic interface <interface-id> vlan <vlan-id>

从转发数据库中清除特定接口和 VLAN 的所有动态 MAC 地址。

此命令不清除粘性条目、永久条目和 EVPN MAC 条目。

命令语法

语法描述
<bridge-id>桥接名称。
<interface-id>IP 地址或接口名称。
<vlan-id>VLAN ID。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action clear bridge domain br_default mac-table dynamic interface swp1 vlan 10

nv action clear bridge domain <bridge-id> mac-table dynamic mac <mac-address> interface <interface-id>

从转发数据库中清除接口的特定动态 MAC 地址。

此命令不清除粘性条目、永久条目和 EVPN MAC 条目。

命令语法

语法描述
<bridge-id>桥接名称。
<mac-address>MAC 地址。
<interface-id>IP 地址或接口名称。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action clear bridge domain br_default mac-table dynamic mac 00:00:0A:BB:28:FC interface swp1

nv action clear bridge domain <bridge-id> mac-table dynamic mac <mac-address> vlan <vlan-id>

从转发数据库中清除 VLAN 的特定动态 MAC 地址。

此命令不清除粘性条目、永久条目和 EVPN MAC 条目。

命令语法

语法描述
<bridge-id>桥接名称。
<mac-address>MAC 地址。
<vlan-id>VLAN ID。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action clear bridge domain br_default mac-table dynamic mac 00:00:0A:BB:28:FC vlan 10

nv action clear bridge domain <bridge-id> mac-table dynamic mac <mac-address> vlan <vlan-id> interface <interface-id>

从转发数据库中清除 VLAN 和接口的特定动态 MAC 地址。

此命令不清除粘性条目、永久条目和 EVPN MAC 条目。

命令语法

语法描述
<bridge-id>桥接名称。
<mac-address>MAC 地址。
<VLAN-id>VLAN ID。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action clear bridge domain br_default mac-table dynamic mac 00:00:0A:BB:28:FC vlan 10 interface swp1

nv action clear bridge domain <bridge-id> mac-table dynamic vlan <vlan-id>

从转发数据库中清除特定 VLAN 的所有动态 MAC 地址。

此命令不清除粘性条目、永久条目和 EVPN MAC 条目。

命令语法

语法描述
<bridge-id>桥接名称。
<VLAN-id>VLAN ID。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action clear bridge domain br_default mac-table dynamic vlan 10

nv action clear evpn vni

清除所有 VNI 的重复地址。

版本历史

在 Cumulus Linux 5.6.0 中引入

示例

cumulus@switch:~$ nv action clear evpn vni
Action succeeded

nv action clear evpn vni <vni-id>

清除指定 VNI 的重复地址。

命令语法

语法描述
<vni-id>VNI ID。

版本历史

在 Cumulus Linux 5.6.0 中引入

示例

cumulus@switch:~$ nv action clear evpn vni 10
Action succeeded

nv action clear evpn vni <vni-id> host <host-id>

清除指定 VNI 的重复主机地址。

命令语法

语法描述
<vni-id>VNI ID。
<host-id>主机的 IP 地址。

版本历史

在 Cumulus Linux 5.6.0 中引入

示例

cumulus@switch:~$ nv action clear evpn vni 10 host 10.0.0.9
Action succeeded

nv action clear evpn vni <vni> mac <mac-address>

清除指定 VNI 的重复 MAC 地址。

命令语法

语法描述
<vni-id>VNI ID。
<mac-address>您要清除的 MAC 地址。

版本历史

在 Cumulus Linux 5.6.0 中引入

示例

cumulus@switch:~$ nv action clear evpn vni 10 mac 00:e0:ec:20:12:62
Action succeeded

nv action clear interface counters

清除所有接口的所有接口特定计数器。接口计数器提供关于接口的信息,例如有意或无意丢弃的数据包数量、丢弃的入站和出站数据包数量(即使交换机未检测到错误)、由于错误而未传输的入站和出站数据包数量等等。

此命令不清除内核或硬件中的计数器。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear interface counters
all interface counters cleared.
Action succeeded

nv action clear interface <interface> bond mlag lacp-conflict

清除指定接口链路聚合上的 MLAG LACP 冲突。冲突可能是 LACP 伙伴 MAC 地址不匹配或重复的 LACP 伙伴 MAC 地址。

命令语法

语法描述
<interface-id>具有 LACP 冲突的接口。

版本历史

在 Cumulus Linux 5.0.0 中引入

示例

cumulus@switch:~$ nv action clear interface swp1 bond mlag lacp-conflict

nv action clear interface <interface-id> bridge domain <domain-id> stp bpduguardviolation

清除指定接口的 BPDU 保护违规,并从 protodown 状态恢复接口。

命令语法

语法描述
<interface-id>您要在其上清除 BPDU 保护违规的接口。

版本历史

在 Cumulus Linux 5.7.0 中引入

示例

cumulus@switch:~$ nv action clear interface swp1 bridge domain br_default stp bpduguardviolation

nv action clear interface <interface> counters

清除指定接口的所有接口特定计数器。接口计数器提供关于接口的信息,例如有意或无意丢弃的数据包数量、即使交换机未检测到错误也丢弃的入站和出站数据包数量、由于错误而未传输的入站和出站数据包数量等等。

此命令不清除内核或硬件中的计数器。

命令语法

语法描述
<interface-id>您要在其上清除计数器的接口。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear interface swp1 counters
swp1 counters cleared.
Action succeeded

nv action clear interface <interface-id> counters ptp

清除指定接口上的 PTP 计数器。

命令语法

语法描述
<interface-id>您要在其上清除 PTP 计数器的接口。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear interface swp1 counters ptp
Action succeeded

nv action clear interface <interface-id> counters synce

清除指定接口上的 SyncE 计数器。

在 Cumulus Linux 5.6 及更早版本中,此命令是 nv action clear interface <interface-id> synce counters

命令语法

语法描述
<interface-id>您要在其上清除 SyncE 计数器的接口。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear interface swp1 counters synce

清除接口的 protodown 状态,并将接口恢复为启动状态。

在 Cumulus Linux 5.8 及更早版本中,此命令是 nv action clear interface <interface-id> link protodown link-flap

命令语法

语法描述
<interface-id>您要在其上清除 protodown 状态的接口。

版本历史

在 Cumulus Linux 5.9.0 中引入

示例

cumulus@switch:~$ nv action clear interface swp1 link flap-protection violation
link-flap state cleared on swp1.
Action succeeded

nv action clear interface <interface-id> qos buffer

清除指定接口上的 QoS 缓冲区计数器。

命令语法

语法描述
<interface-id>您要在其上清除 QoS 缓冲区的接口。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear interface swp1 qos buffer
Action succeeded

nv action clear interface <interface-id> qos pfc-watchdog deadlock-count

清除指定接口上的 QoS PFC 监视器死锁计数。PFC 监视器检测并缓解启用 PFC 或链路暂停的端口上的暂停风暴。

命令语法

语法描述
<interface-id>您要在其上清除 PFC 监视器死锁计数的接口。

版本历史

在 Cumulus Linux 5.6.0 中引入

示例

cumulus@switch:~$ nv action clear interface swp1 qos pfc-watchdog deadlock-count
Action succeeded

nv action clear interface <interface-id> qos roce counters

清除指定接口上的 QoS RoCE 计数器。

命令语法

语法描述
<interface-id>您要在其上清除 RoCE 计数器的接口。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear interface swp1 qos roce counters

nv action clear mlag lacp-conflict

清除 MLAG LACP 冲突。冲突可能是 LACP 伙伴 MAC 地址不匹配或重复的 LACP 伙伴 MAC 地址。

版本历史

在 Cumulus Linux 5.0.0 中引入

示例

cumulus@switch:~$ nv action clear mlag lacp-conflict 

nv action clear qos buffer multicast-switch-priority

清除 QoS 组播交换机优先级缓冲区。

版本历史

在 Cumulus Linux 5.4.0 中引入

示例

cumulus@switch:~$ nv action clear qos buffer multicast-switch-priority 

nv action clear qos buffer pool

清除 QoS 池缓冲区。

版本历史

在 Cumulus Linux 5.4.0 中引入

示例

cumulus@switch:~$ nv action clear qos buffer pool 

nv action clear router bgp

清除与所有邻居的 BGP 会话。

版本历史

在 Cumulus Linux 5.6.0 中引入

示例

cumulus@switch:~$ nv action clear router bgp
Action succeeded

nv action clear router bgp in prefix-filter

清除并刷新所有邻居、地址族和 VRF 的入站路由,并刷新出站路由过滤前缀列表。

版本历史

在 Cumulus Linux 5.6.0 中引入

示例

cumulus@switch:~$ nv action clear router bgp in prefix-filter
Action succeeded

nv action clear router bgp soft

清除与所有邻居、地址族和 VRF 的所有路由。

版本历史

在 Cumulus Linux 5.6.0 中引入

示例

cumulus@switch:~$ nv action clear router bgp soft
Action succeeded

nv action clear router bgp soft in

清除并刷新与所有邻居、地址族和 VRF 的所有入站路由。

版本历史

在 Cumulus Linux 5.6.0 中引入

示例

cumulus@switch:~$ nv action clear router bgp soft in
Action succeeded

nv action clear router bgp soft out

清除并重新发送与所有邻居、地址族和 VRF 的所有出站路由。

版本历史

在 Cumulus Linux 5.6.0 中引入

示例

cumulus@switch:~$ nv action clear router bgp soft out
Action succeeded

nv action clear router bgp out

清除并刷新所有邻居、地址族和 VRF 的出站路由。

版本历史

在 Cumulus Linux 5.6.0 中引入

示例

cumulus@switch:~$ nv action clear router bgp out
Action succeeded

nv action clear router igmp interfaces

清除 IGMP 接口状态。

版本历史

在 Cumulus Linux 5.6.0 中引入

示例

cumulus@switch:~$ nv action clear router igmp interfaces
Action succeeded

nv action clear router policy prefix-list

清除所有 IP 前缀列表统计信息。

版本历史

在 Cumulus Linux 5.6.0 中引入

示例

cumulus@switch:~$ nv action clear router policy prefix-list
Action succeeded

nv action clear router policy prefix-list <prefix-list-id>

清除指定前缀列表的统计信息。

命令语法

语法描述
<prefix-list-id>您要清除其统计信息的前缀列表的名称。

版本历史

在 Cumulus Linux 5.6.0 中引入

示例

cumulus@switch:~$ nv action clear router policy prefix-list prefixlist1
Action succeeded

nv action clear router policy prefix-list <prefix-list-id> rule <rule-id> match <match-id>

清除特定前缀列表规则编号和匹配 ID 的统计信息。

命令语法

语法描述
<prefix-list-id>您要清除其统计信息的前缀列表的名称。
<rule-id>前缀列表规则编号。
<match-id>前缀列表匹配条件。

版本历史

在 Cumulus Linux 5.6.0 中引入

示例

cumulus@switch:~$ nv action clear router policy prefix-list prefixlist1 rule 10 match 10.0.0.0/16
Action succeeded

nv action clear router policy route-map

清除所有路由映射计数器。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear router policy route-map
Action succeeded

nv action clear router policy route-map <route-map-id>

清除指定路由映射的计数器。

命令语法

语法描述
<route-map-id>您要清除的路由映射。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear router policy route-map ROUTEMAP1
Action succeeded

nv action clear service ptp <instance-id> monitor violations log max-offset

清除 PTP 监视器违规日志最大偏移值。

命令语法

语法描述
<instance-id>用于管理目的的 PTP 实例编号。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear service ptp 1 monitor violations log max-offset
Action succeeded

nv action clear service ptp <instance-id> monitor violations log min-offset

清除 PTP 监视器违规日志最小偏移值。

命令语法

语法描述
<instance-id>用于管理目的的 PTP 实例编号。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear service ptp 1 monitor violations log min-offset
Action succeeded

nv action clear service ptp <instance-id> monitor violations log path-delay

清除 PTP 监视器违规日志路径延迟值。

命令语法

语法描述
<instance-id>用于管理目的的 PTP 实例编号。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear service ptp 1 monitor violations log path-delay
Action succeeded

nv action clear system api session user <user-id>

清除 NVUE 用户会话。

NVUE 使用会话来验证和授权请求。在通过第一个请求验证用户身份后,NVUE 将会话存储在 nvued 缓存中。NVUE 在会话中本地验证后续交互,无需重复与外部身份验证服务器检查。此过程提高了系统性能和效率,使其成为高流量环境的理想选择。

  • 如果您在交换机本地对用户组、密码、RADIUS、TACACS 或 LDAP 服务器设置进行更改,NVUE 会自动清除当前会话。

  • 如果您直接在 RADIUS、TACACS 或 LDAP 服务器上进行更改,则必须使用 nv action clear system api session user <user> 命令清除用户会话,或使用 nv action clear system api session 命令清除所有会话。

    如果您在直接在 RADIUS、TACACS 或 LDAP 服务器上进行更改后不清除用户会话,则 NVUE 将使用现有会话进行身份验证和授权,直到会话超时(最长 60 分钟)。

命令语法

语法描述
<user-id>用户帐户。

版本历史

在 Cumulus Linux 5.10.0 中引入

示例

cumulus@switch:~$ nv action clear system api session user admin

清除交换机上的 protodown 链路。

在 Cumulus Linux 5.8 及更早版本中,此命令是 nv action clear system link protodown link-flap

版本历史

在 Cumulus Linux 5.9.0 中引入

示例

cumulus@switch:~$ nv action clear system link flap-protection violation
Action succeeded

nv action clear vrf <vrf-id> router bgp address-family ipv4-unicast in

清除 BGP IPv4 入站路由。

此命令不清除内核或硬件中的计数器,也不重置 BGP 邻居邻接关系。

  • 当交换机配置了启用 soft-reconfiguration inbound 的邻居时,此命令清除地址族的软重配置表中的路由。这会导致根据任何应用的输入策略重新评估 BGP 表中的路由。
  • 当交换机配置启用 soft-reconfiguration inbound 选项的邻居时,此命令向对等方发送路由刷新消息。

命令语法

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

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp address-family ipv4-unicast in
Action succeeded

nv action clear vrf <vrf-id> router bgp address-family ipv4-unicast soft in

清除所有 BGP 对等方的 BGP IPv4 入站路由。

此命令不清除内核或硬件中的计数器,也不重置 BGP 邻居邻接关系。

  • 当交换机配置了启用 soft-reconfiguration inbound 的邻居时,此命令清除地址族的软重配置表中的路由。这会导致根据任何应用的输入策略重新评估 BGP 表中的路由。
  • 当交换机配置启用 soft-reconfiguration inbound 选项的邻居时,此命令向对等方发送路由刷新消息。
  • 如果您未指定方向 in,则该命令会影响入站和出站路由,具体取决于是否启用了软重配置入站。

命令语法

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

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp address-family soft in
Action succeeded

nv action clear vrf <vrf-id> router bgp address-family ipv4-unicast soft out

清除所有 BGP 对等方的 BGP IPv4 出站路由。

此命令不

  • 清除内核或硬件中的计数器。
  • 重置 BGP 邻居邻接关系。
  • 重新通告到 BGP 对等方的所有路由。

如果您未指定方向 out,则该命令会影响入站和出站路由,具体取决于是否启用了软重配置入站。

命令语法

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

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp address-family soft out
Action succeeded

nv action clear vrf <vrf-id> router bgp address-family ipv4-unicast out

清除 BGP IPv4 出站路由。

此命令不

  • 清除内核或硬件中的计数器。
  • 重置 BGP 邻居邻接关系。
  • 重新通告到 BGP 对等方的所有路由。

命令语法

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

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp address-family ipv4-unicast in
Action succeeded

nv action clear vrf <vrf-id> router bgp address-family ipv6-unicast in

清除 BGP IPv6 入站路由。

此命令不清除内核或硬件中的计数器,也不重置 BGP 邻居邻接关系。

  • 当交换机配置了启用 soft-reconfiguration inbound 的邻居时,此命令清除地址族的软重配置表中的路由。这会导致根据任何应用的输入策略重新评估 BGP 表中的路由。
  • 当交换机配置启用 soft-reconfiguration inbound 选项的邻居时,此命令向对等方发送路由刷新消息。

命令语法

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

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp address-family ipv6-unicast in
Action succeeded

nv action clear vrf <vrf-id> router bgp address-family ipv6-unicast soft in

清除所有 BGP 对等方的 BGP IPv6 入站路由。

此命令不清除内核或硬件中的计数器,也不重置 BGP 邻居邻接关系。

  • 当交换机配置了启用 soft-reconfiguration inbound 的邻居时,此命令清除地址族的软重配置表中的路由。这会导致根据任何应用的输入策略重新评估 BGP 表中的路由。
  • 当交换机配置启用 soft-reconfiguration inbound 选项的邻居时,此命令向对等方发送路由刷新消息。
  • 如果您未指定方向 in,则该命令会影响入站和出站路由,具体取决于是否启用了软重配置入站。

命令语法

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

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp address-family ipv6-unicast soft in
Action succeeded

nv action clear vrf <vrf-id> router bgp address-family ipv6-unicast soft out

清除所有 BGP 对等方的 BGP IPv6 出站路由。

此命令不

  • 清除内核或硬件中的计数器。
  • 重置 BGP 邻居邻接关系。
  • 重新通告到 BGP 对等方的所有路由。

如果您未指定方向 out,则该命令会影响入站和出站路由,具体取决于是否启用了软重配置入站。

命令语法

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

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp address-family ipv6-unicast soft out
Action succeeded

nv action clear vrf <vrf-id> router bgp address-family ipv6-unicast out

清除 BGP IPv6 出站路由。

此命令不

  • 清除内核或硬件中的计数器。
  • 重置 BGP 邻居邻接关系。
  • 重新通告到 BGP 对等方的所有路由。

命令语法

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

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp address-family ipv6-unicast out
Action succeeded

nv action clear vrf <vrf-id> router bgp address-family l2vpn-evpn in

清除 BGP EVPN 入站路由。

此命令不清除内核或硬件中的计数器,也不重置 BGP 邻居邻接关系。

  • 当交换机配置了启用 soft-reconfiguration inbound 的邻居时,此命令清除地址族的软重配置表中的路由。这会导致根据任何应用的输入策略重新评估 BGP 表中的路由。
  • 当交换机配置启用 soft-reconfiguration inbound 选项的邻居时,此命令向对等方发送路由刷新消息。

命令语法

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

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp address-family l2vpn-evpn in
Action succeeded

nv action clear vrf <vrf-id> router bgp address-family l2vpn-evpn soft in

清除所有 BGP 对等方的 BGP EVPN 入站路由。

此命令不清除内核或硬件中的计数器,也不重置 BGP 邻居邻接关系。

  • 当交换机配置了启用 soft-reconfiguration inbound 的邻居时,此命令清除地址族的软重配置表中的路由。这会导致根据任何应用的输入策略重新评估 BGP 表中的路由。
  • 当交换机配置启用 soft-reconfiguration inbound 选项的邻居时,此命令向对等方发送路由刷新消息。
  • 如果您未指定方向 in,则该命令会影响入站和出站路由,具体取决于是否启用了软重配置入站。

命令语法

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

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp address-family l2vpn-evpn soft in
Action succeeded

nv action clear vrf <vrf-id> router bgp address-family l2vpn-evpn soft out

清除所有 BGP 对等方的 BGP EVPN 出站路由。

此命令不

  • 清除内核或硬件中的计数器。
  • 重置 BGP 邻居邻接关系。
  • 重新通告到 BGP 对等方的所有路由。

如果您未指定方向 out,则该命令会影响入站和出站路由,具体取决于是否启用了软重配置入站。

命令语法

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

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp address-family l2vpn-evpn soft out
Action succeeded

nv action clear vrf <vrf-id> router bgp address-family l2vpn-evpn out

清除 BGP EVPN 出站路由。

此命令不

  • 清除内核或硬件中的计数器。
  • 重置 BGP 邻居邻接关系。
  • 重新通告到 BGP 对等方的所有路由。

命令语法

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

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp address-family l2vpn-evpn out
Action succeeded

nv action clear vrf <vrf-id> router bgp in prefix-filter

清除并刷新指定 VRF 中所有邻居和地址族的入站路由,并刷新出站路由过滤前缀列表。

命令语法

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

版本历史

在 Cumulus Linux 5.6.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp in prefix-filter
Action succeeded

nv action clear vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast in

清除指定 VRF 中特定 BGP 对等方的 IPv4 入站路由。

此命令不清除内核或硬件中的计数器,也不重置 BGP 邻居邻接关系。

  • 当交换机配置了启用 soft-reconfiguration inbound 的邻居时,此命令清除地址族的软重配置表中的路由。这会导致根据任何应用的输入策略重新评估 BGP 表中的路由。
  • 当交换机配置启用 soft-reconfiguration inbound 选项的邻居时,此命令向对等方发送路由刷新消息。

命令语法

语法描述
<vrf-id>VRF 名称。
<neighbor-id>BGP 对等方的 IP 地址或接口(如果您使用的是无编号 BGP)。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp neighbor swp51 address-family ipv4-unicast in
Action succeeded

nv action clear vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast soft in

清除指定 VRF 中特定 BGP 对等方的 IPv4 入站路由,而无需重置对等会话。

此命令不清除内核或硬件中的计数器,也不重置 BGP 邻居邻接关系。

  • 当交换机配置了启用 soft-reconfiguration inbound 的邻居时,此命令清除地址族的软重配置表中的路由。这会导致根据任何应用的输入策略重新评估 BGP 表中的路由。
  • 当交换机配置启用 soft-reconfiguration inbound 选项的邻居时,此命令向对等方发送路由刷新消息。
  • 如果您未指定方向 in,则该命令会影响入站和出站路由,具体取决于是否启用了软重配置入站。

命令语法

语法描述
<vrf-id>VRF 名称。
<neighbor-id>BGP 对等方的 IP 地址或接口(如果您使用的是无编号 BGP)。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp neighbor swp51 address-family ipv4-unicast soft in
Action succeeded

nv action clear vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast soft out

清除指定 VRF 中特定 BGP 对等方的 IPv4 出站路由,而无需重置对等会话。

此命令不

  • 清除内核或硬件中的计数器。
  • 重置 BGP 邻居邻接关系。
  • 重新通告到 BGP 对等方的所有路由。

如果您未指定方向 out,则该命令会影响入站和出站路由,具体取决于是否启用了软重配置入站。

命令语法

语法描述
<vrf-id>VRF 名称。
<neighbor-id>BGP 对等方的 IP 地址或接口(如果您使用的是无编号 BGP)。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp neighbor swp51 address-family ipv4-unicast soft out
Action succeeded

nv action clear vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast out

清除指定 VRF 中特定 BGP 对等方的 IPv4 出站路由。

此命令不

  • 清除内核或硬件中的计数器。
  • 重置 BGP 邻居邻接关系。
  • 重新通告到 BGP 对等方的所有路由。

命令语法

语法描述
<vrf-id>VRF 名称。
<neighbor-id>BGP 对等方的 IP 地址或接口(如果您使用的是无编号 BGP)。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp neighbor swp51 address-family ipv4-unicast out
Action succeeded

nv action clear vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv6-unicast in

清除指定 VRF 中特定 BGP 对等方的 IPv6 入站路由。

此命令不清除内核或硬件中的计数器,也不重置 BGP 邻居邻接关系。

  • 当交换机配置了启用 soft-reconfiguration inbound 的邻居时,此命令清除地址族的软重配置表中的路由。这会导致根据任何应用的输入策略重新评估 BGP 表中的路由。
  • 当交换机配置启用 soft-reconfiguration inbound 选项的邻居时,此命令向对等方发送路由刷新消息。

命令语法

语法描述
<vrf-id>VRF 名称。
<neighbor-id>BGP 对等方的 IP 地址或接口(如果您使用的是无编号 BGP)。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp neighbor swp51 address-family ipv6-unicast in
Action succeeded

nv action clear vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv6-unicast soft in

清除指定 VRF 中特定 BGP 对等方的 IPv6 入站路由,而无需重置对等会话。

此命令不清除内核或硬件中的计数器,也不重置 BGP 邻居邻接关系。

  • 当交换机配置了启用 soft-reconfiguration inbound 的邻居时,此命令清除地址族的软重配置表中的路由。这会导致根据任何应用的输入策略重新评估 BGP 表中的路由。
  • 当交换机配置启用 soft-reconfiguration inbound 选项的邻居时,此命令向对等方发送路由刷新消息。
  • 如果您未指定方向 in,则该命令会影响入站和出站路由,具体取决于是否启用了软重配置入站。

命令语法

语法描述
<vrf-id>VRF 名称。
<neighbor-id>BGP 对等方的 IP 地址或接口(如果您使用的是无编号 BGP)。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp neighbor swp51 address-family ipv6-unicast soft in
Action succeeded

nv action clear vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv6-unicast soft out

清除指定 VRF 中特定 BGP 对等方的 IPv6 出站路由,而无需重置对等会话。

此命令不

  • 清除内核或硬件中的计数器。
  • 重置 BGP 邻居邻接关系。
  • 重新通告到 BGP 对等方的所有路由。

如果您未指定方向 out,则该命令会影响入站和出站路由,具体取决于是否启用了软重配置入站。

命令语法

语法描述
<vrf-id>VRF 名称。
<neighbor-id>BGP 对等方的 IP 地址或接口(如果您使用的是无编号 BGP)。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp neighbor swp51 address-family ipv6-unicast soft out
Action succeeded

nv action clear vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv6-unicast out

清除指定 VRF 中特定 BGP 对等方的 IPv6 出站路由。

此命令不

  • 清除内核或硬件中的计数器。
  • 重置 BGP 邻居邻接关系。
  • 重新通告到 BGP 对等方的所有路由。

命令语法

语法描述
<vrf-id>VRF 名称。
<neighbor-id>BGP 对等方的 IP 地址或接口(如果您使用的是无编号 BGP)。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp neighbor swp51 address-family ipv6-unicast out
Action succeeded

nv action clear vrf <vrf-id> router bgp neighbor <neighbor-id> address-family l2vpn-evpn in

清除指定 VRF 中特定 BGP 对等方的 EVPN 入站路由。

此命令不清除内核或硬件中的计数器,也不重置 BGP 邻居邻接关系。

  • 当交换机配置了启用 soft-reconfiguration inbound 的邻居时,此命令清除地址族的软重配置表中的路由。这会导致根据任何应用的输入策略重新评估 BGP 表中的路由。
  • 当交换机配置启用 soft-reconfiguration inbound 选项的邻居时,此命令向对等方发送路由刷新消息。

命令语法

语法描述
<vrf-id>VRF 名称。
<neighbor-id>BGP 对等方的 IP 地址或接口(如果您使用的是无编号 BGP)。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp neighbor swp51 address-family l2vpn-evpn in
Action succeeded

nv action clear vrf <vrf-id> router bgp neighbor <neighbor-id> address-family l2vpn-evpn soft in

清除指定 VRF 中特定 BGP 对等方的 EVPN 入站路由,而无需重置对等会话。

此命令不清除内核或硬件中的计数器,也不重置 BGP 邻居邻接关系。

  • 当交换机配置了启用 soft-reconfiguration inbound 的邻居时,此命令清除地址族的软重配置表中的路由。这会导致根据任何应用的输入策略重新评估 BGP 表中的路由。
  • 当交换机配置启用 soft-reconfiguration inbound 选项的邻居时,此命令向对等方发送路由刷新消息。
  • 如果您未指定方向 in,则该命令会影响入站和出站路由,具体取决于是否启用了软重配置入站。

命令语法

语法描述
<vrf-id>VRF 名称。
<neighbor-id>BGP 对等方的 IP 地址或接口(如果您使用的是无编号 BGP)。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp neighbor swp51 address-family l2vpn-evpn soft in
Action succeeded

nv action clear vrf <vrf-id> router bgp neighbor <neighbor-id> address-family l2vpn-evpn soft out

清除指定 VRF 中特定 BGP 对等方的 EVPN 出站路由,而无需重置对等会话。

此命令不

  • 清除内核或硬件中的计数器。
  • 重置 BGP 邻居邻接关系。
  • 重新通告到 BGP 对等方的所有路由。

如果您未指定方向 out,则该命令会影响入站和出站路由,具体取决于是否启用了软重配置入站。

命令语法

语法描述
<vrf-id>VRF 名称。
<neighbor-id>BGP 对等方的 IP 地址或接口(如果您使用的是无编号 BGP)。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp neighbor swp51 address-family l2vpn-evpn soft out
Action succeeded

nv action clear vrf <vrf-id> router bgp neighbor <neighbor-id> address-family l2vpn-evpn out

清除指定 VRF 中特定 BGP 对等方的 EVPN 出站路由。

此命令不

  • 清除内核或硬件中的计数器。
  • 重置 BGP 邻居邻接关系。
  • 重新通告到 BGP 对等方的所有路由。

命令语法

语法描述
<vrf-id>VRF 名称。
<neighbor-id>BGP 对等方的 IP 地址或接口(如果您使用的是无编号 BGP)。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp neighbor swp51 address-family l2vpn-evpn out
Action succeeded

nv action clear vrf <vrf-id> router bgp neighbor <neighbor-id> in

清除指定 VRF 中特定 BGP 对等方的入站路由。

此命令不清除内核或硬件中的计数器,也不重置 BGP 邻居邻接关系。

  • 当交换机配置了启用 soft-reconfiguration inbound 的邻居时,此命令清除地址族的软重配置表中的路由。这会导致根据任何应用的输入策略重新评估 BGP 表中的路由。
  • 当交换机配置启用 soft-reconfiguration inbound 选项的邻居时,此命令向对等方发送路由刷新消息。

命令语法

语法描述
<vrf-id>VRF 名称。
<neighbor-id>BGP 对等方的 IP 地址或接口(如果您使用的是无编号 BGP)。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp neighbor swp51 in
Action succeeded

nv action clear vrf <vrf-id> router bgp neighbor <neighbor-id> soft in

清除指定 VRF 中特定 BGP 对等方的入站路由,而无需重置对等会话。

此命令不清除内核或硬件中的计数器,也不重置 BGP 邻居邻接关系。

  • 当交换机配置了启用 soft-reconfiguration inbound 的邻居时,此命令清除地址族的软重配置表中的路由。这会导致根据任何应用的输入策略重新评估 BGP 表中的路由。
  • 当交换机配置启用 soft-reconfiguration inbound 选项的邻居时,此命令向对等方发送路由刷新消息。
  • 如果您未指定方向 in,则该命令会影响入站和出站路由,具体取决于是否启用了软重配置入站。

命令语法

语法描述
<vrf-id>VRF 名称。
<neighbor-id>BGP 对等方的 IP 地址或接口(如果您使用的是无编号 BGP)。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp neighbor swp51 soft in
Action succeeded

nv action clear vrf <vrf-id> router bgp neighbor <neighbor-id> soft out

清除指定 VRF 中特定 BGP 对等方的出站路由,而无需重置对等会话。

此命令不

  • 清除内核或硬件中的计数器。
  • 重置 BGP 邻居邻接关系。
  • 重新通告到 BGP 对等方的所有路由。

如果您未指定方向 out,则该命令会影响入站和出站路由,具体取决于是否启用了软重配置入站。

命令语法

语法描述
<vrf-id>VRF 名称。
<neighbor-id>BGP 对等方的 IP 地址或接口(如果您使用的是无编号 BGP)。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp neighbor swp51 soft out
Action succeeded

nv action clear vrf <vrf-id> router bgp neighbor <neighbor-id> out

清除指定 VRF 中特定 BGP 对等方的出站路由。

此命令不

  • 清除内核或硬件中的计数器。
  • 重置 BGP 邻居邻接关系。
  • 重新通告到 BGP 对等方的所有路由。

命令语法

语法描述
<vrf-id>VRF 名称。
<neighbor-id>BGP 对等方的 IP 地址或接口(如果您使用的是无编号 BGP)。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp neighbor swp51 out
Action succeeded

nv action clear vrf <vrf-id> router bgp peer-group <peer-group-id> address-family ipv4-unicast in

清除指定 VRF 中特定 BGP 对等组的 IPv4 入站路由。

此命令不清除内核或硬件中的计数器,也不重置 BGP 邻居邻接关系。

  • 当交换机配置了启用 soft-reconfiguration inbound 的邻居时,此命令清除地址族的软重配置表中的路由。这会导致根据任何应用的输入策略重新评估 BGP 表中的路由。
  • 当交换机配置启用 soft-reconfiguration inbound 选项的邻居时,此命令向对等方发送路由刷新消息。

命令语法

语法描述
<vrf-id>VRF 名称。
<peer-group-id>对等组名称。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp peer-group SPINES address-family ipv4-unicast in
Action succeeded

nv action clear vrf <vrf-id> router bgp peer-group <peer-group-id> address-family ipv4-unicast soft in

清除指定 VRF 中特定 BGP 对等组的 IPv4 入站路由。

此命令不清除内核或硬件中的计数器,也不重置 BGP 邻居邻接关系。

  • 当交换机配置了启用 soft-reconfiguration inbound 的邻居时,此命令清除地址族的软重配置表中的路由。这会导致根据任何应用的输入策略重新评估 BGP 表中的路由。
  • 当交换机配置启用 soft-reconfiguration inbound 选项的邻居时,此命令向对等方发送路由刷新消息。
  • 如果您未指定方向 in,则该命令会影响入站和出站路由,具体取决于是否启用了软重配置入站。

命令语法

语法描述
<vrf-id>VRF 名称。
<peer-group-id>对等组名称。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp peer-group SPINES address-family ipv4-unicast soft in
Action succeeded

nv action clear vrf <vrf-id> router bgp peer-group <peer-group-id> address-family ipv4-unicast soft out

清除指定 VRF 中特定 BGP 对等组的 IPv4 出站路由。

此命令不

  • 清除内核或硬件中的计数器。
  • 重置 BGP 邻居邻接关系。
  • 重新通告到 BGP 对等方的所有路由。

如果您未指定方向 out,则该命令会影响入站和出站路由,具体取决于是否启用了软重配置入站。

命令语法

语法描述
<vrf-id>VRF 名称。
<peer-group-id>对等组名称。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp peer-group SPINES address-family ipv4-unicast soft out
Action succeeded

nv action clear vrf <vrf-id> router bgp peer-group <peer-group-id> address-family ipv4-unicast out

清除指定 VRF 中特定 BGP 对等组的 IPv4 出站路由。

此命令不

  • 清除内核或硬件中的计数器。
  • 重置 BGP 邻居邻接关系。
  • 重新通告到 BGP 对等方的所有路由。

命令语法

语法描述
<vrf-id>VRF 名称。
<peer-group-id>对等组名称。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp peer-group SPINES address-family ipv4-unicast out
Action succeeded

nv action clear vrf <vrf-id> router bgp peer-group <peer-group-id> address-family ipv6-unicast in

清除指定 VRF 中特定 BGP 对等组的 IPv6 入站路由。

此命令不清除内核或硬件中的计数器,也不重置 BGP 邻居邻接关系。

  • 当交换机配置了启用 soft-reconfiguration inbound 的邻居时,此命令清除地址族的软重配置表中的路由。这会导致根据任何应用的输入策略重新评估 BGP 表中的路由。
  • 当交换机配置启用 soft-reconfiguration inbound 选项的邻居时,此命令向对等方发送路由刷新消息。

命令语法

语法描述
<vrf-id>VRF 名称。
<peer-group-id>对等组名称。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp peer-group SPINES address-family ipv6-unicast in
Action succeeded

nv action clear vrf <vrf-id> router bgp peer-group <peer-group-id> address-family ipv6-unicast soft in

清除指定 VRF 中特定 BGP 对等组的 IPv6 入站路由。

此命令不清除内核或硬件中的计数器,也不重置 BGP 邻居邻接关系。

  • 当交换机配置了启用 soft-reconfiguration inbound 的邻居时,此命令清除地址族的软重配置表中的路由。这会导致根据任何应用的输入策略重新评估 BGP 表中的路由。
  • 当交换机配置启用 soft-reconfiguration inbound 选项的邻居时,此命令向对等方发送路由刷新消息。
  • 如果您未指定方向 in,则该命令会影响入站和出站路由,具体取决于是否启用了软重配置入站。

命令语法

语法描述
<vrf-id>VRF 名称。
<peer-group-id>对等组名称。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp peer-group SPINES address-family ipv6-unicast soft in
Action succeeded

nv action clear vrf <vrf-id> router bgp peer-group <peer-group-id> address-family ipv6-unicast soft out

清除指定 VRF 中特定 BGP 对等组的 IPv6 出站路由。

此命令不

  • 清除内核或硬件中的计数器。
  • 重置 BGP 邻居邻接关系。
  • 重新通告到 BGP 对等方的所有路由。

如果您未指定方向 out,则该命令会影响入站和出站路由,具体取决于是否启用了软重配置入站。

命令语法

语法描述
<vrf-id>VRF 名称。
<peer-group-id>对等组名称。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp peer-group SPINES address-family ipv6-unicast soft out
Action succeeded

nv action clear vrf <vrf-id> router bgp peer-group <peer-group-id> address-family ipv6-unicast out

清除指定 VRF 中特定 BGP 对等组的 IPv6 出站路由。

此命令不

  • 清除内核或硬件中的计数器。
  • 重置 BGP 邻居邻接关系。
  • 重新通告到 BGP 对等方的所有路由。

命令语法

语法描述
<vrf-id>VRF 名称。
<peer-group-id>对等组名称。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp peer-group SPINES address-family ipv6-unicast out
Action succeeded

nv action clear vrf <vrf-id> router bgp peer-group <peer-group-id> address-family l2vpn-evpn in

清除指定 VRF 中特定 BGP 对等组的 EVPN 入站路由。

此命令不清除内核或硬件中的计数器,也不重置 BGP 邻居邻接关系。

  • 当交换机配置了启用 soft-reconfiguration inbound 的邻居时,此命令清除地址族的软重配置表中的路由。这会导致根据任何应用的输入策略重新评估 BGP 表中的路由。
  • 当交换机配置启用 soft-reconfiguration inbound 选项的邻居时,此命令向对等方发送路由刷新消息。

命令语法

语法描述
<vrf-id>VRF 名称。
<peer-group-id>对等组名称。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp peer-group SPINES address-family l2vpn-evpn in
Action succeeded

nv action clear vrf <vrf-id> router bgp peer-group <peer-group-id> address-family l2vpn-evpn soft in

清除指定 VRF 中特定 BGP 对等组的 EVPN 入站路由。

此命令不清除内核或硬件中的计数器,也不重置 BGP 邻居邻接关系。

  • 当交换机配置了启用 soft-reconfiguration inbound 的邻居时,此命令清除地址族的软重配置表中的路由。这会导致根据任何应用的输入策略重新评估 BGP 表中的路由。
  • 当交换机配置启用 soft-reconfiguration inbound 选项的邻居时,此命令向对等方发送路由刷新消息。
  • 如果您未指定方向 in,则该命令会影响入站和出站路由,具体取决于是否启用了软重配置入站。

命令语法

语法描述
<vrf-id>VRF 名称。
<peer-group-id>对等组名称。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp peer-group SPINES address-family l2vpn-evpn soft in
Action succeeded

nv action clear vrf <vrf-id> router bgp peer-group <peer-group-id> address-family l2vpn-evpn soft out

清除指定 VRF 中特定 BGP 对等组的 EVPN 出站路由。

此命令

  • 不清除内核或硬件中的计数器
  • 不重置 BGP 邻居邻接关系。
  • 不重新通告到 BGP 对等方的所有路由。

如果您未指定方向 out,则该命令会影响入站和出站路由,具体取决于是否启用了软重配置入站。

命令语法

语法描述
<vrf-id>VRF 名称。
<peer-group-id>对等组名称。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp peer-group SPINES address-family l2vpn-evpn soft out
Action succeeded

nv action clear vrf <vrf-id> router bgp peer-group <peer-group-id> address-family l2vpn-evpn out

清除指定 VRF 中特定 BGP 对等组的 EVPN 出站路由。

此命令不

  • 清除内核或硬件中的计数器。
  • 重置 BGP 邻居邻接关系。
  • 重新通告到 BGP 对等方的所有路由。

命令语法

语法描述
<vrf-id>VRF 名称。
<peer-group-id>对等组名称。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp peer-group SPINES address-family l2vpn-evpn out
Action succeeded

nv action clear vrf <vrf-id> router bgp peer-group <peer-group-id> in

清除指定 VRF 中特定 BGP 对等组的入站路由。

此命令不清除内核或硬件中的计数器,也不重置 BGP 邻居邻接关系。

  • 当交换机配置了启用 soft-reconfiguration inbound 的邻居时,此命令清除地址族的软重配置表中的路由。这会导致根据任何应用的输入策略重新评估 BGP 表中的路由。
  • 当交换机配置启用 soft-reconfiguration inbound 选项的邻居时,此命令向对等方发送路由刷新消息。

命令语法

语法描述
<vrf-id>VRF 名称。
<peer-group-id>对等组名称。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp peer-group SPINES in
Action succeeded

nv action clear vrf <vrf-id> router bgp peer-group <peer-group-id> soft in

清除指定 VRF 中特定 BGP 对等组的入站路由。

此命令不清除内核或硬件中的计数器,也不重置 BGP 邻居邻接关系。

  • 当交换机配置了启用 soft-reconfiguration inbound 的邻居时,此命令清除地址族的软重配置表中的路由。这会导致根据任何应用的输入策略重新评估 BGP 表中的路由。
  • 当交换机配置启用 soft-reconfiguration inbound 选项的邻居时,此命令向对等方发送路由刷新消息。
  • 如果您未指定方向 in,则该命令会影响入站和出站路由,具体取决于是否启用了软重配置入站。

命令语法

语法描述
<vrf-id>VRF 名称。
<peer-group-id>对等组名称。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp peer-group SPINES soft in
Action succeeded

nv action clear vrf <vrf-id> router bgp peer-group <peer-group-id> soft out

清除指定 VRF 中特定 BGP 对等组的出站路由。

此命令不

  • 清除内核或硬件中的计数器。
  • 重置 BGP 邻居邻接关系。
  • 重新通告到 BGP 对等方的所有路由。

如果您未指定方向 out,则该命令会影响入站和出站路由,具体取决于是否启用了软重配置入站。

命令语法

语法描述
<vrf-id>VRF 名称。
<peer-group-id>对等组名称。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp peer-group SPINES soft out
Action succeeded

nv action clear vrf <vrf-id> router bgp peer-group <peer-group-id> out

清除指定 VRF 中特定 BGP 对等组的出站路由。

此命令不

  • 清除内核或硬件中的计数器。
  • 重置 BGP 邻居邻接关系。
  • 重新通告到 BGP 对等方的所有路由。

命令语法

语法描述
<vrf-id>VRF 名称。
<peer-group-id>对等组名称。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp peer-group SPINES out
Action succeeded

nv action clear vrf <vrf-id> router bgp soft

清除指定 VRF 中与所有邻居和地址族的所有路由。

命令语法

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

版本历史

在 Cumulus Linux 5.6.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp soft
Action succeeded

nv action clear vrf <vrf-id> router bgp soft in

清除并刷新指定 VRF 中与所有邻居和地址族的所有入站路由。

命令语法

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

版本历史

在 Cumulus Linux 5.6.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp soft in
Action succeeded

nv action clear vrf <vrf-id> router bgp soft out

清除并重新发送指定 VRF 中与所有邻居和地址族的所有出站路由。

命令语法

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

版本历史

在 Cumulus Linux 5.6.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp soft out
Action succeeded

nv action clear vrf <vrf-id> router bgp out

清除并刷新指定 VRF 中与所有邻居和地址族的所有出站路由。

命令语法

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

版本历史

在 Cumulus Linux 5.6.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router bgp out
Action succeeded

nv action clear vrf <vrf-id> router ospf database

清除 OSPF 数据库,重建邻居关系,并重新发起 LSA。

命令语法

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

版本历史

在 Cumulus Linux 5.10.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router ospf database

nv action clear vrf <vrf-id> router ospf interface

清除 OSPF 接口的所有计数器。

命令语法

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

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router ospf interface

nv action clear vrf <vrf-id> router ospf interface <interface-id>

清除指定接口上的 OSPF 邻居邻接关系。

命令语法

语法描述
<vrf-id>VRF 名称。
<interface-id>您要在其上清除 OSPF 邻居邻接关系的接口。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router ospf interface swp2
Action succeeded

nv action clear vrf <vrf-id> router pim interfaces

清除指定 VRF 中所有 PIM 接口的 PIM 邻居。

命令语法

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

版本历史

在 Cumulus Linux 5.6.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router pim interfaces
Action succeeded

nv action clear vrf <vrf-id> router pim interface-traffic

清除指定 VRF 中所有 PIM 接口的流量统计信息。

命令语法

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

版本历史

在 Cumulus Linux 5.6.0 中引入

示例

cumulus@switch:~$ nv action clear vrf default router pim interface-traffic
Action succeeded

nv action deauthenticate interface <interface-id> dot1x authorized-sessions <mac-address>

取消指定接口上 802.1X 客户端的身份验证。如果您不想通知客户端他们正在被取消身份验证,您可以添加 silent 选项。

命令语法

语法描述
<interface-id>您要在其上取消 802.1X 客户端身份验证的接口。
<mac-address>MAC 地址。

版本历史

在 Cumulus Linux 5.8.0 中引入

示例

cumulus@switch:~$ nv action deauthenticate interface swp1 dot1x authorized-sessions 00:55:00:00:00:09 silent
Action succeeded

nv action delete system log file <file-name>

删除指定的系统日志文件。

删除日志文件使您能够管理存储空间并确保仅保留相关日志。您通常在上传或存档日志文件后,或者当您不再需要日志文件进行故障排除或审计时删除日志文件。日志文件删除是日志管理中的关键步骤,以确保过时或不相关的数据不占用系统资源。

命令语法

语法描述
<file-name>您要删除的系统日志文件。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action delete system log file mstpd.log 

nv action delete system log component <component-name> file <filename>

从特定的系统组件中删除日志文件。

命令语法

语法描述
<component-name>您要从中删除日志文件的系统组件。
<filename>您要删除的日志文件的名称。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action delete system log component nvue file nvued.log

nv action delete system packages key <key>

删除软件包仓库密钥。

命令语法

语法描述
<key-id>仓库密钥。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action delete system packages key debian-archive-bookworm-automatic.asc

nv action delete system security ca-certificate <cert-id>

删除您指定的 CA 证书。

命令语法

语法描述
<cert-id>您要删除的 CA 证书。

版本历史

在 Cumulus Linux 5.7.0 中引入

示例

cumulus@switch:~$ nv action delete system security ca-certificate cert-1

nv action delete system security certificate <cert-id>

删除您指定的实体证书。

命令语法

语法描述
<cert-id>您要删除的实体证书。

版本历史

在 Cumulus Linux 5.7.0 中引入

示例

cumulus@switch:~$ nv action delete system security certificate cert-1

nv action disable system maintenance mode

禁用维护模式并恢复正常运行。

版本历史

在 Cumulus Linux 5.7.0 中引入

示例

cumulus@switch:~$ nv action disable system maintenance mode
System maintenance mode has been disabled successfully
 Current System Mode: cold  
 frr             : cold, up, up time: 12:57:48 (1 restart)
 switchd         : cold, up, up time: 13:12:13
 System Services : cold, up, up time: 13:12:32
Action succeeded

nv action disable system maintenance ports

维护后恢复端口管理状态。

版本历史

在 Cumulus Linux 5.7.0 中引入

示例

cumulus@switch:~$ nv action disable system maintenance ports
System maintenance ports has been disabled successfully
 Current System Mode: cold  
 Ports shutdown for Maintenance
 frr             : cold, up, up time: 13:00:57 (1 restart)
 switchd         : cold, up, up time: 13:15:22
 System Services : cold, up, up time: 13:15:41
Action succeeded

nv action disable system ztp

禁用 ZTP 并停用配置过程。如果 ZTP 脚本当前正在运行,则不会禁用 ZTP。

版本历史

在 Cumulus Linux 5.11.0 中引入

示例

cumulus@switch:~$ nv action disable system ztp
The operation will perform disable of the ZTP.
Type [y] to perform disable of the ZTP.
Type [N] to cancel an action.

Do you want to continue? [y/N]

如果您添加 force 选项 (nv action disable system ztp force),ZTP 将禁用并停用配置过程,而不会提示您确认。


nv action disconnect system aaa user <user-id>

断开已认证和授权用户的连接。

命令语法

语法描述
<user-id>您要断开连接的用户。

版本历史

在 Cumulus Linux 5.4.0 中引入

示例

cumulus@switch:~$ nv action disconnect system aaa user admin2

nv action enable system maintenance mode

启用维护模式。当维护模式开启时,ISSU 执行优雅的 BGP 关闭,将流量重定向到对等链路,并关闭 MLAG 端口链路。switchd 保持完整功能。

版本历史

在 Cumulus Linux 5.7.0 中引入

示例

cumulus@switch:~$ nv action enable system maintenance mode
System maintenance mode has been enabled successfully
 Current System Mode: Maintenance, cold  
 Maintenance mode since Sat Nov 18 07:09:25 2023 (Duration: 00:00:00)
 frr             : Maintenance, cold, down, up time: 12:55:51 (1 restart)
 switchd         : Maintenance, cold, down, up time: 13:10:16
 System Services : Maintenance, cold, down, up time: 13:10:35
Action succeeded

nv action enable system maintenance ports

关闭端口以进行维护。

版本历史

在 Cumulus Linux 5.7.0 中引入

示例

cumulus@switch:~$ nv action enable system maintenance ports
System maintenance ports has been enabled successfully
 Current System Mode: Maintenance, cold  
 Maintenance mode since Sat Nov 18 07:09:25 2023 (Duration: 00:00:56)
 frr             : Maintenance, cold, down, up time: 12:56:47 (1 restart)
 switchd         : Maintenance, cold, down, up time: 13:11:12
 System Services : Maintenance, cold, down, up time: 13:11:31
Action succeeded

nv action enable system ztp

启用 ZTP 并激活配置过程。ZTP 尝试在交换机下次启动时运行。但是,如果 ZTP 已经在之前的启动中运行过,或者您进行了手动配置更改,ZTP 将退出,而不会尝试查找脚本。

版本历史

在 Cumulus Linux 5.11.0 中引入

示例

cumulus@switch:~$ nv action enable system ztp
The operation will perform enable of the ZTP.
Type [y] to perform enable of the ZTP.
Type [N] to cancel an action.

Do you want to continue? [y/N]

如果您添加 force 选项 (nv action enable system ztp force),ZTP 将启用并激活配置过程,而不会提示您确认。


nv action fetch system image <remote-url>

从指定的 URL 获取二进制镜像。

命令语法

语法描述
<remote-url>远程 URL。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action fetch system image http://10.0.1.251/cumulus-linux-5.12.0-mlx-amd64.bin

nv action fetch system packages key <key>

获取仓库密钥,并将其全局保存在 /etc/apt/trusted.gpg.d/ 目录中。

命令语法

语法描述
<key>仓库密钥。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action fetch system packages key http://deb.opera.com/archive.key 

nv action fetch system packages key <key> scope repository

获取仓库密钥,并将其保存在 /etc/apt/keyrings/ 目录中。

命令语法

语法描述
<key>仓库密钥。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action fetch system packages key http://deb.opera.com/archive.key scope repository

nv action delete system tech-support files <file-id>

删除指定的技术支持文件(用于故障排除的有用信息的压缩存档文件)。

命令语法

语法描述
<file-id>技术支持文件名和位置。

版本历史

在 Cumulus Linux 5.10.0 中引入

示例

cumulus@switch:~$ nv action delete system tech-support files /var/support/cl_support_leaf01_20240725_221237.txz
Action executing ...
File Delete Succeeded
Action succeeded

nv action generate system tech-support

生成技术支持文件(用于故障排除的有用信息的压缩存档文件)。

版本历史

在 Cumulus Linux 5.10.0 中引入

示例

cumulus@switch:~$ nv action generate system tech-support
Action executing ...
Generating system tech-support file, it might take a few minutes...

Action executing ...
Generated tech-support
Action succeeded

nv action import system security ca-certificate <cert-id>

导入 CA 证书。

Cumulus Linux 包含一个自签名证书和私钥,可在服务器上使用,以便它可以开箱即用。交换机在首次启动时生成自签名证书和私钥。带有公钥的 X.509 证书位于 /etc/ssl/certs/cumulus.pem 中,相应的私钥位于 /etc/ssl/private/cumulus.key 中。

NVIDIA 建议您使用自己的证书和密钥。

  • 您可以在交换机上最多导入 50 个 CA 证书。
  • 您导入的 CA 证书包含敏感的私钥信息。NVIDIA 建议您使用安全的传输方式,如 SFTP、SCP 或 HTTPS。
  • 如果证书受密码保护,您需要包含密码。
  • 您必须提供证书 ID (<cert-id>) 来唯一标识您导入的证书。

版本历史

在 Cumulus Linux 5.7.0 中引入

示例

cumulus@switch:~$ nv action import system security ca-certificate tls-cert-1 passphrase mypassphrase data "<public-key>" 

nv action import system security certificate <cert-id>

导入实体证书或证书捆绑包。

Cumulus Linux 包含一个自签名证书和私钥,可在服务器上使用,以便它可以开箱即用。交换机在首次启动时生成自签名证书和私钥。带有公钥的 X.509 证书位于 /etc/ssl/certs/cumulus.pem 中,相应的私钥位于 /etc/ssl/private/cumulus.key 中。

NVIDIA 建议您使用自己的证书和密钥。

  • 您可以在交换机上最多导入 25 个实体证书。
  • 您导入的证书包含敏感的私钥信息。NVIDIA 建议您使用安全的传输方式,如 SFTP、SCP 或 HTTPS。
  • 如果证书受密码保护,您需要包含密码。
  • 证书捆绑包必须为 .PFX 或 .P12 格式。
  • 您必须提供证书 ID (<cert-id>) 来唯一标识您导入的证书。

版本历史

在 Cumulus Linux 5.7.0 中引入

示例

cumulus@switch:~$ nv action import system security certificate tls-cert-1 passphrase mypassphrase uri-bundle scp://user@pass:1.2.3.4:/opt/certs/cert.p12

nv action install system image file <filename>

在第二个分区上安装指定的二进制镜像(优化升级)。

命令语法

语法描述
<filename>二进制镜像文件名。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action install system image files cumulus-linux-5.12.0-mlx-amd64.bin

nv action lookup vrf <vrf-id> router fib <address-family> <ip-address>

在路由表中查找特定目标的路由。

命令语法

语法描述
<vrf-id>VRF 名称。
<address-family>地址族;IPv4 或 IPv6。
<ip-address>IP 地址。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action lookup vrf default router fib ipv4 10.10.10.3
Action executing ... 
 [{"dst":"10.10.10.3","nhid":455,"table":"default","protocol":"bgp","metric":20,"flags":[]}] 

 Action succeeded

nv action ping system <destination>

向目标(IP 地址或主机名)发送 Echo Request 数据包,以检查其是否可达。

命令语法

语法描述
<destination>您要 ping 的目标的 IP 地址或主机名。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action ping system 10.10.10.10

nv action ping system <destination> count

配置要发送的 Echo Request 数据包的数量。您可以指定介于 1 到 10 之间的值。默认数据包计数为 3。

命令语法

语法描述
<destination>您要 ping 的目标的 IP 地址或主机名。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action ping system 10.10.10.10 count 5

nv action ping system <destination> do-not-fragment

配置不分片。如果数据包大于其遍历的任何网段的最大传输单元 (MTU),则丢弃数据包而不是分片数据包。

命令语法

语法描述
<destination>您要 ping 的目标的 IP 地址或主机名。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action ping system 10.10.10.10 do-not-fragment

nv action ping system <destination> interval

配置发送 Echo Request 数据包的频率。您可以指定介于 0.1 到 5 秒之间的值。默认值为 4。

命令语法

语法描述
<destination>您要 ping 的目标的 IP 地址或主机名。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action ping system 10.10.10.10 interval 2

nv action ping system <destination> l3protocol

配置您要用于发送 Echo Request 数据包的第 3 层协议。您可以指定 IPv4 或 IPv6。

命令语法

语法描述
<destination>您要 ping 的目标的 IP 地址或主机名。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action ping system 10.10.10.10 l3protocol ipv4

nv action ping system <destination> size

配置数据包大小,以字节为单位。您可以指定介于 1 到 9216 之间的值。默认值为 64。

命令语法

语法描述
<destination>您要 ping 的目标的 IP 地址或主机名。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action ping system 10.10.10.10 size 200

nv action ping system <destination> source

配置从中发送 Echo Request 数据包的源 IP 地址。

命令语法

语法描述
<destination>您要 ping 的目标的 IP 地址或主机名。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action ping system 10.10.10.10 source 10.10.5.1

nv action ping system <destination> source-interface

配置要测试链路本地地址路由路径的源接口。仅限 IPv6。

命令语法

语法描述
<destination>您要 ping 的目标的 IP 地址或主机名。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action ping system fe80::a00:27ff:fe00:0 source-interface eth0

nv action ping system <destination> wait

配置在 ping 请求超时之前等待 Echo Reply 数据包的秒数。您可以指定介于 0.1 到 10 之间的值。默认值为 10。

命令语法

语法描述
<destination>您要 ping 的目标的 IP 地址或主机名。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action ping system 10.10.10.10 wait 3

nv action ping system <destination> vrf

配置您要为其测试路由路径的 VRF。

命令语法

语法描述
<destination>您要 ping 的目标的 IP 地址或主机名。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action ping system 10.10.10.10 vrf mgmt

nv action reboot system

重启交换机。

版本历史

在 Cumulus Linux 5.5.0 中引入

示例

cumulus@switch:~$ nv action reboot system
Rebooting System in cold mode
True
Action succeeded

nv action reset platform transceiver <port-id>

将特定收发器重置为其初始稳定状态,而无需物理上位于数据中心来拔出收发器。您可以指定单个端口、端口范围(如 swp1-4)或逗号分隔的端口(如 swp1,swp4,swp5)。

命令语法

语法描述
<port-id>您要重置的收发器所连接的端口。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action reset platform transceiver swp1
Action executing ... 
Resetting module swp1 ... OK 
Action succeeded

nv action reset system factory-default

将交换机重置为出厂默认设置,并删除所有配置、系统文件和日志文件。当您执行出厂重置时,当前安装的镜像仍保留在交换机上。

  • 要使用 NVUE 命令运行出厂重置,nvued 服务必须正在运行。
  • 当您运行 NVUE 出厂重置命令时,交换机会提示您确认是否要继续。要在没有继续提示的情况下运行命令,请在命令末尾添加 force 选项。
  • 即使交换机在您运行出厂重置命令时处于热启动模式,交换机在出厂重置后始终以冷启动模式重启。
  • 如果 ZTP 失败(ZTP 配置文件不存在、没有 USB 驱动器或存在 DHCP 错误),出厂重置将继续成功;ZTP 是一个单独的任务,不会影响出厂重置状态。
  • 如果在运行出厂重置时出现问题,交换机将恢复到之前的配置并记录异常和错误。
  • 出厂重置命令类似于 onie-select -k 命令;但是,onie-select -k 也会删除已安装的镜像。

版本历史

在 Cumulus Linux 5.11.0 中引入

示例

cumulus@switch:~$ nv action reset system factory-default
This operation will reset the system configuration, delete the log files and reboot the switch.
Type [y] continue. 
Type [n] to abort. 
Do you want to continue? [y/n] y
...

nv action reset system factory-default keep basic

将交换机重置为出厂默认设置,但保留密码策略规则、管理接口配置(如 eth0)、本地用户帐户和角色以及 SSH 配置。

  • 要使用 NVUE 命令运行出厂重置,nvued 服务必须正在运行。
  • 当您运行 NVUE 出厂重置命令时,交换机会提示您确认是否要继续。要在没有继续提示的情况下运行命令,请在命令末尾添加 force 选项。
  • 即使交换机在您运行出厂重置命令时处于热启动模式,交换机在出厂重置后始终以冷启动模式重启。
  • 如果 ZTP 失败(ZTP 配置文件不存在、没有 USB 驱动器或存在 DHCP 错误),出厂重置将继续成功;ZTP 是一个单独的任务,不会影响出厂重置状态。
  • 如果在运行出厂重置时出现问题,交换机将恢复到之前的配置并记录异常和错误。
  • 出厂重置命令类似于 onie-select -k 命令;但是,onie-select -k 也会删除已安装的镜像。

版本历史

在 Cumulus Linux 5.11.0 中引入

示例

cumulus@switch:~$ nv action reset system factory-default keep basic
This operation will keep only the basic system configuration, delete the log files and reboot the switch.
Type [y] to continue. 
Type [n] to abort. 
Do you want to continue? [y/n] y
...


nv action reset system factory-default keep all-config

将交换机重置为出厂默认设置,但保留所有配置。

  • 要使用 NVUE 命令运行出厂重置,nvued 服务必须正在运行。
  • 当您运行 NVUE 出厂重置命令时,交换机会提示您确认是否要继续。要在没有继续提示的情况下运行命令,请在命令末尾添加 force 选项。
  • 即使交换机在您运行出厂重置命令时处于热启动模式,交换机在出厂重置后始终以冷启动模式重启。
  • 如果 ZTP 失败(ZTP 配置文件不存在、没有 USB 驱动器或存在 DHCP 错误),出厂重置将继续成功;ZTP 是一个单独的任务,不会影响出厂重置状态。
  • 如果在运行出厂重置时出现问题,交换机将恢复到之前的配置并记录异常和错误。
  • 出厂重置命令类似于 onie-select -k 命令;但是,onie-select -k 也会删除已安装的镜像。

版本历史

在 Cumulus Linux 5.11.0 中引入

示例

cumulus@switch:~$ nv action reset system factory-default keep all-config
This operation will not reset the system configuration, only delete the log files and reboot the switch.
Type [y] to continue.
Type [n] to abort.
Do you want to continue? [y/n] y 
...

nv action reset system factory-default keep only-files

将交换机重置为出厂默认设置,但保留所有系统文件和日志文件

  • 要使用 NVUE 命令运行出厂重置,nvued 服务必须正在运行。
  • 当您运行 NVUE 出厂重置命令时,交换机会提示您确认是否要继续。要在没有继续提示的情况下运行命令,请在命令末尾添加 force 选项。
  • 即使交换机在您运行出厂重置命令时处于热启动模式,交换机在出厂重置后始终以冷启动模式重启。
  • 如果 ZTP 失败(ZTP 配置文件不存在、没有 USB 驱动器或存在 DHCP 错误),出厂重置将继续成功;ZTP 是一个单独的任务,不会影响出厂重置状态。
  • 如果在运行出厂重置时出现问题,交换机将恢复到之前的配置并记录异常和错误。
  • 出厂重置命令类似于 onie-select -k 命令;但是,onie-select -k 也会删除已安装的镜像。

版本历史

在 Cumulus Linux 5.11.0 中引入

示例

cumulus@switch:~$ nv action reset system factory-default keep only-files
This operation will reset the system configuration, not delete the log files and reboot the switch.
Type [y] to continue. 
Type [n] to abort. 
Do you want to continue? [y/n] y 
...

nv action rotate system log

轮换系统日志文件。Cumulus Linux 自动管理日志文件大小,防止日志填满存储空间并减慢系统速度。

版本历史

在 Cumulus Linux 5.10.0 中引入

示例

cumulus@switch:~$ nv action rotate system log
Action executing ...
Log rotation successful
Action succeeded

nv action run system ztp

从头手动运行 ZTP。如果您进行了手动配置更改,ZTP 会将交换机视为已配置并退出。

您还可以为 ZTP 脚本指定交换机上的自定义 URL (nv action run system ztp url <url-and-filename) 或目录 (nv action run system ztp url <directory-and-filename)。

版本历史

在 Cumulus Linux 5.11.0 中引入

示例

cumulus@switch:~$ nv action run system ztp
The operation will perform rerun of the ZTP.
Type [y] to perform rerun of the ZTP.
Type [N] to cancel an action.

Do you want to continue? [y/N]

如果您添加 force 选项 (nv action run system ztp force),ZTP 将运行,而不会提示您确认。


nv action schedule system telemetry hft job <date-time> duration <duration> profile <profile> ports <port-id> description <text>

配置高频遥测数据收集的计划。

  • 您最多可以安排 10 个会话(作业)。除了活动作业外,交换机还可以保留 10 个作业(已完成、已取消或失败)的数据。
  • 您必须先配置数据导出(目标),然后才能配置计划。

命令语法

语法描述
<date-time>高频遥测数据收集的开始日期和时间,格式为 YYYY-MM-DD HH:MM:SS
duration会话持续时间,以秒为单位。默认值为 20 秒。
profile-id高频遥测数据收集配置文件名称。
port-id您要在其上收集数据的端口。您可以指定端口范围、多个逗号分隔的端口,或 all 表示所有端口。默认值为 all
<text>您收集数据的简短原因。如果描述包含多个单词,则必须用引号将描述括起来。描述是可选的。

版本历史

在 Cumulus Linux 5.10.0 中引入

示例

cumulus@switch:~$ nv action schedule system telemetry hft job 2024-07-17 10:00:00 duration 30 profile profile1 ports swp1-swp9 description "bandwidth profiling"
Action executing ...
Job schedule successfull.

Action succeeded

nv action traceroute system <destination>

向目标发送 traceroute 数据包,以便您可以验证路由。您可以指定 IP 地址或域名。

命令语法

语法描述
<destination>IP 地址或域名。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action traceroute system 10.10.10.10

nv action traceroute system <destination> do-not-fragment

如果 traceroute 数据包大于其遍历的任何网段的最大传输单元 (MTU),则丢弃数据包而不是分片数据包。

命令语法

语法描述
<destination>IP 地址或域名。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action traceroute system 10.10.10.10 do-not-fragment

nv action traceroute system <destination> initial-ttl

以指定的最小跳数向目标发送 traceroute 数据包。您可以指定介于 1 到 30 之间的值。默认值为 1。

最小跳数必须小于或等于最大跳数。

命令语法

语法描述
<destination>IP 地址或域名。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action traceroute system 10.10.10.10 initial-ttl 3

nv action traceroute system <destination> l3protocol

向指定的目标发送第 3 层 traceroute 数据包。您可以指定 ipv4ipv6。默认值为 ipv4

命令语法

语法描述
<destination>IP 地址或域名。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action traceroute system fe80::a00:27ff:fe00:0 l3protocol ipv6

nv action traceroute system <destination> l4protocol

向目标发送指定的第 4 层 traceroute 数据包。您可以指定 icmptcpudp。默认值为 icmp

命令语法

语法描述
<destination>IP 地址或域名。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action traceroute system 10.10.10.10 l4protocol udp

nv action traceroute system <destination> max-ttl

以指定的最小跳数向目标发送 traceroute 数据包。您可以指定介于 1 到 30 之间的值。

命令语法

语法描述
<destination>IP 地址或域名。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action traceroute system 10.10.10.10 max-ttl 10

nv action traceroute system <destination> source-address

从指定的源 IP 地址向目标发送 traceroute 数据包。

命令语法

语法描述
<destination>IP 地址或域名。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action traceroute system 10.10.10.10 source-address 10.10.5.1

nv action traceroute system <destination> vrf

使用指定的 VRF 向目标发送 traceroute 数据包。

命令语法

语法描述
<destination>IP 地址或域名。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action traceroute system 10.10.10.10 vrf RED

nv action traceroute system <destination> wait

向目标发送 traceroute 数据包,并等待来自每个跃点的响应的最长纳秒数。您可以指定介于 0.1 到 10 之间的值。

命令语法

语法描述
<destination>IP 地址或域名。

版本历史

在 Cumulus Linux 5.12.0 中引入

示例

cumulus@switch:~$ nv action traceroute system 10.10.10.10 wait 2

nv action upgrade system packages to latest use-vrf <vrf-id>

将所有软件包升级到最新发行版。

默认情况下,NVUE nv action upgrade system packages 命令在管理 VRF 中运行。要在非管理 VRF(如 default)中运行该命令,您必须使用 use-vrf <vrf-id> 选项。

命令语法

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

版本历史

在 Cumulus Linux 5.9.0 中引入

示例

cumulus@switch:~$ nv action upgrade system packages to latest use-vrf default

nv action upgrade system packages to latest use-vrf <vrf> dry-run

从仓库获取最新的更新元数据,以便您可以查看潜在的升级问题(在某些情况下,由于依赖关系,升级新软件包也可能升级其他现有软件包)。

默认情况下,NVUE nv action upgrade system packages 命令在管理 VRF 中运行。要在非管理 VRF(如 default)中运行该命令,您必须使用 use-vrf <vrf-id> 选项。

命令语法

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

版本历史

在 Cumulus Linux 5.9.0 中引入

示例

cumulus@switch:~$ nv action upgrade system packages to latest use-vrf default dry-run

nv action upload tech-support files <file-id> <remote-url>

将技术支持文件 (cl-support) 从交换机上传到外部位置。

命令语法

语法描述
<file-id>您要上传的技术支持文件。
<remote-url>您要将技术支持文件上传到的 URL。

版本历史

在 Cumulus Linux 5.10.0 中引入

示例

cumulus@switch:~$ nv action upload tech-support files cl_support_leaf01_20240725_225811.txz scp://root@host1:/home/tech-support/

nv action upload system telemetry hft job <hft-job-id> <remote-url>

将特定会话(作业)的高频遥测数据从交换机上传到外部位置。

命令语法

语法描述
<hft-job-id>作业 ID。您可以使用 nv show system telemetry hft job 命令查看作业列表。
<remote-url>您要将数据上传到的 URL。

版本历史

在 Cumulus Linux 5.10.0 中引入

示例

cumulus@switch:~$ nv action upload system telemetry hft job 1 scp://root@host1:/home/telemetry/

nv show action

显示操作,例如清除的接口计数器和路由、删除的 protodown MLAG 绑定冲突以及断开连接的系统用户。

版本历史

在 Cumulus Linux 5.4.0 中引入

示例

cumulus@switch:~$ nv show action
id  state         
--  --------------
1   action_success
2   action_error  
3   action_success
4   action_success 
5   action_success
6   action_success