Collecting and Checking VXLAN Packet Statistics
To check the network status or locate network faults, you can enable the traffic statistics function to view VXLAN packet statistics.
Procedure
- Enable VXLAN packet statistics collection for a BD.
Run system-view
The system view is displayed.
Run bridge-domain bd-id
A BD is created, and the BD view is displayed.
Run statistic enable
VXLAN packet statistics collection is enabled for the BD.
Run commit
The configuration is committed.
- Enable VXLAN packet statistics collection for a specific VNI.
Run system-view
The system view is displayed.
Run vni vni-id
A VNI is created, and the VNI view is displayed.
Run statistic enable
VXLAN packet statistics collection is enabled.
Run commit
The configuration is committed.
- Enable VNI- and IPv4 VXLAN tunnel-based packet statistics collection.
Run system-view
The system view is displayed.
Run interface nve nve-number
An NVE interface is created, and the NVE interface view is displayed.
Run source ip-address
The IP address of the source VTEP is configured.
Run vni vni-id head-end peer-list ip-address &<1-10>
An ingress replication list is configured for the VNI.
Run vxlan statistics peer peer-ip vni vni-id [ inbound | outbound ] enable
VNI- and VXLAN tunnel-based packet statistics collection is enabled.
Run vxlan statistic l3-mode peer peer-ip vni vni-id inbound enable
Upstream Layer 3 traffic statistics collection by VNI and VXLAN tunnel is enabled.
Run vxlan statistics l3-mode peer peer-ip [ vni vni-id ] outbound enable
VNI- and VXLAN tunnel-based downlink Layer 3 traffic statistics collection is enabled.
Run commit
The configuration is committed.
- Enable VNI- and IPv6 VXLAN tunnel-based packet statistics collection.
- Run system-view
The system view is displayed.
- Run interface nve nve-number
An NVE interface is created, and its view is displayed.
- Run vxlan statistics peer destIpv6Addr vni vni-val [ inbound | outbound ] enable
VNI- and IPv6 VXLAN tunnel-based packet statistics collection is enabled.
- Run vxlan statistic l3-mode peer destIpv6Addr vni vni-val inbound enable
VNI- and IPv6 VXLAN tunnel-based Layer 3 uplink traffic statistics collection is enabled.
- Run vxlan statistics l3-mode peer destIpv6Addr [ vni vni-val ] outbound enable
VNI- and VXLAN tunnel-based Layer 3 downlink traffic statistics collection is enabled.
- Run commit
The configuration is committed.
Follow-up Procedure
- Run the display bridge-domain bd-id statistics command to view VXLAN packet statistics in the BD.
- Run the display vxlan statistics vni vni-id command to view VXLAN packet statistics collected by VNI.
- Run the display vxlan statistics source source-ip peer peer-ip vni vni-id command to check VNI- and VXLAN tunnel-based packet statistics.
- Run the display vxlan statistics source source-ipv6 peer peer-ipv6 vni vni-val command to check VNI- and IPv6 VXLAN tunnel-based packet statistics.
- Run the display vxlan statistics l3-mode source source-ip peer peer-ip local-vni vni-id command to check VNI- and VXLAN tunnel-based Layer 3 uplink traffic statistics.
- Run the display vxlan statistics l3-mode source source-ip peer peer-ip remote-vni vni-id command to check VNI- and VXLAN tunnel-based Layer 3 downlink traffic statistics.
- Run the display vxlan statistics l3-mode source source-ipv6 peer peer-ipv6 local-vni vni-val command to check VNI- and IPv6 VXLAN tunnel-based Layer 3 uplink traffic statistics.
- Run the display vxlan statistics l3-mode source source-ipv6 peer peer-ipv6 remote-vni vni-val command to check VNI- and IPv6 VXLAN tunnel-based Layer 3 downlink traffic statistics.