
1、概述
2、目的
3、功能

4、端口镜像应用场景
1、配置源端口(被镜像的端口)
SW(config)#monitor session 1 source interface fastethernet 0/1 both
#端口后的参数:both 为双向流量,rx 为进端口的流量,tx 为出端口的流量2、配置目的端口(镜像端口)
SW(config)#monitor session 1 destination interface fastethernet 0/101、流程
VSPAN:基本和SPAN相同,只是接口好变成了 VLAN号,而且只能镜像接收的流量
2、配置
#在交换机1上创建RSPAN专用的vlan
SW1(config)#vlan 10#定义该VLAN为RSPAN VLAN
SW1(config-vlan)#remote-span#配置源端口(被镜像的端口)
SW1(config)#monitor session 1 source interface fastethernet 0/1 both#配置源交换机的目标端口(这里是VSPAN)目标端口为vlan端口
SW1(config)#monitor session 1 destination int vlan 10#在交换机2上创建RSPAN专用的vlan
SW2(config)#vlan 10#定义该VLAN为RSPAN VLAN
SW2(config-vlan)#remote-span#配置目标交换机源端口
SW2(config)#monitor session 1 source remote vlan 10#配置目标交换机的目标端口
SW2(config)#monitor session 1 destination int f0/10