Obtain IP traffic of a cisco Router

Source: Internet
Author: User
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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.