The sFlow agent and sFlow collector must not have the same IP address.
Currently, you can specify at most two sFlow collectors on the device.
The sFlow agent and sFlow collector must be configured with the same version of IP addresses.
Displaying and Maintaining sFlow
To do...
Display sFlow configuration
information (on a distributed
device)
Display sFlow configuration
information (on a distributed
IRF device)
sFlow Configuration Example
Network requirements
Host A and Server are connected to Switch through GigabitEthernet 2/0/1 and GigabitEthernet
2/0/2 respectively.
Host B works as an sFlow collector with IP address 3.3.3.2 and port number 6343, and is
connected to Switch through GigabitEthernet 2/0/3.
GigabitEthernet 2/0/3 belongs to VLAN 1, having an IP address of 3.3.3.1.
Run sFlow agent on Switch, and enable sFlow on GigabitEthernet 2/0/1 to monitor traffic on this
interface. Switch sends sFlow packets through GigabitEthernet 2/0/3 to Host B, which then analyzes
the sFlow packets and displays the results.
Figure 1-1 Network diagram for sFlow configuration
Configuration procedure
# Configure an IP address for the sFlow agent.
<Switch> system-view
Use the command...
display sflow [ slot
slot-number ]
display sflow [ chassis
chassis-number slot
slot-number ]
1-3
Remarks
Available in any view
Available in any view