<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