交換機配置端口鏡像


配置端口鏡像

端口鏡像是指設備復制一份從鏡像端口流經的報文,並將此報文傳送到指定的觀察端口進行分析和監控。
配置1:1端口鏡像

將一個鏡像端口的報文復制到一個觀察端口上。例如:將鏡像端口10GE1/0/1入方向的報文復制到觀察端口10GE1/0/2上。
<HUAWEI> system-view
[~HUAWEI] observe-port 1 interface 10ge 1/0/2
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] port-mirroring observe-port 1 inbound/outbound/both(這個命令是將接口的收/發/收發雙向流量都鏡像給服務器的端口)
[*HUAWEI-10GE1/0/1] commit
配置1:N端口鏡像

將一個鏡像端口的報文復制到N個不同的觀察端口上。例如:將鏡像端口10GE1/0/1入方向的報文復制到觀察端口10GE1/0/2、10GE1/0/3上。
<HUAWEI> system-view
[~HUAWEI] observe-port 1 interface 10ge 1/0/2
[*HUAWEI] observe-port 2 interface 10ge 1/0/3
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] port-mirroring observe-port 1 inbound/outbound/both(這個命令是將接口的收/發/收發雙向流量都鏡像給服務器的端口)
[*HUAWEI-10GE1/0/1] port-mirroring observe-port 2 inbound/outbound/both(這個命令是將接口的收/發/收發雙向流量都鏡像給服務器的端口)
[*HUAWEI-10GE1/0/1] commit
配置N:1端口鏡像

將N個鏡像端口的報文復制到同一個觀察端口上。例如:將鏡像端口10GE1/0/1、10GE1/0/2入方向的報文復制到觀察端口10GE1/0/3上。
<HUAWEI> system-view
[~HUAWEI] observe-port 1 interface 10ge 1/0/3
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] port-mirroring observe-port 1 inbound/outbound/both(這個命令是將接口的收/發/收發雙向流量都鏡像給服務器的端口)
[*HUAWEI-10GE1/0/1] quit
[*HUAWEI] interface 10ge 1/0/2
[*HUAWEI-10GE1/0/2] port-mirroring observe-port 1 inbound/outbound/both(這個命令是將接口的收/發/收發雙向流量都鏡像給服務器的端口)
[*HUAWEI-10GE1/0/2] commit

這個命令是將接口的收發雙向流量都鏡像給服務器的端口


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM