lihanchuan125 发表于 2018-7-21 12:59:05

Cisco端口镜像配置

  一、所需工具:GNS3、Sniffer、VPCS
  二、实验拓扑:
http://www.joysin.net/wp-content/uploads/2010/10/wps_clip_image3531_thumb.png
说明:此实验PC1和Server使用VPCS来模拟,PC2使用真实机桥接到环回网卡LooBack1,且真实机上已安装Sniffer抓包工具。  配置很简单,就两条命令:
  SW1(config)#monitor session 1 source interface f0/1
  SW1(config)#monitor session 1 destination interface f0/2
  查看monitor session
  SW1#show monitor session 1
http://www.joysin.net/wp-content/uploads/2010/10/wps_clip_image4894_thumb.png
  三、开始抓包
  在此只演示抓ICMP包,也就是常说的ping包。
设置Sniffer过滤器:http://www.joysin.net/wp-content/uploads/2010/10/wps_clip_image28273_thumb.png
PC1 ping Serverhttp://www.joysin.net/wp-content/uploads/2010/10/wps_clip_image3015_thumb.png
显示并解码抓到的数据包:http://www.joysin.net/wp-content/uploads/2010/10/wps_clip_image4676_thumb.png
http://www.joysin.net/wp-content/uploads/2010/10/wps_clip_image24063_thumb.png
  总结,通过配置端口镜像使PC2成功的抓到了PC1与Server之间的数据包。
页: [1]
查看完整版本: Cisco端口镜像配置