Configuring a Rule for Collecting Statistics on Packets Containing Specified 5-tuple Information
Context
The 5-tuple information includes the source and destination IP addresses, source and destination port numbers, and protocol type. Traffic transmitted on each device interface contains different 5-tuple information. If the outbound interface is an Eth-Trunk or packets have multiple ECMP next hops, you can configure rules for collecting statistics on packets that contain specified 5-tuple information to facilitate fault locating and traffic forwarding path identification.
Procedure
- Run system-view
The system view is displayed.
- Run port forwarding-path path-id pathnum { src-ip src-ip-data [ srcip-mask-len ] | dst-ip dst-ip-data [ dstip-mask-len ] | protocol { protocolnum | tcp [ l4-src-port src-port-data | l4-dst-port dst-port-data ] * | udp [ l4-src-port src-port-data | l4-dst-port dst-port-data ] * } } * statistics precedence precedencenum
A rule for collecting statistics on packets with specified 5-tuple information is configured.
This command is supported by CE12800 series switches only when their cards use the enhanced interoperability mode. You can run the set forward capability enhanced command to set the card interoperability mode to enhanced mode.
- Run commit
The configuration is committed.