This article provides information on the sFlow Agent-ID enhancement on EX-Series
Prior to Junos release 10.2, sFlow agent-id was auto-configured on the EX-switch based on the IP addresses on the switch with highest priority given to management interface address (Vme/Me) followed by layer 3 (RVI) interface IP.
The following command is issued to hard-code the desired IP: Switch@juniper # set protocols sflow ? Possible completions: <[Enter]> Execute this command agent-id Sflow agent ip address + apply-groups Groups from which to inherit configuration data + apply-groups-except Don't inherit configuration data from these groups > collector SFLOW collector configuration > interfaces Enable SFLOW on this interface polling-interval Interval between port statistics (0..3600 seconds) sample-rate Sampling rate (100..1048576) source-ip Sflow datagram source ip address > traceoptions Trace options for SFLOW | Pipe through a command Switch@juniper# set protocols sflow agent-id <ip-address> Note:Junos release 10.2 onwards, agent-id can be hard-coded on the switch with the desired IP.
Switch@juniper # set protocols sflow ?
Possible completions: <[Enter]> Execute this command agent-id Sflow agent ip address + apply-groups Groups from which to inherit configuration data + apply-groups-except Don't inherit configuration data from these groups > collector SFLOW collector configuration > interfaces Enable SFLOW on this interface polling-interval Interval between port statistics (0..3600 seconds) sample-rate Sampling rate (100..1048576) source-ip Sflow datagram source ip address > traceoptions Trace options for SFLOW | Pipe through a command
Switch@juniper# set protocols sflow agent-id <ip-address>