Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Enable Passive Monitoring on Ethernet Interfaces

date_range 20-Dec-24

Learn how to configure an interface in passive monitoring mode to drop packets destined for the router, stop transmissions, and enable monitoring for IPv4 with specific statements, while using port mirroring for IPv6.

When you configure an interface in passive monitoring mode, the Packet Forwarding Engine drops packets from that interface destined for the router. This mode prevents the Routing Engine from transmitting any packets through that interface. Packets received from the monitored interface can be forwarded to monitoring interfaces. If you add the passive-monitor-mode statement in the configuration:

  • Gigabit and Fast Ethernet interfaces can support both per-port passive monitoring and per-VLAN passive monitoring. The destination MAC filter on the receive port of the Ethernet interfaces is disabled.

  • Ethernet encapsulation options are not allowed.

  • Ethernet interfaces do not support the stacked-vlan-tagging statement for both IPv4 and IPv6 packets in passive monitor mode.

To enable packet flow monitoring on Ethernet interfaces:

  1. In configuration mode, navigate to the [edit interfaces interface-name] hierarchy level.
    content_copy zoom_out_map
    [edit]
    user@host# edit interfaces interface-name
    
  2. Add the passive-monitor-mode statement.
    content_copy zoom_out_map
    [edit interfaces interface-name] 
    user@host# set passive-monitor-mode 
    

For IPv4 monitoring services interfaces, enable packet flow monitoring by including the family statement at the [edit interfaces mo-fpc/pic/port unit logical-unit-number] hierarchy level, specifying the inet option:

  1. In configuration mode, navigate to the [edit interfaces mo-fpc/pic/port unit logical-unit-number] hierarchy level.

    content_copy zoom_out_map
    [edit]
    user@host# edit interfaces mo-fpc/pic/port unit logical-unit-number 
    
  2. Add the passive-monitor-mode statement.

    content_copy zoom_out_map
    [edit interfaces mo-fpc/pic/port unit logical-unit-number] 
    user@host# set family inet 
    

For conformity with the cflowd record structure, you must add the receive-options-packets and receive-ttl-exceeded statements at the [edit interfaces mo-fpc/pic/port unit logical-unit-number family inet] hierarchy level:

  1. In configuration mode, navigate to the [edit interfaces mo-fpc/pic/port unit logical-unit-number family inet] hierarchy level.

    content_copy zoom_out_map
    [edit]
    user@host# edit interfaces mo-fpc/pic/port unit logical-unit-number family inet
    
  2. Add the receive-options-packets and receive-ttl-exceeded statements.

    content_copy zoom_out_map
    [edit interfaces mo-fpc/pic/port unit logical-unit-number family inet] 
    user@host# set receive-options-packets 
    user@host# set receive-ttl-exceeded 
    

IPv6 passive monitoring is not supported on monitoring services PICs. A user must configure port mirroring to forward the packets from the passive monitored ports to other interfaces.

To configure port mirroring, add the port-mirroring statement at the [edit forwarding-options] hierarchy level.

For the monitoring services interface, you can configure multiservice physical interface properties. For more information, see Configuring Multiservice Physical Interface Properties and the Junos OS Services Interfaces Library for Routing Devices.

footer-navigation