??Hi,

Here is some example of using IPFIX with classifier tables.

# Create classifier table for IPv4 with 2 sessions
classify table mask l3 ip4 src dst proto l4 src_port dst_port
classify session table-index 0 match l3 ip4 src 192.168.11.66 dst 192.168.11.33 
proto 6 l4 src_port 11111 dst_port 22222
classify session table-index 0 match l3 ip4 src 192.168.12.66 dst 192.168.11.66 
proto 6 l4 src_port 22222 dst_port 11111

# Create classifier table for IPv6 with 1 session
classify table mask l3 ip6 src dst
classify session table-index 1 match l3 ip6 src 1::66 dst 1::33

# Assign classifier tables to interfaces for flow statistics collection
set flow classify interface GigabitEthernet0/8/0 ip4-table 0
set flow classify interface GigabitEthernet0/9/0 ip4-table 0
set flow classify interface GigabitEthernet0/8/0 ip6-table 1

# Configure interfaces
set int state GigabitEthernet0/8/0 up
set int state GigabitEthernet0/9/0 up?
set int ip addr GigabitEthernet0/8/0 192.168.11.33/24
set int ip addr GigabitEthernet0/9/0 192.168.12.33/24
set int ip addr GigabitEthernet0/8/0 1::33/64

# Configure IPFIX exporter
set ipfix exporter collector 192.168.11.66 src 192.168.11.33

# Configure stream that will be used for sending flow statistics present in 
classifier tables
set ipfix classify stream domain 7 src-port 12345

# Tell IPFIX what classifier tables should be used for exporting flow statistics
ipfix classify table add 0 ip4 tcp
ipfix classify table add 1 ip6 tcp

Regards,
Juraj Sloboda


________________________________
From: vpp-dev-boun...@lists.fd.io <vpp-dev-boun...@lists.fd.io> on behalf of 
Dave Barach (dbarach)
Sent: Monday, April 10, 2017 14:38
To: Alex Salig; vpp-dev
Subject: Re: [vpp-dev] A Simple Configuration Sample for IPFIX test

The first IP address is that of the IPFIX collector: the IPFIX udp datagram dst 
IP address. The second IP address is the IPFIX udp datagram src IP address.

The (optional) fib ID is included so you can route IPFIX tables through a 
non-default FIB.

The (optional) udp-checksum parameter directs vpp to compute a valid udp 
checksum. This is an expensive - and just about marginally useful - operation. 
By default, the UDP checksum will be set to zero.

Thanks... Dave

From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On 
Behalf Of Alex Salig
Sent: Monday, April 10, 2017 8:24 AM
To: vpp-dev <vpp-dev@lists.fd.io>
Subject: [vpp-dev] A Simple Configuration Sample for IPFIX test

Hi,
I search through VPP website and mailing list, but I didn't find a simple 
configuration sample for IPFIX test.
I wasn't able to understand the configuration from command description (for 
example in "set ipfix exporter collector <ip4-address> [port <port>] src 
<ip4-address> [fib-id <fib-id>] [path-mtu <path-mtu>] [template-interval 
<template-interval>] [udp-checksum]" what is the first IP address and what is 
the second one? or what is the fib-id?)
Thanks in advance
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to