pjm 发表于 2015-7-9 17:50:57

Cisco交换机流量镜像配置


Cisco交换机流量镜像配置注:本文说明基于接口与流的本地流量镜像配置步骤,仅限于使用命令行模式配置。多个源端口的流量可以镜像到同一个目的端口;一个源端口流量不能镜像到多个目的端口。配置举例部分的红色斜体字为变量参数,需要根据实际情况设定。基本概念Source(源端口):把从源端口经过的流量复制到目的端口;Destination(目的端口):用于连接缓存大师服务器的镜像口,输出从源端口复制过来的流量。网络拓扑
端口镜像需要将G0/0/1口的全部流量镜像到G0/0/2口,即G0/0/1为源端口,G0/0/2为目的端口。配置步骤1、进入配置模式:config t;2、配置镜像会话与源端口:monitor session 2 source interface3、配置镜像会话与目的端口:monitor session 2 destination interface配置举例switch>config tswitch# monitor session 2 sourceinterface G0/0/1 both (设置源端口,镜像可以根据实际情况灵活选择入方向、出方向及全部流量;both,全部流量;rx,入方向流量;tx,出方向流量)switch# monitor session 2 destination interface G0/0/2   (设置目的端口)注:若镜像口位于内网vlan环境中,镜像目的端口命令应加上dot1q的封装switch# monitor session 2 destination interface G0/0/2 encapsulation dot1q

HTTP流镜像    流镜像指将源端口指定的流量复制到目的端口。需要将G0/0/1口的HTTP流量镜像到G0/0/2口,G0/0/1为源端口,G0/0/2为目的端口。注:思科交换机支持流镜像的型号:2960,3560,3750X;软件版本要求:12.2(55)SE4及以后或15.0(1)SE1及以后配置步骤1、进入配置模式:config t;2、配置ACL:access-list3、配置镜像会话与源端口:monitor session 2 source interface4、配置镜像会话与目的端口:monitor session 2 destination interface5、配置镜像会话与流匹配策略:monitor session 2 filter ip access-group   配置举例switch>config tswitch#access-list 111 permit tcp any any eq wwwswitch# monitor session 2 sourceinterface G0/0/1 both (设置源端口,镜像可以根据实际情况灵活选择入方向、出方向及全部流量;both,全部流量;rx,入方向流量;tx,出方向流量)switch# monitor session 2 destination interface G0/0/2   (设置目的端口)
switch# monitor session 2 destination filter access-group 111   (设置目的端口)
页: [1]
查看完整版本: Cisco交换机流量镜像配置