searchusermenu
  • 发布文章
  • 消息中心
点赞
收藏
评论
分享
原创

VPP抓包命令

2024-01-02 09:09:52
12
0

抓包命令分两种,一种含vpp trace信息,一种为正常的抓包

1、含trace信息抓包

pcap dispatch trace          pcap dispatch trace [on|off] [max <nn>] [file <name>] [status] [buffer-trace <input-node-name> <nn>]

(1)查看当前抓包状态(可以查看当前具体包数及包文件名)
  pcap dispatch trace status
(2)关闭抓包
  pcap dispatch trace off
(3)开启抓包
  pcap dispatch trace on max 100000 file vpp_capture.pcap buffer-trace dpdk-input 1000

2、普通抓包

pcap trace                    pcap trace rx tx drop off [max <nn>] [intfc <interface>|any] [file <name>] [status] [max-bytes-per-pkt <nnnn>][filter]
其中intfc可以抓指定端口的包,max-bytes-per-pkt可以指定抓的包的最大值,超过的包会截断,还有其他过滤用法参考官方文档的reference一章
(1)查看当前抓包状态(可以查看当前具体包数及包文件名)
    pcap trace status
(2)关闭抓包
    pcap trace off
(3)开启抓包
    pcap trace rx tx max 100000 intfc any file vpp_capture.pcap

0条评论
0 / 1000
钟****梁
1文章数
0粉丝数
钟****梁
1 文章 | 0 粉丝