configure ip access-list extended OSPF-FILTER(ACL命名) permit ospf any any end monitor capture CAP(捕获器命名)interface gig0/2/2 both access OSPF-FILTER(匹配ACL) monitor capture CAP start 然后等待两三分钟 monitor capture CAP stop monitor capture CAP export bootflash:OSPF-WAN1.pcap(把抓到的包在flash中生成文件)