在 vRealize Network Insight 中,可以為 Cisco 9000 系列交換器設定 NetFlow 收集器。
以下是 Cisco Nexus 9000 的一些裝置命令範例:
- 啟用 NetFlow 功能
configure terminalfeature netflowend - 建立流程記錄
configure terminalflow record vrni-recordmatch ipv4 protocolmatch ipv4 source addressmatch ipv4 destination addressmatch transport source-portmatch transport destination-portmatch interface inputcollect transport tcp flagscollect counter bytescollect counter packetscollect timestamp sys-uptime firstcollect timestamp sys-uptime lastEnd - 建立流程匯出工具
configure terminalflow exporter vrni-exporterdestination <PROXY_IP>transport udp 2055version 9source <INTERFACE_NAME>end - 為每個介面建立流程監視器
configure terminalflow monitor vrni-monitorrecord vrni-recordexporter vrni-exporterend - 設定逾時
configure terminalcache timeout inactive 30cache timeout active 60end - 在入口模式和出口模式下或至少在入口模式下為每個介面設定流程監視器
configure terminalinterface <INTERFACE_NAME>ip flow monitor vrni-monitor inputend