Enabling packet statistics for VXLAN tunnels
VXLAN tunnels can be manually or automatically created. For manually created VXLAN tunnels, you can enable packet statistics on a per-tunnel interface basis. For automatically created VXLAN tunnels, you can enable packet statistics globally in system view.
To display the packet statistics for a VXLAN tunnel, use the display interface tunnel command in any view.
To clear the packet statistics for a VXLAN tunnel, use the reset counters interface tunnel command in user view.
Enabling packet statistics for a manually created VXLAN tunnel
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter VXLAN tunnel interface view. | interface tunnel tunnel-number [ mode vxlan ] | N/A |
3. Enable packet statistics for the tunnel. | statistics enable | By default, the packet statistics feature is disabled for manually created VXLAN tunnels. |
Enabling packet statistics for automatically created VXLAN tunnels
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enable packet statistics for automatically created VXLAN tunnels. | tunnel statistics vxlan auto | By default, the packet statistics feature is disabled for automatically created VXLAN tunnels. This command enables the device to collect packet statistics for all VXLAN tunnels that are automatically created by OVSDB. For more information about OVSDB, see "Configuring the VTEP as an OVSDB VTEP." |