1、config全局状态下配置netflow版本号:
(config)#ip flow-export version 9
此命令将netflow配置为版本5。
本程序暂时只支持netflow版本V9、V5、V6。
2、config全局状态下配置netflow服务器地址和端口号:
(config)#ip flow-export destination xxx.xxx.xxx.xxx 55888
(config)#ip flow-cache timeout active 1
(config)#ip flow-cache timeout inactive 15
其中,xxx.xxx.xxx.xxx为netflow服务器地址,即运行netflow版流量监视程序主机的IP地址,55888为服务端口号。
3、在Cisco系列路由器交换机每个接口上(例如interface fastethernet0/0;interface
fastethernet0/1等)配置:
(config-if)#ip route-cache flow
4.设置设备NTP时间同步
5.接口模式启用netflow
(config)#interface FastEthernet 0/1
(config-if)#ip route-cache flow
(config-if)#exit
6.snmp配合
(config)#snmp-server ifindex persist
(config)#snmp-server community public RO
7.查看命令
#show ip flow export 查看netflow输出的统计情况
#show ip cache flow
#show ip cache verbose flow
8.关闭全局
(config)# no ip route-cache flow
(config)# no ip flow-export destination {hostname|ip_address} {port_number}
参考:http://blog.sina.com.cn/s/blog_550b4ac80100tnb5.html
cisco route netflow V9
最新推荐文章于 2024-07-14 15:11:24 发布