FastNetMon relies on networks/subnets available in your network. However, in a dynamic environment with a large number of peers and frequent changes, it may be complicated to maintain a list of monitored networks up to date.
To enable this feature, please redistribute all networks which belong to your company. Please do not redistribute the full BGP table because it will overload FastNetMon’s BGP daemon.
To use this facility, you need to establish a BGP peering session between FastNetMon and your routers as documented here.
We offer a native command which can return all networks received from the BGP session directly:
sudo fcli show bgp_announces_incoming peer_name
peer_name you can get from your BGP configuration:
sudo fcli show bgp | grep name
You can use this data and run a script to reconfigure FastNetMon’s networks lists each 10-20 minutes. We have example code for this task here.
As an option, you can write this simple script /opt/fastnetmon_network_learning.sh:
#!/bin/bash for i in `sudo /opt/fastnetmon/app/bin/fcli show bgp_announces_incoming XXX`; do sudo /opt/fastnetmon/app/bin/fcli set main networks_list $i;done sudo /opt/fastnetmon/app/bin/fcli commit
Replace XXX with your BGP peer name from BGP configuration of FastNetMon.
Please set execute bit for this:
chmod +x /opt/fastnetmon_network_learning.sh
And add it into cron /etc/cron.d/network_learning:
SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin 1 * * * * root /opt/fastnetmon_network_learning.sh
It will add new networks from the BGP session every hour. It does not delete old networks. We recommend doing it manually from time to time.

