H3C的端口镜像流程

H3C的端口镜像流程:

(1)mirroring-group 2 local 创建本地镜像组“2”;

[TST_LAB]mirroring-group 2 local

(2)mirroring-group 2 mirroring-port Eth1/0/1 both 将Eth1/0/1端口划到镜像组2下,作为源端口,(both)镜像所有流量,一次最多镜像9个口,可分批镜像;

[TST_LAB]mirroring-group 2 mirroring-port Eth1/0/1 to Eth1/0/2  Eth1/0/3 Eth1/0/4 Eth1/0/5 Eth1/0/6 Eth1/0/7 Eth1/0/8 Eth1/0/9 both

(3)mirroring-group 2 monitor-port GigabitEthernet 1/0/26 将G 1/0/26划到镜像组2下,作为目的端口,一个镜像组中只能存在一个目的端口;

[TST_LAB]mirroring-group 2 monitor-port GigabitEthernet 1/0/26

以下内容为查看配置情况命令:
display interface brief 查看端口的使用情况(是否上线)

[TST_LAB]display interface brief
 
The brief information of interface(s) under route mode:
Link: ADM - administratively down; Stby - standby
Protocol: (s) - spoofing
Interface            Link Protocol Main IP         Description
NULL0                UP   UP(s)    --
Vlan1                UP   UP       --
Vlan400              UP   UP       172.20.192.2

The brief information of interface(s) under bridge mode:
Link: ADM - administratively down; Stby - standby
Speed or Duplex: (a)/A - auto; H - half; F - full
Type: A - access; T - trunk; H - hybrid
Interface            Link Speed   Duplex Type PVID Description
Eth1/0/1             UP   100M(a) F(a)   A    400
Eth1/0/2             UP   100M(a) F(a)   A    1588
Eth1/0/3             UP   100M(a) F(a)   A    1
Eth1/0/4             UP   100M(a) F(a)   A    500
Eth1/0/5             DOWN auto    A      A    1
Eth1/0/6             DOWN auto    A      A    1
Eth1/0/7             DOWN auto    A      A    1
Eth1/0/8             DOWN auto    A      A    1
Eth1/0/9             UP   100M(a) F(a)   A    400
Eth1/0/10            DOWN auto    A      A    1
Eth1/0/11            DOWN auto    A      A    1
Eth1/0/12            DOWN auto    A      A    1
Eth1/0/13            DOWN auto    A      A    1
Eth1/0/14            DOWN auto    A      A    1
Eth1/0/15            UP   100M(a) F(a)   A    500
Eth1/0/16            UP   100M(a) F(a)   A    800
Eth1/0/17            UP   100M(a) F(a)   A    400
Eth1/0/18            DOWN auto    A      A    1
Eth1/0/19            UP   100M(a) F(a)   A    1588
Eth1/0/20            UP   100M(a) F(a)   A    1588
Eth1/0/21            UP   100M(a) F(a)   A    1
Eth1/0/22            UP   100M(a) F(a)   A    400
Eth1/0/23            UP   100M(a) F(a)   A    400
Eth1/0/24            UP   100M(a) F(a)   A    800
GE1/0/25             DOWN auto    A      A    1
GE1/0/26             DOWN auto    A      A    1
GE1/0/27             DOWN auto    A      A    1
GE1/0/28             DOWN auto    A      A    1

display mirroring-group all 查看所有镜像

[TST_LAB]display mirroring-group all
mirroring-group 1:
    type: local
    status: active
    mirroring port:
        Ethernet1/0/1  both
        Ethernet1/0/2  both
        Ethernet1/0/3  both
        Ethernet1/0/4  both
        Ethernet1/0/5  both
        Ethernet1/0/6  both
        Ethernet1/0/7  both
        Ethernet1/0/8  both
        Ethernet1/0/9  both
        Ethernet1/0/10  both
        Ethernet1/0/11  both
        Ethernet1/0/12  both
        Ethernet1/0/13  both
        Ethernet1/0/14  both
        Ethernet1/0/15  both
        Ethernet1/0/16  both
        Ethernet1/0/17  both
        Ethernet1/0/18  both
        Ethernet1/0/19  both
        Ethernet1/0/20  both
        Ethernet1/0/21  both
        Ethernet1/0/22  both
        Ethernet1/0/23  both
        Ethernet1/0/24  both
    mirroring CPU:
    monitor port: GigabitEthernet1/0/25
mirroring-group 2:
    type: local
    status: active
    mirroring port:
        Ethernet1/0/1  both
        Ethernet1/0/2  both
        Ethernet1/0/3  both
        Ethernet1/0/4  both
        Ethernet1/0/5  both
        Ethernet1/0/6  both
        Ethernet1/0/7  both
        Ethernet1/0/8  both
        Ethernet1/0/9  both
        Ethernet1/0/10  both
        Ethernet1/0/11  both
        Ethernet1/0/12  both
        Ethernet1/0/13  both
        Ethernet1/0/14  both
        Ethernet1/0/15  both
        Ethernet1/0/16  both
        Ethernet1/0/17  both
        Ethernet1/0/18  both
        Ethernet1/0/19  both
        Ethernet1/0/20  both
        Ethernet1/0/21  both
        Ethernet1/0/22  both
        Ethernet1/0/23  both
        Ethernet1/0/24  both
    mirroring CPU:
    monitor port: GigabitEthernet1/0/26

display counters ra outbound in 查看交换机端口的输出数据量

<TST_LAB>display counters ra outbound in
Interface           Total(pkts/sec)   Broadcast(pkts/sec)   Multicast(pkts/sec)
Eth1/0/1                          4                    --                    --
Eth1/0/2                          0                    --                    --
Eth1/0/3                          9                    --                    --
Eth1/0/4                          0                    --                    --
Eth1/0/5                          7                    --                    --
Eth1/0/6                         10                    --                    --
Eth1/0/9                          1                    --                    --
Eth1/0/10                         4                    --                    --
Eth1/0/11                         7                    --                    --
Eth1/0/12                         3                    --                    --
Eth1/0/13                         4                    --                    --
Eth1/0/14                         5                    --                    --
Eth1/0/15                         0                    --                    --
Eth1/0/16                         0                    --                    --
Eth1/0/17                         1                    --                    --
Eth1/0/19                         0                    --                    --
Eth1/0/20                         0                    --                    --
Eth1/0/21                         1                    --                    --
Eth1/0/22                         1                    --                    --
Eth1/0/23                         3                    --                    --
Eth1/0/24                         0                    --                    --
GE1/0/25                         81                    --                    --
GE1/0/26                         81                    --                    --

 Overflow: more than 14 decimal digits.
       --: not supported.

display counters ra inbound in 端口输进的流量

<TST_LAB>display counters ra inbound in
Interface           Total(pkts/sec)   Broadcast(pkts/sec)   Multicast(pkts/sec)
Eth1/0/1                          3                    --                    --
Eth1/0/2                          0                    --                    --
Eth1/0/3                          0                    --                    --
Eth1/0/4                          0                    --                    --
Eth1/0/5                          3                    --                    --
Eth1/0/6                          2                    --                    --
Eth1/0/9                          0                    --                    --
Eth1/0/10                         0                    --                    --
Eth1/0/11                         7                    --                    --
Eth1/0/12                         0                    --                    --
Eth1/0/13                         1                    --                    --
Eth1/0/14                         3                    --                    --
Eth1/0/15                         0                    --                    --
Eth1/0/16                         0                    --                    --
Eth1/0/17                         0                    --                    --
Eth1/0/19                         0                    --                    --
Eth1/0/20                         0                    --                    --
Eth1/0/21                         8                    --                    --
Eth1/0/22                         2                    --                    --
Eth1/0/23                         2                    --                    --
Eth1/0/24                         0                    --                    --
GE1/0/25                          0                    --                    --
GE1/0/26                          0                    --                    --

 Overflow: more than 14 decimal digits.
       --: not supported.
  • 1
    点赞
  • 15
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值