一、 端口镜像概念:
Port Mirror( 端口镜像)是用于进行网络性能监测。可以这样理解:在端口 A 和端口 B 之间建立镜像关系,这样,通过端口 A 传输的数据将同时复制到端口 B ,以便于在端口 B 上连接的分析仪或者分析软件进行性能分析或故障判断。
二、端口镜像配置
『环境配置参数』
Server 接在交换机 E0/8 端口,该端口作为镜像端口
『组网需求』
1) 基于端口的镜像
2) 基于流的镜像
2 数据配置步骤
『端口镜像的数据流程』
基于端口的镜像是把被镜像端口的进出数据报文完全拷贝一份到镜像端口,这样来进行流量观测或者故障定位。
【 3026 等交换机镜像】
S2008/S2016/S2026/S2403H/S3026 等交换机支持的都是基于端口的镜像,有两种方法:
方法一
[SwitchA]monitor-port e0/8
[SwitchA]port mirror Ethernet 0/1 to Ethernet 0/2
方法二
[SwitchA]port mirror Ethernet 0/1 to Ethernet 0/2 observing-port Ethernet 0/8
【 8016 交换机端口镜像配置】
[SwitchA] port monitor ethernet 1/0/15
[SwitchA] port mirroring ethernet 1/0/0 both ethernet 1/0/15
也可以通过两个不同的端口,对输入和输出的数据分别镜像
[SwitchA] port monitor ethernet 1/0/15
[SwitchA] port mirroring gigabitethernet 1/0/0 ingress ethernet 1/0/15
[SwitchA] port mirroring gigabitethernet 1/0/0 egress ethernet 2/0/0
如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!
赞17
添加新评论0 条评论