-
Bug
-
Resolution: Done
-
Medium
-
None
-
None
-
None
-
Operating system: CentOS 8 running in qemu vm with two e1000 NIC's.
vpp v21.10-release built by root on 3d86a03a2fef47a8b85e3d8b873a54b0 at 2021-10-27T21:42:06
/etc/vpp/startup.conf:
{ nodaemon startup-config /etc/vpp/startup-config log /var/log/vpp/vpp.log full-coredump cli-listen /run/vpp/cli.sock cli-history-limit 100 cli-no-banner poll-sleep-usec 10 gid vpp }
unixapi-trace
{ on }api-segment
{ gid vpp }socksvr
{ default }dpdk {
{ num-rx-queues 2 num-tx-queues 2 }
dev defaultdev 0000:00:04.0
dev 0000:00:05.0
}plugins
{ vat-name-filter \{ }plugin default { disable }
plugin dpdk_plugin.so { enable }
plugin acl_plugin.so { enable }
plugin flowprobe_plugin.so { enable }
plugin nat_plugin.so { enable }
plugin lacp_plugin.so { enable }
plugin arping_plugin.so { enable }
plugin ping_plugin.so { enable }
}/etc/vpp/startup-config:
create sub-interfaces GigabitEthernet0/4/0 10 dot1q 10 exact-match
create sub-interfaces GigabitEthernet0/5/0 20 dot1q 20 exact-match
set interface state GigabitEthernet0/4/0 up
set interface state GigabitEthernet0/5/0 up
set interface state GigabitEthernet0/4/0.10 up
set interface state GigabitEthernet0/5/0.20 up
set interface ip address GigabitEthernet0/4/0.10 10.1.1.254/24
set interface ip address GigabitEthernet0/5/0.20 10.2.2.254/24
set ipfix exporter collector 10.2.2.2 src 10.2.2.254 template-interval 20 path-mtu 1450
flowprobe params record l2 l3 l4 active 20 passive 120
flowprobe feature add-del GigabitEthernet0/4/0.10 ip4
flowprobe feature add-del GigabitEthernet0/5/0.20 ip4Operating system: CentOS 8 running in qemu vm with two e1000 NIC's. vpp v21.10-release built by root on 3d86a03a2fef47a8b85e3d8b873a54b0 at 2021-10-27T21:42:06 /etc/vpp/startup.conf: unix { nodaemon startup-config /etc/vpp/startup-config log /var/log/vpp/vpp.log full-coredump cli-listen /run/vpp/cli.sock cli-history-limit 100 cli-no-banner poll-sleep-usec 10 gid vpp } api-trace { on } api-segment { gid vpp } socksvr { default } dpdk { dev default { num-rx-queues 2 num-tx-queues 2 } dev 0000:00:04.0 dev 0000:00:05.0 } plugins { vat-name-filter \{ } plugin default { disable } plugin dpdk_plugin.so { enable } plugin acl_plugin.so { enable } plugin flowprobe_plugin.so { enable } plugin nat_plugin.so { enable } plugin lacp_plugin.so { enable } plugin arping_plugin.so { enable } plugin ping_plugin.so { enable } } /etc/vpp/startup-config: create sub-interfaces GigabitEthernet0/4/0 10 dot1q 10 exact-match create sub-interfaces GigabitEthernet0/5/0 20 dot1q 20 exact-match set interface state GigabitEthernet0/4/0 up set interface state GigabitEthernet0/5/0 up set interface state GigabitEthernet0/4/0.10 up set interface state GigabitEthernet0/5/0.20 up set interface ip address GigabitEthernet0/4/0.10 10.1.1.254/24 set interface ip address GigabitEthernet0/5/0.20 10.2.2.254/24 set ipfix exporter collector 10.2.2.2 src 10.2.2.254 template-interval 20 path-mtu 1450 flowprobe params record l2 l3 l4 active 20 passive 120 flowprobe feature add-del GigabitEthernet0/4/0.10 ip4 flowprobe feature add-del GigabitEthernet0/5/0.20 ip4
I am trying to setup export of IPFIX on vlan sub interfaces (see config in Environment).
Flow records and "show flowprobe table" contain right mac addresses but in IPFIX data SrcAddr/DstAddr always 0.0.0.0 and wrong Ethernet Type (when sending ICMP packets responses received).
vpp# show flowprobe table
Dumping IPFIX table
3/4 00:16:3e:e3:38:02 76:fd:36:e8:6d:80 0.0.0.0 -> 0.0.0.0 0 0 0
4/3 00:16:3e:e3:38:01 00:16:3e:00:00:01 0.0.0.0 -> 0.0.0.0 0 0 0
tshark -V -i veth1 port 4739
Cisco NetFlow/IPFIX
Version: 10
Length: 158
Timestamp: Mar 2, 2019 16:59:04.000000000 EET
ExportTime: 1551538744
FlowSequence: 9
Observation Domain Id: 1
Set 1 [id=256] (2 flows)
FlowSet Id: (Data) (256)
FlowSet Length: 142
[Template Frame: 1]
Flow 1
InputInt: 3
OutputInt: 4
Packets: 20
[Duration: 200.105883623 seconds (nanoseconds)]
StartTime: Mar 2, 2019 16:55:40.025329813 EET
EndTime: Mar 2, 2019 16:59:00.131213436 EET
Source Mac Address: Xensourc_e3:38:02 (00:16:3e:e3:38:02)
Destination Mac Address: 76:fd:36:e8:6d:80 (76:fd:36:e8:6d:80)
Ethernet Type: 129
SrcAddr: 0.0.0.0
DstAddr: 0.0.0.0
Protocol: IPv6 Hop-by-Hop Option (0)
Octets: 0
SrcPort: 0
DstPort: 0
Is it possible to set up flowprbe for sending correct IPFIX data for vlan sub interfaces?
First I tried vpp 19.01 (see https://lists.fd.io/g/vpp-dev/topic/30186409 ) but the same result with 21.10.
Thanks.