一、在設備上配置netflow。
①netflow v5
全局配置:ide
ip flow-export source Vlan200
ip flow-export version 5
ip flow-export destination 10.16.6.166 9996接口
接口配置:ip
interface GigabitEthernet0/1
ip flow ingress
ip flow egressinput
②netflow v9
全局配置record部分:it
flow record NetFlow
match ipv4 source address
match ipv4 destination address
match ipv4 protocol
match transport source-port
match transport destination-port
collect interface input
collect interface output
collect counter packets
collect counter bytesio
全局配置exporter部分:class
flow exporter NetFlow
destination 10.16.6.166
source GigabitEthernet0/1
transport udp 9996監控
全局配置monitor部分:配置
flow monitor NetFlow
exporter NetFlow
record NetFlowudp
接口配置:
interface GigabitEthernet0/1
ip flow monitor NetFlow input
ip flow monitor NetFlow output
二、登錄netflow管理平臺,通常選用solarwinds或者ManageEngine。登錄設備將相應設備添加進管理平臺後,能夠進行流量分析。同時,也可設置流量監控告警。