Cisco Catalyst 9300 Configuration

    You can perform Cisco Catalyst 9300 configuration using the following steps:

    flow record NFARecordinput
    match ipv4 source address
    match ipv4 destination address
    match transport source-port
    match transport destination-port
    match ipv4 protocol
    match interface input
    match ipv4 tos
    match flow direction
    collect interface output
    collect counter bytes long
    collect counter packets long
    collect transport tcp flags
    collect timestamp absolute first
    collect timestamp absolute last

    flow exporter NFAExporter
    destination {NETFLOW_SERVER_IP}
    source {LOOPBACK_INTERFACE_NAME}
    transport udp {NETFLOW_SERVER_LISTENER_PORT}
    template data timeout 60

    flow monitor NFAMonitorinput
    exporter NFAExporter
    record NFARecordinput
    cache timeout active 60

    flow monitor NFAMonitoroutput
    exporter NFAExporter
    record NFARecordoutput
    cache timeout active 60

    Enter global configuration mode on the router or MSFC, and issue the following commands for each interface on which you want to enable flow:

    interface {INTERFACE_NAME}
    ip flow monitor NFAMonitorinput input
    ip flow monitor NFAMonitoroutput output