netflow配置如下:
feature netflow
flow exporter Wanguard-exporter
destination 192.168.2.55
transport udp 2055
source loopback100
version 9
template data timeout 20
option exporter-stats timeout 20
option interface-table timeout 20
flow record Wanguard-record
match ipv4 source address
match ipv4 destination address
match ip protocol
match transport source-port
match transport destination-port
collect transport tcp flags
collect counter bytes
collect counter packets
collect timestamp sys-uptime first
collect timestamp sys-uptime last
flow monitor Wanguard-monitor
record Wanguard-record
exporter Wanguard-exporter
在接口下应用:
N9508(config)# sh run int po1
interface port-channel1
description UP-LINK-IPS
port-channel bfd track-member-link
ip address 10.10.10.2/30
N9508(config-if)# ip flow monitor Wanguard-monitor input
查看配置应用情况:
N9508(config-if)# sh run int po1
interface port-channel1
description UP-LINK-IPS
port-channel bfd track-member-link
ip address 10.10.10.2/30
N9508(config)# sh flow interface
N9508(config)#
接口上应用时没有任何报错,但是实际没有应用上。聚合口上试过,三层物理口上也试过。一样的不报错,然后也应用不上。这是版本:
Software
BIOS: version 05.40
NXOS: version 9.3(4)
BIOS compile time: 01/17/2020
NXOS image file is: bootflash:///nxos.9.3.4.bin