VMware Aria Operations for Networks 中,可以为 Cisco Nexus 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