vxlan statistics enable

Function

The vxlan statistics enable command enables the function of collecting VXLAN packet statistics based on the VNI and VXLAN tunnel.

The undo vxlan statistics enable command disables the function of collecting VXLAN packet statistics based on the VNI and VXLAN tunnel.

By default, the function of collecting VXLAN packet statistics based on the VNI and VXLAN tunnel is disabled.

Format

vxlan statistics peer peer-ip vni vni-id inbound enable

vxlan statistics peer peer-ip vni vni-id outbound enable

vxlan statistics peer peer-ip vni vni-id enable

undo vxlan statistics peer peer-ip vni vni-id inbound enable

undo vxlan statistics peer peer-ip vni vni-id outbound enable

undo vxlan statistics peer peer-ip vni vni-id enable

Parameters

Parameter Description Value
vni vni-id

Enables VXLAN packets statistics collection based on a specified VNI ID.

The value is an integer ranging from 1 to 4294967295.

inbound

Collects VXLAN packet statistics for upstream traffic.

-

peer peer-ip

Enables VXLAN packet statistics collection based on the IP address of the peer VTEP.

The value is in dotted decimal notation.

outbound

Collects VXLAN packet statistics for downstream traffic.

-

Views

NVE interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
nvo3 write

Usage Guidelines

Usage Scenario

By default, VXLAN traffic statistics collection is disabled. To enable the VXLAN traffic statistics collection function based on a VNI ID and VXLAN tunnel, run the vxlan statistics enable command. If the function of collecting VXLAN packet statistics is disabled, you cannot obtain the statistics.

Example

# Enable the VXLAN packet statistics collection function based on the VNI with the ID of 1 and the IP address of the peer VTEP as 1.1.1.2.
<HUAWEI> system-view
[~HUAWEI] interface nve 1
[*HUAWEI-Nve1] source 1.1.1.1
[*HUAWEI-Nve1] vni 1 head-end peer-list 1.1.1.2
[*HUAWEI-Nve1] vxlan statistics peer 1.1.1.2 vni 1 enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >