Manufacturer: Open Vswitch
Models: N/A
Versions: N/A
URL: https://www.openvswitch.org/support/dist-docs-2.5/ovs-vsctl.8.html
Notes: A NetFlow/IPFIX configuration attached to a bridge. Records may be identified by the bridge’s name. The setup below shows the command to setup NetFlow and IPFIX for Open Vswitch.
Configuration steps for NetFlow
Configure bridge br0 to send NetFlow records to UDP port 2055 on host 10.1.13.21 , with an active timeout of 60 seconds:
ovs-vsctl -- set Bridge br0 netflow=@nf
-- --id=@nf create NetFlow targets="10.1.13.21:2055" active-timeout=60
Configuration steps for IPFIX
Configure bridge br0 to send one IPFIX flow record per packet sample to UDP port 4739 on host 10.1.13.21 with Observation Domain ID 123 and Observation Point ID 456, a flow cache active timeout of 1 minute (60 seconds), maximum flow cache size of 13 flows, and flows sampled on output port with tunnel info(sampling on input and output port is enabled by default if not disabled) :
ovs-vsctl -- set Bridge br0 ipfix=@i
-- --id=@i create IPFIX targets="10.1.13.21:4739" obs_domain_id=123 obs_point_id=456 cache_active_timeout=60 cache_max_flows=13
other_config:enable-input-sampling=false other_config:enable- tunnel-sampling=true
Configuration steps for sFlow
Configure bridge br0 to send sFlow records to UDP port 6343 on host 10.1.13.21, with the sFlow agent set to eth1’s IP address, sampling every 64 packets at 10 second intervals and include the first 128 bytes of the packet header.
ovs-vsctl -- set Bridge br0 sflow=@sflow
-- --id=@sflow create sflow agent=eth1
target=””10.1.13.21:6343”” header=128
sampling=64 polling=10