Enabling the Statistics Function on a Sub-interface

After enabling the statistics function on a sub-interface, you can view the statistics about received or sent packets on the sub-interface.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The view of the Ethernet sub-interface that requires the statistics function is displayed.

  3. Run statistic enable

    The statistics function is enabled on an Ethernet sub-interface.

  4. Run commit

    The configuration is committed.

    In addition to running the statistic enable command on a sub-interface to enable the statistics function, you can run the subinterface traffic-statistics enable command in the system view or Ethernet interface view to enable the statistics function in batches. Running the subinterface traffic-statistics enable command consumes a large number of system resources. Therefore, exercise caution when running this command. Note the following points:

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >