vxlan statistics l3-mode enable

Function

The vxlan statistics l3-mode enable command enables Layer 3 traffic statistics collection by VNI and VXLAN tunnel.

The undo vxlan statistics l3-mode enable command disables Layer 3 traffic statistics collection by VNI and VXLAN tunnel.

By default, Layer 3 traffic statistics collection by VNI and VXLAN tunnel is disabled.

Format

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

vxlan statistics l3-mode peer peer-ip [ vni vni-id ] outbound enable

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

undo vxlan statistics l3-mode peer peer-ip [ vni vni-id ] outbound enable

Parameters

Parameter Description Value
vni vni-id

Specifies a VNI for which Layer 3 VXLAN traffic statistics collection is enabled or disabled.

The value is an integer ranging from 1 to 16777215.

inbound

Enables or disables Layer 3 upstream traffic statistics collection by VNI and VXLAN tunnel.

-

peer peer-ip

Specifies the IP address of a peer VTEP for which Layer 3 VXLAN traffic statistics collection is enabled or disabled.

The value is in dotted decimal notation.

outbound

Enables or disables Layer 3 downstream traffic statistics collection by VNI and VXLAN tunnel.

-

Views

NVE interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
nvo3 write

Usage Guidelines

Usage Scenario

Before checking the statistics about sent or received Layer 3 traffic collected by VNI and VXLAN tunnel for problem locating, run the vxlan statistics l3-mode enable command in the NVE interface view to enable upstream and downstream Layer 3 traffic statistics collection by VNI and VXLAN tunnel. If you do not run the vxlan statistics l3-mode enable command, VXLAN statistics cannot be obtained.

Precautions

The vxlan statistics l3-mode enable and statistic enable (VNI view) commands are mutually exclusive.

If you run the undo vxlan statistics l3-mode enable command, Layer 3 VXLAN traffic statistics will be cleared and cannot restore. Therefore, exercise caution when running this command.

Example

# Enable downstream Layer 3 traffic statistics collection by VNI 1 and peer VTEP IP address 2.2.2.2.
<HUAWEI> system-view
[~HUAWEI] interface nve 1
[*HUAWEI-Nve1] source 1.1.1.1
[*HUAWEI-Nve1] vni 1 head-end peer-list 2.2.2.2
[*HUAWEI-Nve1] vxlan statistics l3-mode peer 2.2.2.2 outbound enable
# Enable upstream Layer 3 traffic statistics collection by VNI 1 and peer VTEP IP address 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 l3-mode peer 1.1.1.2 vni 1 inbound enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >