Description and configuration of three network traffic detection methods
Source: Internet
Author: User
I. ip accounting
1. configuration method
Router (config) # int s 0/0
Router (config-if) # ip accounting output-packets
Router # sh ip accounting output-packets
Source Destination Packets Bytes
192.1.1.110 192.1.1.97 5 500
172.17.246. 128 192.1.1.110 8 704
Accounting data age is 2d23h
Or
Router (config) # int s 0/0
Router (config-if) # ip accounting access-violations
Router # sh ip accounting [checkpoint] access-violations
Source Destination Packets Bytes ACL
192.1.1.110 224.0.0.5 46 3128 19
Accounting data age is 7
2. Description
● If this method is used in
Routing When the server load is too large, use it with caution because it will degrade the system performance.
● Address-based byte count and Data Packet Count
● Generally, only outbound data packets and data packets rejected by ACL are supported (IN and OUT ACLs are supported)
● Statistics traversal only
Routing The traffic of the server. The source or target is
Routing No statistics are collected on the data packets of Iot platform.
● All switching paths are supported, except Autonomous Switching.
● You can access the statistical value through SNMP, MIB is a OLD-CISCO-IP-MIB, lipAccountingTable
● Ip accounting also supports other monitoring methods, such as tos and mac-address.
Ii. netflow
1. configuration method
Router (config-if) # ip route-cache flow
Router (config) # ip flow-export destination 172.17.246.225 9996
Router (config) # ip flow-export version 5
Optional configuration
Router (config) # ip flow-export source loopback 0
Router (config) # ip flow-cache entries
Router (config) # ip flow-cache timeout
Sh ip cache flow
IP packet size distribution (132429191 total packets ):
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.