When using a cisco router as an Internet Router, cisco's IP packet filtering function is generally used to count IP traffic. The method is to add the ipaccountingoutput-packets command at each entrance of the cisco router. The cisco router automatically counts the IP traffic of these ports. Common snmp or telnet terminal simulation (showipaccount) methods to obtain IP traffic
When using a cisco router as an Internet Router, cisco's IP packet filtering function is generally used to count IP traffic. The method is to add the ip accounting output-packets command at each entrance of the cisco router. The cisco router automatically counts the IP traffic of these ports. Common snmp or telnet terminal simulation (show ip account) methods to obtain IP traffic
When using a cisco router as an Internet Router, cisco's IP packet filtering function is generally used to count IP traffic. The method is to add the ip accounting output-packets command at each entrance of the cisco router. The cisco router automatically counts the IP traffic of these ports.
You can use the show ip account (snmp) or telnet terminal simulation method to obtain IP traffic. In Cisco IOS v.11 and later versions, the http Server feature is provided. Users can manage cisco routers on the WWW page and can easily collect IP traffic without any programming. For security reasons, you can also restrict access to the server's clients. The method is as follows:
Access-list 10 permit 202.111_2.5
Ip http server
Ip http access-list 10
In client 202.112.162.5, use the web download tool wget to periodically collect and clear IP traffic. The method is as follows:
# Read IP traffic and store it in the outpu-packets webpage File
Wget -- http-user = admin -- http-passwd = cisco
Http: // cisco/exec/show/ip/accounting/output-packets
# Clear collected IP traffic
Wget -- http-user = admin -- http-passwd = cisco
Http: // cisco/exec // clear/ip/accounting/CR
In the webpage outpu-packets, read the identifier <pre>,
</Pre> to calculate IP traffic.
Source Destination Packets Bytes
202.112.175.7 202.205.10.30 592
202.112.175.175 203.207.176.15 17 17 2000
202.1121322 202.96. 44.134 1 40
202.112134.5 202.103.134.58 1 40
202.112.175.201 202.114.98.12 3 430
202.112134.151 202.96. 49.1 6 279