可以通过端口镜像将通过交换的流量镜像到某一个端口中,从而实现数据宝的抓包分析
    loacl span:需要抓取流量的设备,和监控的设备均在同一个交换机

    将源端口e0/0的收发复制到e0/2 both 出入方向 rx接收 tx发送
    monitor session 1 source int e0/0 both
    monitor session 1 destination int e0/2

    rspan:通过trunk实现在远端设备在进行数据镜像,从而可以让监控设备和抓取流量的设备分布在不同的交换机

    连接需要抓取流量的设备
    vlan 999
    int vlan 999
    remote-span

    monitor session 1 source int e0/0 both
    monitor session 1 destination int remote 999

    连接目的监控设备
    monitor session 1 destination int remote 999
    monitor session 1 destination int e0/2