| 场景 | 需要验证报文是否到达/离开设备 |
|---|---|
| 适用 | 华为 VRP(部分平台) |
| 命令族 | capture-packet |
华为 VRP
华为 VRP
capture-packet interface GigabitEthernet0/0/1 destination terminal
capture-packet interface GigabitEthernet0/0/1 acl 3000 destination terminal
capture-packet interface GigabitEthernet0/0/1 destination file flash:cap.cap思科 IOS
思科 IOS
monitor capture cap interface GigabitEthernet0/1 both
monitor capture cap match ipv4 any any
monitor capture cap start
monitor capture cap stop
monitor capture cap export flash:cap.pcapH3C Comware
H3C Comware
mirroring-group 1 local
mirroring-group 1 mirroring-port GigabitEthernet1/0/1 both
mirroring-group 1 monitor-port GigabitEthernet1/0/2差异:华为 capture-packet 一条命令带过滤直接输出;思科走 EPC 的 monitor capture 多条命令;H3C 传统方案是镜像组转发给抓包机(部分 Comware 7 型号也支持 packet-capture)。