天天看点

华为交换机抓包命令

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服务器软件

华为交换机抓包命令

抓包后保存的内容

华为交换机抓包命令

继续阅读