H3C端口镜像-抓包

       之前对抓包来讲,H3C不一样型号设备命令也不太同样,刚才简单查了一下,从S3100以上,包括S3六、S5五、S75等,都是以下配置进行抓包(就是先配置一个本地组,而后分别配置monitor port和mirror port):ide

#  建立本地镜像组。 
<Sysname> system-view 
[Sysname] mirroring-group 1 local 
#  为本地镜像组配置源端口和目的端口。 
[Sysname] mirroring-group 1 mirroring-port Ethernet 1/0/1 Ethernet 1/0/2 both 
[Sysname] mirroring-group 1 monitor-port Ethernet 1/0/3 
#  显示本地镜像组 1 的配置信息。 
[Sysname] display mirroring-group 1 
mirroring-group 1: 
    type: local 
    status: active 
    mirroring port: 
        Ethernet1/0/1  both 
        Ethernet1/0/2  both 
    monitor port: Ethernet1/0/3 
配置完成后,用户能够在Ethernet 1/0/3监控全部报文。spa

相关文章
相关标签/搜索