show ip flow export顯示了數據導出參數,show ip cache flow 顯示流緩存情況,
show ip cache flow aggregate destination-prefix 目地前綴聚合緩存內容。
例1:
ip cef------netflow要開啓cef,
!
flow-sampler-map a
mode random one-out-of 1000--------R1 入或出方向收到1000 packet 就輸出netflow sample
!
interface FastEthernet0/0
ip address 12.1.1.1 255.255.255.0
ip flow ingress-----入方向採集
ip flow egress------出方向採集
flow-sampler a------入方向netflow sample
flow-sampler a egress----出方向netflow sample
!
ip flow-export source Loopback0
ip flow-export version 9
ip flow-export destination 10.1.1.10 2222 sctp----目標服務器
backup destination 10.1.1.11 -----備份地址
例2:
ip cef
!
interface FastEthernet0/0
ip address 100.1.1.1 255.255.255.0
ip flow ingress-----抓取入口方向的流量netflow分析,隱含開啓ip route-cache flow 交換
!
ip flow-export source Loopback0
ip flow-aggregation cache destination-prefix---目地前綴聚合
cache entries 20000-----最大緩存表項20000條
cache timeout inactive 120---非活動表項緩存120s後清除
export version 9
export template timeout-rate 180----每180min模板導出一次
export destination 19.19.44.100 9876
在例2中數據流的過程:
數據採集-------------數據聚合-------流採集器
(主netflow緩存) (聚合緩存) (服務器)