Home | 简体中文 | 繁体中文 | 杂文 | 打赏(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎专栏 | Search | Email

8.2. Router

		
router#enable
Password:*****
router#configure terminal
router(config)#interface FastEthernet 0/1
router(config-if)#ip route-cache flow
router(config-if)#exit
router(config)#ip flow-export destination 192.168.9.101 9996
router(config)#ip flow-export source FastEthernet 0/1
router(config)#ip flow-export version 9
router(config)#ip flow-cache timeout active 1
router(config)#ip flow-cache timeout inactive 15
router(config)#snmp-server ifindex persist
router(config)#^Z
router#write
router#show ip flow export
router#show ip cache flow
		
		
interface FastEthernet0/0/0
 description Default-Shenzhen-IPLC-Hongkong-WAN
 ip address 192.168.1.254 255.255.255.0
 ip flow ingress
 ip nat outside
 ip virtual-reassembly in
 duplex auto
 speed auto
!
ip flow-export source FastEthernet0/0/0
ip flow-export version 9
ip flow-export destination 192.168.1.246 2055



2911#show ip flow export
Flow export v5 is enabled for main cache
  Export source and destination details :
  VRF ID : Default
    Source(1)       192.168.1.254 (FastEthernet0/0/0)
    Destination(1)  192.168.1.246 (2055)
  Version 5 flow records
  450 flows exported in 19 udp datagrams
  0 flows failed due to lack of export packet
  0 export packets were sent up to process level
  0 export packets were dropped due to no fib
  0 export packets were dropped due to adjacency issues
  0 export packets were dropped due to fragmentation failures
  0 export packets were dropped due to encapsulation fixup failures
2911#show ip cache flow
IP packet size distribution (198733 total packets):
   1-32   64   96  128  160  192  224  256  288  320  352  384  416  448  480
   .000 .006 .079 .011 .006 .006 .010 .007 .004 .006 .005 .006 .005 .007 .004

    512  544  576 1024 1536 2048 2560 3072 3584 4096 4608
   .004 .004 .101 .061 .661 .000 .000 .000 .000 .000 .000

IP Flow Switching Cache, 278544 bytes
  181 active, 3915 inactive, 899 added
  27986 ager polls, 0 flow alloc failures
  Active flows timeout in 30 minutes
  Inactive flows timeout in 15 seconds
IP Sub Flow Cache, 34056 bytes
  145 active, 879 inactive, 496 added, 496 added to flow
  0 alloc failures, 0 force free
  1 chunk, 1 chunk added
  last clearing of statistics never
Protocol         Total    Flows   Packets Bytes  Packets Active(Sec) Idle(Sec)
--------         Flows     /Sec     /Flow  /Pkt     /Sec     /Flow     /Flow
TCP-WWW            184      0.0        69  1214      2.1       2.9       7.7
TCP-other           50      0.0         3   125      0.0       0.6       9.8
UDP-other          422      0.0       131  1073      9.4      14.7      15.4
ICMP                62      0.0         3    83      0.0      15.6      15.4
Total:             718      0.1        95  1094     11.7      10.8      13.0

SrcIf         SrcIPaddress    DstIf         DstIPaddress    Pr SrcP DstP  Pkts

SrcIf         SrcIPaddress    DstIf         DstIPaddress    Pr SrcP DstP  Pkts
Fa0/0/0       14.107.17.191   Gi0/1         192.168.1.254   11 405A 2868     1
Fa0/0/0       192.168.1.216   Null          192.168.1.255   11 0715 0089     1
Fa0/0/0       114.95.139.199  Gi0/1         192.168.1.254   11 2C00 2868     1
Fa0/0/0       121.10.120.164  Gi0/1         192.168.1.254   11 1F40 2868     2
Fa0/0/0       117.63.26.75    Local         192.168.1.254   01 0000 0303     1
Fa0/0/0       112.112.179.108 Gi0/1         192.168.1.254   11 0413 2868  1574
Fa0/0/0       121.10.24.67    Gi0/1         192.168.1.254   11 1F40 2868    41
Fa0/0/0       123.245.109.226 Gi0/1         192.168.1.254   11 2CAD 2868     1
Fa0/0/0       74.125.235.3    Gi0/2         192.168.1.254   06 0050 0A45     1
Fa0/0/0       117.82.149.18   Gi0/1         192.168.1.254   11 31DC 2868     4
Fa0/0/0       58.52.129.128   Gi0/1         192.168.1.254   11 8EFB 2868     8
Fa0/0/0       14.155.27.35    Gi0/1         192.168.1.254   11 CF9E 2868    79
Fa0/0/0       218.81.47.155   Local         192.168.1.254   01 0000 0303     2
Fa0/0/0       218.21.87.42    Gi0/1         192.168.1.254   11 0C1B 2868    54
Fa0/0/0       58.213.29.42    Gi0/1         192.168.1.254   11 BA85 2868     4
Fa0/0/0       118.249.123.126 Gi0/1         192.168.1.254   11 2682 2868     3
Fa0/0/0       111.179.55.238  Gi0/1         192.168.1.254   11 486E 2868  1203
Fa0/0/0       61.154.157.176  Gi0/1         192.168.1.254   11 A430 2868     5
Fa0/0/0       1.206.63.198    Gi0/1         192.168.1.254   11 205F 2868    14
Fa0/0/0       222.68.17.88    Gi0/1         192.168.1.254   11 7333 2868    62
Fa0/0/0       116.230.173.1   Gi0/1         192.168.1.254   11 BD78 2868    19
Fa0/0/0       115.238.255.189 Gi0/1         192.168.1.254   06 0050 0AC3  7435