1 启动ftp service
2 交换机开启抓包任务
capture-packet interface GigabitEthernet 0/0/20 vlan 112 # 指定接口跟vlan destination ftp-server 192.168.0.107 username pengxiao password 123456 file tttest.cap #传到ftp 服务器 time-out 30 #抓包时间30s
3 成功之后会有如下信息
------------------capture report-----------------------
file: tttest.cap(ftp 192.168.0.107)
capture: interface GigabitEthernet0/0/20
acl: -
vlan: 112 cvlan: -
car: 64kbps timeout: 30s
packets: 100 (expected) 100 (actual)
length: 128 (expected)
4 * 目前抓包只支持接口in方向的抓包
FTP服务器软件

抓包后保存的内容

本文介绍了如何启动FTP服务,并在交换机上配置抓包任务,捕获接口GigabitEthernet0/0/20上VLAN112的数据包,目标为FTP服务器192.168.0.107。抓包文件tttest.cap通过FTP传输至服务器,设置超时时间为30秒,最终成功抓取100个包。请注意,目前仅支持接口入方向的抓包。
4193

被折叠的 条评论
为什么被折叠?



