NetFlow

本文介绍了NetFlow流量监控系统的配置步骤,包括创建NetFlow输出目的地、流量监控、自定义流量记录等,并展示了如何配置采样及查看监控信息。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

NetFlow 


NetFlow流量定义七要素: 
1.Source IP address 
2.Destination IP address 
3.Source port 
4.Destination port 
5.Layer 3 protocol type 
6.CoS or Tos byte 
7.Input logical interface 


1.创建一个NetFlow输出目的


flow exporter Netflow-Exporter 
 destination 202.100.1.241 
 transport udp 6666 
 export-protocol netflow-v9 
 
2.创建一个流量监控


flow monitor Monitor1 
 record netflow ipv4 original-input 
 exporter Netflow-Exporter 


3.创建一个自定义的流量记录
 
flow record Yeslab-Record 
 match ipv4 source address 
 match ipv4 destination address 
 collect counter bytes 


4.再创建一个流量监控


flow monitor Monitor2 
 record Yeslab-Record 
 export Netflow-Exporter 


5.在两个接口下分别调用已定义的监控


interface fastethernet 0/0 
 ip address 202.100.1.10 255.255.255.0 
 ip flow monitor Monitor1 input 


interface fastethernet 1/0 
 ip address 10.1.1.10 255.255.255.0 
 ip flow monitor Monitor2 input 


8.配置flow-top-talker 


ip flow-top-talkers 
 top 5 
 sort-by packets 
 match protocol 1 


9.配置采集MAP 
 
flow-sampler-map Yeslab 
 mode random one-out-of 10 


10.接口下调用采集MAP 


interface fastethernet 0/0 
 ip address 202.100.1.10 255.255.255.0 
 duplex half 
 flow-sampler Yeslab 


显示所有接口NetFlow输出统计


show flow exporter statistics 


查看Monitor1 and Monitor2收集的信息


show flow monitor name Monitor1 cache format table 
show flow monitor name Monitor2 cache format table 


show ip flow top-talkers 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值