Enabling MPLS label forwarding statistics

MPLS label forwarding forwards a labeled packet based on its incoming label.

Perform this task to enable MPLS label forwarding statistics and MPLS statistics reading, so that you can use the display mpls lsp verbose command to view MPLS label statistics.

To enable MPLS label forwarding statistics:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enable MPLS label forwarding statistics for specific LSPs.

mpls statistics { all | [ vpn-instance vpn-instance-name ] { ipv4 ipv4-destination mask-length | ipv6 ipv6-destination prefix-length } | static | te ingress-lsr-id tunnel-id }

By default, MPLS label forwarding statistics are disabled for all LSPs.

3. Enable MPLS label statistics reading, and specify the reading interval.

mpls statistics interval interval

By default, MPLS label statistics reading is disabled.