交换机和路由器技术-36-端口镜像

      最后更新:2022-08-04 15:46

      目录

      一、交换机端口镜像

      1.1分类

      1.2 基本概念

      1.3 目的

      1.4 功能

      1.5 实验

      一、交换机端口镜像

      1.1分类

      1. 本地端口镜像

      在一台交换机上

      2.远程端口镜像

      将交换机A的某接口数据镜像到交换机B的某接口上

      1.2 基本概念

      从一个或多个源端口传输数据到指定端口

      1.3 目的

      协助分析一个或多个网络接口流量(IDS入侵检测设备)

      通过将流量镜带到端口来分析流量

      1.4 功能

      流量备份,故障分析,流量备份

      1.5 实验

      当PC1访问PC3时,PC2接收数据流,当PC1映射开关接口F0/5到开关接口F0/2时,可以接收PC1的流

      交换机上配置

      SW1(config)#monitor ?

      event-trace  Tracing of system events

      session      Configure a SPAN session

      SW1(config)#monitor session ?

      <1-2>  SPAN session number

      SW1(config)#monitor session 1 ?

      destination  SPAN destination interface or VLAN

      filter       SPAN filter VLAN

      source       SPAN source interface or VLAN

      SW1(config)#monitor session 1 source ?

      interface  SPAN source interface

      vlan       SPAN source VLAN

      SW1(config)#monitor session 1 source int f0/5 ?

      ,     Specify another range of interfaces

      -     Specify a range of interfaces

      both  Monitor received and transmitted traffic

      rx    Monitor received traffic only

      tx    Monitor transmitted traffic only

      <cr>

      SW1(config)#monitor session 1 source int f0/5 both

      SW1(config)#monitor session 1 d

      SW1(config)#monitor session 1 destination int f0/9

      使用PC1 ping PC3来抓进F0/2

      在实体机上配置

      使用相同的操作配置xshell连接开关

      本文由 在线网速测试 整理编辑,转载请注明出处。

          热门文章

          文章分类