VMware Aria Operations for Networks 中,可以為 Cisco 9000 系列交換器設定 NetFlow 收集器。

以下是 Cisco Nexus 9000 的一些裝置命令範例:

  1. 啟用 NetFlow 功能

    configure terminal

    feature netflow

    end

  2. 建立流程記錄

    configure terminal

    flow record vrni-record

    match ipv4 protocol

    match ipv4 source address

    match ipv4 destination address

    match transport source-port

    match transport destination-port

    match interface input

    collect transport tcp flags

    collect counter bytes

    collect counter packets

    collect timestamp sys-uptime first

    collect timestamp sys-uptime last

    End

  3. 建立流程匯出工具

    configure terminal

    flow exporter vrni-exporter

    destination <PROXY_IP>

    transport udp 2055

    version 9

    source <INTERFACE_NAME>

    end

  4. 為每個介面建立流程監視器

    configure terminal

    flow monitor vrni-monitor

    record vrni-record

    exporter vrni-exporter

    end

  5. 設定逾時

    configure terminal

    cache timeout inactive 30

    cache timeout active 60

    end

  6. 在入口模式和出口模式下或至少在入口模式下為每個介面設定流程監視器

    configure terminal

    interface <INTERFACE_NAME>

    ip flow monitor vrni-monitor input

    end