2) Generate sflow Traffic
Send some sflow traffic to FastNetmon from an external machine – machine with IP 192.168.122.1 and marked with hsflowd in the schema.
From Linux machine with hsflowd installed https://sflow.net/downloads.php we are sending traffic to FastNetMon machine.
Hsflowd has the following configuration:
cat /etc/hsflowd.conf
sflow {
DNSSD=off
polling=10
agentIP=192.168.122.1
sampling.1G=10
collector { ip = 10.10.12.3 udpport=6343 }
pcap { speed = 1- }
tcp {}
}
Now we are ready to feed FastNetMon with some traffic:
#hsflowd -ddd -f /etc/hsflowd.conf
Start it in debug mode to catch any eventual miss-configuration.
When everything is clear you can start in normal mode and use as a traffic generator.
To check it you have to go on FastNetMon machine and look at the fastnetmon_client interface.
You should see some traffic (incoming, outgoing traffic and some counters on them) as bellow:
FastNetMon 1.1.3 master git-38bf681f18f80259337bbb060f7040103416ba8c Pavel Odintsov: fastnetmon.com
IPs ordered by: packets
Incoming traffic 200 pps 1 mbps 0 flows
10.100.100.100 200 pps 1 mbps 0 flows
Outgoing traffic 200 pps 1 mbps 0 flows
192.168.122.1 200 pps 1 mbps 0 flows
Internal traffic 0 pps 0 mbps
Other traffic 0 pps 0 mbps
Screen updated in: 0 sec 225 microseconds
Traffic calculated in: 0 sec 174 microseconds
Total amount of IPv6 packets related to our own network: 0
Not processed packets: 0 pps