思科4K路由器接口流量监控

第一步:建立记录

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值