pica8 交換機鏡像網口的配置流程


為了突破自己,接受了服務器環境搭建的任務,一個拿着一份工資卻干着三份職業的工作。

環境需求:

  有兩台服務器連接在交換機上。暫且較AServer、BServer。AServer通過PICA8交換機與代理服務器相連接(有tcp連接),BServer通過交換機與代理服務器沒有連接。現在需要將客戶端發送給AServer的數據在BServer也要得到一份。這就需要使用到交換機的鏡像網口配置

技術要求:

  會使用Tab鍵,能讀懂英文。

配置步驟:

  首先通過串口線將交換機上的manager口語筆記本相連接,然后使用admin賬號登錄,鍵入pica8密碼。使用Tab鍵查看所有命令及意義。這里直接寫出配置命令:

  1.首先配置一個鏡像網口:

1 set interface ethernet-switching-options analyzer 111 output ge-1/1/1
2 commit

  2.其次在配置一個流入網口配置

1 set interface ethernet-switching-options analyzer 111 input ingress ge-1/1/2
2 commit

  3.然后再配置一個流出網口配置

1 set interface ethernet-switching-options analyzer 111 input egress ge-1/1/3
2 commit

  4.最后查看一下狀態:

1 run show analyzer 111

 現在貼出英文的官方文檔:

Configuring Mirroring
  You can configure one (1) mirror to analyze traffic. Configure the source/destination port (input/output port).
  Note: The output (mirroring) port can belong to any VLAN and will not participate in Layer2 or Layer3 forwarding.
Configuring Mirroring to Analyze Traffic
  admin@XorPlus# set interface ethernet-switching-options analyzer 111 input egress ge-1/1/1
  admin@XorPlus# set interface ethernet-switching-options analyzer 111 input ingress ge-1/1/1
  admin@XorPlus# set interface ethernet-switching-options analyzer 111 input egress ge-1/1/2
  admin@XorPlus# set interface ethernet-switching-options analyzer 111 input ingress ge-1/1/2
  admin@XorPlus# set interface ethernet-switching-options analyzer 111 output ge-1/1/3
  admin@XorPlus# commit
  Waiting for merging configuration.
  Commit OK.
  Save done.
  admin@XorPlus# run show analyzer 111
  Analyzer name: 111
  Output interface: <ge-1/1/3>
  Ingress monitored interfaces: <ge-1/1/1><ge-1/1/2>
  Egress monitored interfaces: <ge-1/1/1><ge-1/1/2>
  admin@XorPlus#
Configuring Mirroring Guide
  User can configure a port as a mirroring port, which can analyze the traffic of egress port or ingress port.
Configuring a Port as a Mirroring Port
  When configuring mirroring, user must first configure the port as a mirror.
  admin@XorPlus# set interface ethernet-switching-options analyzer 111 output ge-1/1/1
  admin@XorPlus# commitWaiting for merging configuration.
  Commit OK.
  Save done.
Configuring Mirroring on Egress Port or Ingress Port
  After configuring a port as a mirroring port, user should use it to monitor the flows of egress or ingress.
Configure Monitor the flows of ingress port:
  admin@XorPlus# set interface ethernet-switching-options analyzer 111 input ingress ge-1/1/2
  admin@XorPlus# commit
  Waiting for merging configuration.
  Commit OK.
  Save done.
Configure Monitor the Flows of Egress Port:
  admin@XorPlus# set interface ethernet-switching-options analyzer 111 input egress ge-1/1/3
  admin@XorPlus# commit
  Waiting for merging configuration.
  Commit OK.
  Save done.

 


免責聲明!

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



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