Junos OS

 View Only
last person joined: yesterday 

Ask questions and share experiences about Junos OS.

Need advice on 1:N port mirroring on EX2300T switch

  • 1.  Need advice on 1:N port mirroring on EX2300T switch

    Posted 11-14-2024 18:52

    Using the below config I wanted to mirror port ge-0/1/0.0 to ge-0/1/1.0 and ge-0/1/2.0.
    The commands used are:

    set forwarding-options analyzer MyCapture1 input ingress interface ge-0/1/0.0
    set forwarding-options analyzer MyCapture1 input egress interface ge-0/1/0.0
    set forwarding-options analyzer MyCapture1 output vlan 999
    set forwarding-options port-mirroring instance inst1 family ethernet-switching output vlan 999              
    set vlans vlan999 vlan-id 999
    set interfaces ge-0/1/1 unit 0 family ethernet-switching vlan members 999
    set interfaces ge-0/1/2 unit 0 family ethernet-switching vlan members 999
    set firewall family ethernet-switching filter f1 term t1 from interface ge-0/1/0.0
    set firewall family ethernet-switching filter f1 term t1 then port-mirror-instance inst
    set interfaces ge-0/1/1 unit 0 family ethernet-switching vlan members default
    set interfaces ge-0/1/2 unit 0 family ethernet-switching vlan members default
    set forwarding-options analyzer MyCapture1 output next-hop-group nhg1
    set forwarding-options next-hop-group nhg1 group-type layer-2
    set forwarding-options next-hop-group nhg1 interface ge-0/1/1.0
    set forwarding-options next-hop-group nhg1 interface ge-0/1/2.0

    Will it honour mirroring on layer2 next-hop-group nhg1?
    or should I add port numbers ge-0/1/1.0 and ge-0/1/2.0 to vlan 999?

    I followed the doc: 1:N Port Mirroring to Multiple Destinations on Switches | Junos OS | Juniper Networks




    ------------------------------
    Rohit Patil
    ------------------------------