网络流量的检测方法介绍
作者: CBISMB编辑
责任编辑: 阚智
来源: 中小企业IT采购
时间: 2009-09-07 09:21
关键字: 网络流量
浏览: 0
点赞: 0
收藏: 0
我们上网的过程当中很多用户都需要用各种方法检测网络流量。我们需要掌握检测网络流量的方法。我们来看下如何检测网络流量:
第一、我们可以使用ip accounting的方法:其配置方法为: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
第二、我们可以使用netflow方法:配置方法: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 <1024-524288>,router (config)#ip flow-cache timeout,sh ip cache flow,IP packet size distribution (132429191 total packets):1-32 64 96 128 160 192 224 256 288 320 352 384 416 448 480,.000 .191 .024 .009 .010 .006 .005 .008 .003 .005 .003 .003 .002 .001 .001,512 544 576 1024 1536 2048 2560 3072 3584 4096 4608,.001 .002 .107 .032 .578 .000 .000 .000 .000 .000 .000,IP Flow Switching Cache, 278544 bytes,33 active, 4063 inactive, 7975259 added,104834714 ager polls, 0 flow alloc failures,Active flows timeout in 30 minutes,Inactive flows timeout in 15 seconds,last clearing of statistics never,Protocol Total Flows Packets Bytes Packets Active(Sec) Idle(Sec),-------- Flows /Sec /Flow /Pkt /Sec /Flow /Flow,TCP-Telnet 25378 0.0 12 652 0.0 22.9 15.2,TCP-FTP 432435 0.1 4 59 0.4 1.2 2.7,TCP-FTPD 28670 0.0 212 1397 1.4 8.2 1.6,TCP-WWW 4682530 1.0 15 927 16.4 2.4 4.6。
第三、我们可以用NBAR的方法:其配置方法:router(config)# interface FastEthernet 0/1,router(config-if)# ip nbar protocol discovery,router# show ip nbar protocol -discovery interface FastEthernet 6/0,FastEthernet6/0,Input Output,Protocol Packet Count Packet Count,Byte Count Byte Count,5 minute bit rate (bps) 5 minute bit rate (bps),http 316773 0,26340105 0,3000 0,pop3 4437 7367,2301891 339213,3000 0,snmp 279538 14644,319106191 673624,0 0,Total 17203819 151684936,19161397327 50967034611,4179000 6620000。
第一、我们可以使用ip accounting的方法:其配置方法为: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
第二、我们可以使用netflow方法:配置方法: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 <1024-524288>,router (config)#ip flow-cache timeout,sh ip cache flow,IP packet size distribution (132429191 total packets):1-32 64 96 128 160 192 224 256 288 320 352 384 416 448 480,.000 .191 .024 .009 .010 .006 .005 .008 .003 .005 .003 .003 .002 .001 .001,512 544 576 1024 1536 2048 2560 3072 3584 4096 4608,.001 .002 .107 .032 .578 .000 .000 .000 .000 .000 .000,IP Flow Switching Cache, 278544 bytes,33 active, 4063 inactive, 7975259 added,104834714 ager polls, 0 flow alloc failures,Active flows timeout in 30 minutes,Inactive flows timeout in 15 seconds,last clearing of statistics never,Protocol Total Flows Packets Bytes Packets Active(Sec) Idle(Sec),-------- Flows /Sec /Flow /Pkt /Sec /Flow /Flow,TCP-Telnet 25378 0.0 12 652 0.0 22.9 15.2,TCP-FTP 432435 0.1 4 59 0.4 1.2 2.7,TCP-FTPD 28670 0.0 212 1397 1.4 8.2 1.6,TCP-WWW 4682530 1.0 15 927 16.4 2.4 4.6。
第三、我们可以用NBAR的方法:其配置方法:router(config)# interface FastEthernet 0/1,router(config-if)# ip nbar protocol discovery,router# show ip nbar protocol -discovery interface FastEthernet 6/0,FastEthernet6/0,Input Output,Protocol Packet Count Packet Count,Byte Count Byte Count,5 minute bit rate (bps) 5 minute bit rate (bps),http 316773 0,26340105 0,3000 0,pop3 4437 7367,2301891 339213,3000 0,snmp 279538 14644,319106191 673624,0 0,Total 17203819 151684936,19161397327 50967034611,4179000 6620000。
©本站发布的所有内容,包括但不限于文字、图片、音频、视频、图表、标志、标识、广告、商标、商号、域名、软件、程序等,除特别标明外,均来源于网络或用户投稿,版权归原作者或原出处所有。我们致力于保护原作者版权,若涉及版权问题,请及时联系我们进行处理。