17
2019
04
18:18:09

思科(CISCO)交换机配置镜像(SPAN)端口



推荐点击下面图片,通过本站淘宝优惠价购买:

image.png

思科(CISCO)交换机配置镜像(SPAN)端口

  Switch(config)# monitor session 1 source interface fastethernet 4/10

  Switch(config)# monitor session 1 filter vlan 57

  Switch(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/1

  Switch(config-if)# port monitor fastEthernet0/2

  新交换机系统命令:

  Switch> show interfaces

  Switch> enable

  Password: cisco

  Switch# configure terminal

  Switch(config)# monitor session 1 source interface fastethernet 0/17

  Switch(config)# monitor session 1 destination interface fastethernet 0/2

  Switch(config)# end

  Switch# 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 1

  1.3 Catalyst 4000/4500/4900

  进入配置模式:

  Switch# enable

  Switch# password cisco --默认为cisco

  Switch# 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 9

  Switch(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/10

  Switch(config)# monitor session 1 filter vlan 57

  Switch(Config)# monitor session 1 destination interface fastethernet 4/15

  1.4 Cisco catylist2820

  有2 个菜单选项

  先进入menu 选项,enable port monitor

  进入cli 模式,

  en

  conf term

  Interface fast 0/x --镜像口

  port monitor fast 0/x --被镜像口

  exit

  wr


本文链接:https://hqyman.cn/post/581.html 非本站原创文章欢迎转载,原创文章需保留本站地址!

分享到:





休息一下,本站随机推荐观看栏目:


« 上一篇 下一篇 »

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

您的IP地址是: