Switching

 View Only
  • 1.  EX4300 Port Mirroring not working

    Posted 10-01-2024 13:42
    Edited by Jodi Meier 10-01-2024 16:46
      |   view attached

    Greetings.  I'm looking for some assistance with setting up port mirroing on an EX4300.  I'm in a pickle because I am not a network guy.  I'm filling in since our network guy left recently.  I have some experience with other platforms, but I am completely new to Junos.  After following all the online documentation I could find I've configured port mirroring the same way all the examples I've looked at have shown, but I'm still getting no traffic on the output port.  I've attached a screenshot of my mirroring config.  The output port is configured as family-ethernet-switching.  Please let me know if you need any more information and I'll do my best to provide.  Thanks



    ------------------------------
    TYLER CRAWFORD
    ------------------------------



  • 2.  RE: EX4300 Port Mirroring not working

    Posted 04-06-2026 05:37

    1) To monitor a specific interface

    set forwarding-options analyzer MIRROR input ingress interface ge-1/0/7.0

    set forwarding-options analyzer MIRROR input egress interface ge-1/0/7.0

    set forwarding-options analyzer MIRROR input ingress interface ae10.0

    set forwarding-options analyzer MIRROR input egress interface ae10.0

    set forwarding-options analyzer MIRROR input ingress interface xe-0/2/3.0

    set forwarding-options analyzer MIRROR input egress interface xe-0/2/3.0

    set forwarding-options analyzer MIRROR input ingress interface xe-1/2/1.0

    set forwarding-options analyzer MIRROR input egress interface xe-1/2/1.0

    OR to monitor an entire VLAN

    set forwarding-options analyzer MIRROR input ingress vlan XXX

    2) set output port, i.e where your laptop will connect to

    set forwarding-options analyzer MIRROR output interface ge-0/0/22.0

    3) On ex4300 with some firmware versions you need to set below command or it will not mirror any packets

    set forwarding-options analyzer MIRROR ratio 1

    Check the session is up

    show analyzer MIRROR

    Chekc stats, mirror packet counter should be increasing and you see wireshark data  on the laptop on port 22

    show analyzer MIRROR statistics

    -------------------------------------------



  • 3.  RE: EX4300 Port Mirroring not working

    Posted 04-06-2026 05:37

    1) To monitor a specific interface

    set forwarding-options analyzer MIRROR input ingress interface ge-1/0/7.0

    set forwarding-options analyzer MIRROR input egress interface ge-1/0/7.0

    set forwarding-options analyzer MIRROR input ingress interface ae10.0

    set forwarding-options analyzer MIRROR input egress interface ae10.0

    set forwarding-options analyzer MIRROR input ingress interface xe-0/2/3.0

    set forwarding-options analyzer MIRROR input egress interface xe-0/2/3.0

    set forwarding-options analyzer MIRROR input ingress interface xe-1/2/1.0

    set forwarding-options analyzer MIRROR input egress interface xe-1/2/1.0

    OR to monitor an entire VLAN

    set forwarding-options analyzer MIRROR input ingress vlan XXX

    2) set output port, i.e where your laptop will connect to

    set forwarding-options analyzer MIRROR output interface ge-0/0/22.0

    3) On ex4300 with some firmware versions you need to set below command or it will not mirror any packets

    set forwarding-options analyzer MIRROR ratio 1

    Check the session is up

    show analyzer MIRROR

    Chekc stats, mirror packet counter should be increasing and you see wireshark data then

    show analyzer MIRROR statistics

    -------------------------------------------