思科交换机抓包

monitor session 1 source interface fastEthernet 0/10, GigabitEthernet 0/2 both
// 监听原地接口,可以指定多个接口作为数据源,both表示接受和发送都包含
monitor session 1 destination interface fastEthernet 0/1
// 数据发送接口,数据目的接口,直接接到电脑开始抓有线网卡的接口

// 查看monitor状态
Switch#show monitor
Session 1
---------
Type : Local Session
Source Ports :
Both : Fa0/10,Gi0/2
Destination Ports : Fa0/1
Encapsulation : Native
Ingress : Disabled

原文地址:https://www.cnblogs.com/djoker/p/6705164.html