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 - Egress モードと Ingress モード、または少なくとも Ingress モードで各インターフェイスに対するフロー モニターを構成するには、次を実行します。
configure terminalinterface <INTERFACE_NAME>ip flow monitor vrni-monitor inputend