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.
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
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. |
- |
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.
<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