
Step-by-Step
Procedure
To configure sFlow technology:
1.
Configure the IP address of the collector:
[edit protocols sflow]
user@switch#
set
collector
10.204.32.46
NOTE:
You can configure a maximum of 4 collectors.
2.
Configure the UDP port of the collector. The default UDP port assigned is 6343.
[edit protocols sflow]
user@switch#
set collector
udp-port
5600
3.
Enable sFlow technology on a specific interface:
[edit protocols sflow]
user@switch#
set
interfaces
ge-0/0/0
NOTE:
You cannot enable sFlow technology on a Layer 3 VLAN-tagged
interface.
You cannot enable sFlow technology on a link aggregation group (LAG)
interface--that is, an aggregated Ethernet interface with a name such
as ae0. You can enable sFlow technology on the member interfaces
that make up the LAG.
4.
Specify how often the sFlow agent polls the interface:
[edit protocols sflow]
user@switch#
set
polling-interval
20
NOTE:
The polling interval can be specified as a global parameter also.
Specify 0 if you do not want to poll the interface.
5.
Specify the rate at which packets must be sampled:
[edit protocols sflow]
user@switch#
set
sample-rate
1000
Results
Check the results of the configuration:
[edit protocols sflow]
user@switch# show
polling-interval 20;
Copyright © 2010, Juniper Networks, Inc.
3582
Complete Software Guide for Junos
®
OS for EX Series Ethernet Switches, Release 10.3
Summary of Contents for JUNOS OS 10.3 - SOFTWARE
Page 325: ...CHAPTER 17 Operational Mode Commands for System Setup 229 Copyright 2010 Juniper Networks Inc ...
Page 1323: ...CHAPTER 56 Operational Mode Commands for Interfaces 1227 Copyright 2010 Juniper Networks Inc ...
Page 2841: ...CHAPTER 86 Operational Commands for 802 1X 2745 Copyright 2010 Juniper Networks Inc ...
Page 3367: ...CHAPTER 113 Operational Mode Commands for CoS 3271 Copyright 2010 Juniper Networks Inc ...
Page 3435: ...CHAPTER 120 Operational Mode Commands for PoE 3339 Copyright 2010 Juniper Networks Inc ...
Page 3529: ...CHAPTER 126 Operational Mode Commands for MPLS 3433 Copyright 2010 Juniper Networks Inc ...