Chinaunix首页 | 论坛 | 博客
  • 博客访问: 173117
  • 博文数量: 59
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 580
  • 用 户 组: 普通用户
  • 注册时间: 2009-01-21 06:15
文章分类

全部博文(59)

文章存档

2011年(1)

2010年(1)

2009年(57)

我的朋友

分类: 系统运维

2009-02-19 08:20:21

理解端口镜像功能
假设交换机是宽带小区城域网中的一台楼道交换机,PC1(协议分析器)连接在交换机的0/5口;住户PC2连接在交换机的0/15口。现发现某些用户上网速度很慢,经过调查,PC2所连接端口的数据流量很大,现决定对PC2所连接端口进行流量分析。
通过交换机端口镜像技术实现对交换机某端口流量进行分析。
第一步:指定PC2连接的端口0/15为源端口(也叫被监控口),输入如下代码:
switch(config)#monitor session 1 source interface fastethernet 0/15 both
  同时监控端口改善和接收的流量
验证测试:
switch#show monitor session 1
session:1
source ports:
rx only :none
tx only : none
both : fa 0/15
destination ports : none
第二步:指定PC1(协议分析器)连接在交换机的0/5口为目的口(也叫监控口),输入如下代码:
switch(config)#monitor session 1 destination interface fastethernet 0/15
指定交换机的0/5端口为目的口(也叫监控口)
验证测试:
switch#show monitor session 1
session : 1
source ports:
rx only : none
tx only : none
both : fa0/15
destination ports : fa 0/5
 
 
清空交换机原有端口镜像配置,代码如下:
switch(config)#no monitor session 1
 
 
rx 指接收的流量,tx 指发送的流量,both 指双向流量)
阅读(585) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~