基於流鏡像的交換機針對某些流進行鏡像,每個連接都有兩個方向的數據流,對於交換機來説這兩個數據流是要分開鏡像的.。下面YJBYS小編為大家整理了關於H3C交換機端口鏡像配置的方法,希望對你有所幫助。
【3500/3026E/3026F/3050】
一、基於三層流的鏡像
1. 定義一條擴展訪問控制列表
[SwitchA]acl num 100
[SwitchA-acl-adv-101]rule 0 permit ip source 0 destination any
3. 定義一條規則報文源地址為所有源地址目的地址為
[SwitchA-acl-adv-101]rule 1 permit ip source any destination 0
4. 將符合上述ACL規則的報文鏡像到E0/8端口
[SwitchA]mirrored-to ip-group 100 interface e0/8
二、基於二層流的鏡像
1. 定義一個ACL
[SwitchA]acl num 200
2. 定義一個規則從E0/1發送至其它所有端口的數據包
[SwitchA]rule 0 permit ingress interface Ethernet0/1 egress interface Ethernet0/2
3. 定義一個規則從其它所有端口到E0/1端口的數據包
[SwitchA]rule 1 permit ingress interface Ethernet0/2 egress interface Ethernet0/1
4. 將符合上述ACL的數據包鏡像到E0/8
[SwitchA]mirrored-to link-group 200 interface e0/8
【5516/6506/6503/6506R】
目前該三款產品支持對入端口流量進行鏡像
1. 定義鏡像端口
[SwitchA]monitor-port Ethernet 3/0/2
2. 定義被鏡像端口
[SwitchA]mirroring-port Ethernet 3/0/1 inbound
【補充説明】
1. 鏡像一般都可以實現高速率端口鏡像低速率端口,例如1000M端口可以鏡像100M端口,反之則無法實現
2. 8016支持跨單板端口鏡像配置