| Cisco EPC | monitor capture 定义捕获点与过滤 |
|---|---|
| 华为 | capture-packet 指定接口与过滤 |
| 范围 | 接口入或出方向加条件过滤 |
| 收尾 | 停止抓包后导出并及时清理 |
命令示例
命令示例
# Cisco IOS-XE
monitor capture CAP interface GigabitEthernet0/0 both
monitor capture CAP match ipv4 protocol icmp any any
monitor capture CAP start
monitor capture CAP stop
monitor capture CAP export flash:cap.pcap
!
# 华为
capture-packet interface GigabitEthernet0/0/0 destination-file cap.pcap acl 3000