1540488497lcj 发表于 2020-5-4 10:24
配置是什么样的呢?
设备上的配置大体是这样的,但是不知是什么原因没有流量进入SMC,初步判断可能不是配置问题,但是找不到解决方法
1、启用netflow
switch(config)# feature netflow
创建流导出器
flow exporter KQ
destination 192.168.88.40
source eth 100/1/1
version 9
dscp 0
transport udp 200
version 9
option exporter-stats timeout 1200
template data timeout 1200
在创建流之前保证使用正确的VDC
flow record NJKQ
match ipv4 source address
match ipv4 destination address
match ip protocol
match ip tos
match transport source-port
match transport destination-port
collect counter bytes long
collect counter packets long
collect timestamp sys-uptime first
collect timestamp sys-uptime last
collect ip version
退出并保存
创建流监控器
flow monitor KQYY
export KQ
record NJKQ
将流监控器用于接口
interface vlan88
ip flow monitor KQYY input sampler testsampler