Tuesday, May 13, 2014

Simple port mirroring in QFabric


Sometimes is required to check what's exactly happening in each service interface of QFabric and here is when port mirroring comes into play.

Only a few lines can build up this functionality:
set ethernet-switching-options analyzer pmtest input ingress interface nod14:ge-0/0/20.0
set ethernet-switching-options analyzer pmtest input egress interface nod14:ge-0/0/20.0
set ethernet-switching-options analyzer pmtest output interface nod14:ge-0/0/22.0

Once is commited, connect your packet capture, such as a laptop with wireshark installed in it, to the desire port and check in Qfabric that port mirroring is working fine:

root@qfabric# run show analyzer
Analyzer name                    : pmtest
  Output interface               : nod14:ge-0/0/22.0
  Ingress monitored interfaces   : nod14:ge-0/0/20.0
  Egress monitored interfaces    : nod14:ge-0/0/20.0

[edit]
root@qfabric#