(Optional) Enabling the Logging of the First Packet that Matches an ACL Rule

When packets match an ACL, information about the first matching packet can be logged, including the name of the inbound/outbound interface, source IP address, destination IP address, protocol number, source port number, destination port number, time when the first packet is received (millisecond-level), and number of packets within a specified period.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run traffic behavior behavior–name

    A traffic behavior is configured and the traffic behavior view is displayed.

  3. Run log first-packet

    The function to log the first packet that matches an ACL rule is enabled.

  4. Run quit

    The system view is displayed.

  5. (Optional) Run traffic-behavior log { entries number-of-entries | interval interval-time } *

    The maximum number of flows and the interval for collecting packet statistics recorded by the log first-packet action are configured.

    In VS mode, this command is supported only by the admin VS.

  6. Run commit

    The configuration is committed.

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