思科4431/4331路由器接口下查看通信對流量


第一步:建立記錄

WH-ZYL-DX#conf t
WH-ZYL-DX(config)#flow record recordname1
WH-ZYL-DX(config-flow-record)#match ipv4 source address
WH-ZYL-DX(config-flow-record)#match ipv4 destination address
WH-ZYL-DX(config-flow-record)#collect counter packets/bytes long
WH-ZYL-DX(config-flow-record)#exit

第二步:建立檢測,並關聯記錄
WH-ZYL-DX(config)#flow monitor monitorname1
WH-ZYL-DX(config-flow-monitor)#record recordname1
WH-ZYL-DX(config-flow-monitor)#cache timeout active 604800
WH-ZYL-DX(config-flow-monitor)#cache entries 200000
WH-ZYL-DX(config-flow-monitor)#exit
WH-ZYL-DX(config)#end

第三步:接口下調用

WH-ZYL-DX#conf t
WH-ZYL-DX(config)#int Se0/1/0
WH-ZYL-DX(config-if)#ip flow monitor monitorname1
input Apply Flow Monitor on input traffic
multicast Apply Flow Monitor on multicast traffic
output Apply Flow Monitor on output traffic
sampler Optional Sampler to apply to this Flow Monitor
unicast Apply Flow Monitor on unicast traffic

WH-ZYL-DX(config-if)#ip flow monitor monitorname1 input
WH-ZYL-DX(config-if)#end

第四步:查看流量情況
WH-ZYL-DX#sh flow monitor monitorname1 cache

IPV4 SRC ADDR IPV4 DST ADDR bytes long pkts long
=============== =============== ==================== ====================
10.0.3.110 10.11.4.143 4093528 2913
10.0.3.81 10.11.4.143 1006020 857
10.0.3.81 10.11.4.127 1745087 1567


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM