The "pcap trace ..." debug cli shown below is not current. Which vpp release / 
branch are you using?

________________________________
From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> on behalf of Ranadip Das 
<ranadip....@gmail.com>
Sent: Tuesday, February 18, 2020 7:13 PM
To: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io>
Subject: [vpp-dev] tcpdump like feature


Hello all,



Do we have anything similar to "tcpdump -ni <intf> <filter>" in vpp?



I can see two options. But one of them is not working for multi-core. And 
another is not allowing me to capture packets based on a tcpdump filter.



Option # 1

vpp# pcap tx trace on intfc GigabitEthernet0/11/0 file gige_tx.pcap

I am not able to make that work for multi-core use-case. Also, it captures rx 
and tx using different commands.



Optiojn # 2

The other option that I found is creating a span to mirror packets.

vpp# create packet-generator interface p
vpp# packet-generator capture pg0 pcap /tmp/mycap.pcap

vpp# set interface span GigabitEthernet0/11/0 destination pg0

vppctl> set interface state pg0 up

However, I am not able use tcpdump filters in this case.

Any ideas?


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#15457): https://lists.fd.io/g/vpp-dev/message/15457
Mute This Topic: https://lists.fd.io/mt/71384285/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to