Juniper EX port mirror

I have covered a deal of topics across JUNOS but now it is time to look at switch traffic capturing. It is possible in IOS with some simple monitor commands and it is rather straight forward on JUNOS. Now, I will get to the SRX when I figure it out. The branch SRX’s are a little different due to the fact there isn’t a full switching feature set in the current code. Now, time to get some configuration out.

[edit ethernet-switching-options analyzer port-mirror]
[email protected]# show
input {
    ingress {
        interface ge-0/1/0.0;
    }
    egress {
        interface ge-0/1/0.0;
    }
}
output {
    interface {
        ge-0/0/0.0;
    }
}

It is pretty simple configuration and you can use your favorite packet capture software to achieve your packet capture.

set ethernet-switching-options analyzer port-mirror input ingress interface ge-0/1/0.0
set ethernet-switching-options analyzer port-mirror input egress interface ge-0/1/0.0
set ethernet-switching-options analyzer port-mirror output interface ge-0/0/0.0

Enjoy! Another feature of the EX-2200 discovered.

Leave a Reply

Your email address will not be published. Required fields are marked *

*