Configuring sFlow
Configuring sFlow shows how to configure sFlow for the sample Vyatta router configuration. sFlow overview shows this configuration.
Step | Command |
---|---|
Specify the address of the agent. By default, this collector listens for sFlow data on the 6343 UDP port. Note: A Vyatta router supports up to four collectors.
|
|
Set the polling interval to three seconds. Every three seconds, the sFlow agent that is running on the Vyatta router collects port counter data. |
|
Configure the sFlow agent to send the UDP datagrams that contain the collected sFlow information to the default port (6343) of the sFlow collector server at 198.51.100.2. |
|
Specify 512 as the number of packets from which a sample is taken by the sFlow agent. In other words, for every 512 packets that flow through the interface, the sFlow agent selects one packet for analysis. |
|
Commit the configuration. |
|
Save the configuration. |
|
Display the sFlow configuration. The output shows that sFlow was configured, but no statistics were collected. This is because sFlow has not yet been enabled on an interface. |
|
Enable sFlow on the dp0p192p1 interface (sFlow configuration example indicates it as DP1). |
|
Commit the configuration. |
|
Save the configuration. The sFlow agent can now start collecting packet samples and port-counter statistics. |
|
Display the sFlow configuration. The output shows that sFlow is enabled for the dp0p192p1 interface and shows that one sample packet was collected. |
|