1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<code>Router2951</code><code>#configure terminal</code>
<code>//Creating</code> <code>Flow Record</code>
<code>router2951(config)</code><code># flow record NTArecord</code>
<code>router2951 (config-flow-record)</code><code># match ipv4 source address</code>
<code>router2951 (config-flow-record)</code><code># match ipv4 destination address</code>
<code>router2951 (config-flow-record)</code><code># match ipv4 protocol</code>
<code>router2951 (config-flow-record)</code><code># match transport source-port</code>
<code>router2951 (config-flow-record)</code><code># match transport destination-port</code>
<code>router2951 (config-flow-record)</code><code># match ipv4 tos</code>
<code>router2951 (config-flow-record)</code><code># match interface input</code>
<code>router2951 (config-flow-record)</code><code># collect interface output</code>
<code>router2951 (config-flow-record)</code><code># collect counter bytes</code>
<code>router2951 (config-flow-record)</code><code># collect counter packets</code>
<code>//Creating</code> <code>Flow Exporter</code>
<code>router2951(config)</code><code># flow exporter NTAexport</code>
<code>router2951 (config-flow-exporter)</code><code>#destination 172.16.0.117</code>
<code>router2951 (config-flow-exporter)</code><code># source vlan1</code>
<code>router2951 (config-flow-exporter)</code><code># transport udp 2055</code>
<code>router2951 (config-flow-exporter)</code><code># template data timeout 60</code>
<code>//Creating</code> <code>Flow Monitor</code>
<code>router2951(config)</code><code># flow monitor NTAmonitor</code>
<code>router2951(config-flow-monitor)</code><code># record NTArecord</code>
<code>router2951(config-flow-monitor)</code><code># exporter NTAexport</code>
<code>router2951(config-flow-monitor)</code><code># cache timeout active 60</code>
<code>router2951(config-flow-monitor)</code><code># cache timeout inactive 15</code>
<code>//Associating</code> <code>the Monitor to an Interface</code>
<code>router2951(config)</code><code># int FastEthernet0/1</code>
<code>router2951(config-</code><code>if</code><code>)</code><code># ip flow monitor NTAmonitor input</code>
本文转自marbury 51CTO博客,原文链接:http://blog.51cto.com/magic3/1958694,如需转载请自行联系原作者