肥肥网络技术博客


IT技术-常见问题解答

肥肥网络技术博客,分享技术干货,总能找到你想要的!

关于端口镜像相关操作

更新时间:2021-11-02 11:36点击:

环境要求:

核心交换机的23口和24 口 连接 服务器的接入交换机

要求:

将核心交换机23 口,24口上的所有流量【进程服务器的流量】镜像到 核心交换的11口,12口,然后在通过11 口和12 口,连接到服务器上,在服务器上来进行监测。

具体过程如下:

#创建 镜像组
 
[HX]mirroring-group 3 local 
 
#将源端口【被监测的端口】加入到 镜像组中,mirroring-port 源 端口,both  双向【进,出方向】
 
[HX]mirroring-group 4 mirroring-port GigabitEthernet 0/0/24 both 
 
#将目的端口【监测端口】加入到  镜像组中,monitor-port  目的端口
 
[HX]mirroring-group 4 monitor-port GigabitEthernet 0/0/10

 
#查看镜像配置

 
[HX]dis mirroring-group all
 
Mirroring group 5:
    Type: Local
    Status: Active
    Mirroring port:
        GigabitEthernet0/0/23  Both
    Monitor port: GigabitEthernet0/0/11
 
Mirroring group 6:
    Type: Local
    Status: Active
    Mirroring port:
        GigabitEthernet0/0/24  Both
    Monitor port: GigabitEthernet0/0/12
 
[HX]
 


官方微信公众号