华为交换机端口镜像配置

更新时间:2023-05-06 02:21:24 阅读: 评论:0

                华为交换机端口镜像配置
端口镜像
通过配置镜像功能,可以将报文复制到特定的目的地进行分析,以进行网络监控和故障定位。
镜像是指将经过指定端口(源端口或者镜像端口)的报文复制一份到另一个指定端口(目的端口或者观察端口)。
配置举例
1、  一对一本地端口镜像(一个监控设备监控一个端口)
obrve-port 1 interface GigabitEthernet1/0/2   // 观察口
#
interface GigabitEthernet1/0/1或者GigabitEthernet1/0/10 (上联口)  //镜像口
 port-mirroring to obrve-port 1 inbound/outbound/both
 
2、多对一端口本地端口镜像(多个监控设备同时监控一个端口)
方法一:(单个配置观察端口)
obrve-port 1 interface GigabitEthernet1/0/2               //观察口1
obrve-port 2 interface GigabitEthernet1/0/3               //观察口2
obrve-port 3 interface GigabitEthernet1/0/4               //观察口3
#
interface GigabitEthernet1/0/1 或者 GigabitEthernet1/0/10 (上联口 )     //镜像口
port-mirroring to obrve-port 1 inbound/outbound/both
 port-mirroring to obrve-port 2 inbound/outbound/both
 port-mirroring to obrve-port 3 inbound/outbound/both
 
方法二:(批量配置观察端口)
obrve-port 1 interface-range GigabitEthernet1/0/2 to GigabitEthernet1/0/4  //端口24为观察口
#
interface GigabitEthernet1/0/1或者 GigabitEthernet1/0/10 (上联口)        //镜像口
 port-mirroring to obrve-port 1 inbound/outbound/both
 
3、一对多端口镜像配置(一个监控设备监控多个端口)
 obrve-port 1 interface GigabitEthernet1/0/4               //观察口
#
interface GigabitEthernet1/0/1                //镜像口1
 port-mirroring to obrve-port 1 inbound/outbound/both
#
interface GigabitEthernet1/0/2                //镜像口2
 port-mirroring to obrve-port 1 inbound/outbound/both
#
interface GigabitEthernet1/0/3                //镜像口3
 port-mirroring to obrve-port 1 inbound/outbound/both
#
注:inboundoutbound可绑定的端口数量要根据设备、或者板卡的型号而定

本文发布于:2023-05-06 02:21:24,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/89/859701.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:端口   监控   镜像   配置   设备   进行   观察   报文
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图