文档详情

交换机端口镜像配置大全【汇集22个各种品牌交换机】.docx

发布:2017-12-19约1.12万字共10页下载文档
文本预览下载声明
交换机端口镜像配置大全【汇集22个各种品牌交换机】1、思科(CISCO)交换机1.1配置镜像(SPAN)端口Switch(config)# monitor session 1 source interface fastethernet 4/10Switch(config)# monitor session 1 filter vlan 57Switch(config)# monitor session 1 destination interface fastethernet 4/15如果想释放该SPAN 任务,输入如下命令:Switch(config)# no monitor session 1以下语句显示如何检验SPAN 任务的配置结果:Switch# show monitor session 2在配置镜像端口(SPAN)过程中,还应考虑到数据流量过大时,设备的处理速度及端口数据缓存的大小,要尽量减少被监控数据包的丢失。1.2 Catalyst 2550/2950/3550/3560/3560-E/3570-E旧交换机系统命令:Switch(config)# int fa0/1Switch(config-if)# port monitor fastEthernet0/2新交换机系统命令:Switch show interfacesSwitch enablePassword: ciscoSwitch# configure terminalSwitch(config)# monitor session 1 source interface fastethernet 0/17Switch(config)# monitor session 1 destination interface fastethernet 0/2Switch(config)# endSwitch# show monitor session 1 --查看镜像Switch# no monitor session 1 --清空镜像Switch# show running-config --查看运行配置Switch# copy running-config startup-config --保存到配置文件如果用 display mirror 命令看到ingress:disabled,说明划分了VLAN,源数据中包含了目的端口所在的VLAN。假设目的端口在VLAN1:Switch(config)# monitor session 1 filter vlan 1或者Switch(config)# monitor session 1 destination interface fasternet 0/20 ingress vlan 11.3 Catalyst 4000/4500/4900进入配置模式:Switch# enableSwitch# password cisco --默认为ciscoSwitch# configure terminal举例配置: FastEthernet2/3为源端口,FastEthernet5/48为目的端口Switch(config)# monitor session 1 source interface fa 2/3 (rx|tx|both)Switch(config)# monitor session 1 destination interface fa 5/48当源端口是trunk interface 时,监控VLAN 1-5 和VLAN 9Switch(config)# monitor session 2 fiter vlan 1-5,9当监控FastEthernet 4/10是trunk interface 带着VLAN 1-1005,如果只想监控VLAN57的数据,fastethernet 4/15为目的端口Switch(config)# monitor session 1 source interface fastethernet 4/10Switch(config)# monitor session 1 filter vlan 57Switch(Config)# monitor session 1 destination interface fastethernet 4/151.4 Cisco catylist2820有2 个菜单选项先进入menu 选项,enable port monitor进入cli 模式,enconf termInterface fast 0/x --镜像口port monitor fast 0/x --被镜像口exitwr2、华为交换机2.1 华为NE803/0/2的数据镜像到3/0/0 和3/0/1中NE
显示全部
相似文档