Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All
     

    Related Documentation

     

    Configuring sFlow Technology

    The sFlow technology is a monitoring technology for high-speed switched or routed networks. sFlow monitoring technology collects samples of network packets and sends them in a UDP datagram to a monitoring station called a collector. You can configure sFlow technology on a device to monitor traffic continuously at wire speed on all interfaces simultaneously. You must enable sFlow monitoring on each interface individually; you cannot globally enable sFlow monitoring on all interfaces with a single configuration statement. Junos OS supports the sFlow technology standard described in RFC 3176, InMon Corporation's sFlow: A Method for Monitoring Traffic in Switched and Routed Networks.

    To configure sFlow features using the CLI:

    1. Configure the IP address and UDP port (optional) of at least one collector:
      [edit protocols sflow]
      user@host# set collector ip-address udp-port port-number

      The default UDP port assigned is 6343.

    2. Enable sFlow technology on a specific interface:
      [edit protocols sflow]
      user@host# set interfaces interface-name

      Note: You cannot enable sFlow technology on a Layer 3 VLAN-tagged interface.

      You cannot enable sFlow technology on a LAG interface (for example ae0), but you can enable sFlow technology on the member interfaces of the LAG (for example, xe-0/0/1).

    3. Specify how often (in seconds) the sFlow agent polls all interfaces at the global level:
      [edit protocols sflow]
      user@host# set polling-interval seconds

      Note: Specify 0 if you do not want to poll the interface.

    4. Specify the rate at which packets are sampled at the global level. For example, configuring a number of 1000 sets a sample rate of 1 in 1000 packets.
      [edit protocols sflow]
      user@host# set sample-rate number
    5. (Optional) You can also configure the polling interval and sample rate at the interface level:
      [edit protocols sflow]
      user@host# set interfaces interface-name polling-interval seconds sample-rate number

      Note: The interface-level configuration overrides the global configuration for the specified interface.

    You can use the following CLI commands to verify and troubleshoot the configurations:

     

    Related Documentation

     

    Modified: 2017-05-23