Junos OS

last person joined: yesterday 

Ask questions and share experiences about Junos OS.
  • 1.  M10i port mirroring (JUNOS 9.3R3.8)

    Posted 08-26-2009 02:39

    Hi All,

     

    Could the port mirroring be function with input interface with vlan-tagging while the output interface without vlan-tagging?

     

    I have tried but doesn't work, am I configure anything wrong?

     

    M10i-1# show interfaces ge-0/0/0
    vlan-tagging;
    unit 501 {
        vlan-id 501;
        family inet {
            filter {
                input MIRROR;
            }
            address 120.0.0.2/30;
        }
    }

    [edit]
    M10i-1# show interfaces ge-0/2/0
    unit 0 {
        family inet {
            address 10.10.10.254/24;
        }
    }

    [edit]
    M10i-1# show forwarding-options
    port-mirroring {
        input {
            rate 1;
        }
        family inet {
            output {
                interface ge-0/2/0.0 {
                    next-hop 10.10.10.244;
                }
            }
        }
    }

    [edit]
    KC-M10i-1# show firewall filter MIRROR
    term T10 {
        then {
            count MIRROR_PKTS;
            port-mirror;
            accept;
        }
    }

     

    ge-0/2/0.0 is connected with a PC(10.10.10.244) using Wireshark to do the packet analysis.

     

    Thanks!!



  • 2.  RE: M10i port mirroring (JUNOS 9.3R3.8)
    Best Answer

    Posted 08-26-2009 02:45

    Hi,

     

    under ge-0/2/0 set Astatic ARP entry for 10.10.10.244:

    set interfaces ge-0/2/0 unit 0 family inet address 10.10.10.254/24 arp 10.10.10.244 mac 00:01:02:03:04:05

     

    Kind Regards

    Michael Pergament



  • 3.  RE: M10i port mirroring (JUNOS 9.3R3.8)

    Posted 08-26-2009 20:45

     Hi and Thanks!!

     

    I know it should be transit traffic only, 

    but I can see the bgp keepalive coming into the interface, none ospf hello packet is seen, is it normal?

     

    Regards



  • 4.  RE: M10i port mirroring (JUNOS 9.3R3.8)

    Posted 08-28-2009 03:21

    Hi,

     

    are you running OSPF on ge-0/0/0? 

     

    Note: if solution works for you please consider to klick on Kudo :).

     

    Kind Regards

    Michael Pergament