I'm trying to configure NetFlow on Cisco IOS-XE SD-WAN. It seems I can configure NetFlow from vSmart with the following settings:
cflowd-template NETFLOW
template-refresh 60
flow-sampling-interval 1000
collector vpn 3301 address 10.10.10.254 port 2055 transport transport_udp
!
site-list SITE
<snip>
cflowd-template VPN3301_netflow
It also seems possible to configure NetFlow on the SD-WAN router side with settings like these:
flow monitor sdwan_flow_monitor
description monitor flows for vManage and external collectors
exporter sdwan_flow_exporter_0
exporter sdwan_flow_exporter_1
cache timeout inactive 10
cache timeout active 60
cache entries 80000
record sdwan_flow_record-002
flow exporter sdwan_flow_exporter_0
description export flow and application visibility records to vManage
destination local sdwan
mtu 1280
transport udp 5458
export-protocol ipfix
option drop-cause-table
!
flow exporter sdwan_flow_exporter_1
description export flow records to collector
destination 10.10.10.254 vrf 3301
mtu 1280
transport udp 2055
export-protocol ipfix
template data timeout 60
!
What are the differences between these two configurations?