Configuration
en
cont f
# 1. 定義收集哪些欄位
flow record REC1
match ipv4 source address
match ipv4 destination address
collect counter bytes
collect counter packets
exit
# 2. 定義送出方式
flow exporter EXP1
destination 192.168.1.10
transport udp 2055
exit
# 3. 綁定 record 與 exporter
flow monitor M1
record REC1
exporter EXP1
exit
# 4. 綁定介面
int e 0/0
ip flow monitor name_1 flow input
ip flow monitor name_1 flow output
exit
end
wr
Check
# 顯示 NetFlow 匯出狀態
1.確認匯出是否正確
show ip flow [interface/export]
2.檢查收集到的 Flow
show flow monitor [name] [cache]
3.檢查 Exporter 狀態
show flow exporter
4.檢查 Record 狀態
show flow record