以前對抓包來說,H3C不同型號設備命令也不太一樣,剛才簡單查了一下,從S3100以上,包括S36、S55、S75等,都是如下配置進行抓包(就是先配置一個本地組,然后分別配置monitor port和mirror port):
# 創建本地鏡像組。
<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監控所有報文
------------------------------------------------------------------------
以上為接端口鏡像的配置方法
另還有基於vlan,三層鏡像,可查詢百度