如何配置端口镜像和流镜像

如何配置端口镜像和流镜像
配置端口镜像
端口镜像就是将被监控端口上的数据复制到指定的观察端口,对数据进行分析和监视。

首先要配置观察端口:

[Quidway] observe-port 1 interface gigabitethernet1/0/3然后配置端口镜像:

[Quidway] interface gigabitethernet 1/0/0
[Quidway-GigabitEthernet1/0/0] port-mirroring to observe-port 1 inbound支持出方向(outbound)或入方向(inbound)及双向流(both)。

配置流镜像
流镜像就是将流镜像端口上的特定数据复制到指定的观察端口或CPU进行分析和监视。

首先也是在全局模式下将一个端囗配置成观察端囗:

[Quidway] observe-port 1 interface gigabitethernet1/0/3然后再配置ACL将需要镜像的流匹配出来:
acl number 3000
rule 5 permit ip
#
traffic classifier 1 operator and precedence 5
if-match 5 acl 3000
#
traffic behavior 1
mirroring observing-port 1
#
traffic policy 1
classifier 1 behavior 1
最后进入此流进入或出去的端囗下发镜像规则:

[Quidway-GigabitEthernet3/0/3]traffic-policy 1 inbound支持出流量(outbound)和入流量(inbound)。

相关文档
最新文档