Because BandwidthD is installed on our server with the IP address 10.0.0.9, we will use values :
Plain Text
subnet 10.0.0.0/24 promiscuous false
Thus, BandwidthD will record statistics for network exchanges performed to and from the IP addresses : 10.xxx
We disable the promiscuous mode to get statistics for our server only.
To save changes, restart BandwidthD :
Bash
service bandwidthd restart
In this example, only the network traffic from our local network "10.0.0.0" was recorded. For this record, we see that our server (IP: 10.0.0.9) has downloaded a file from the 10.0.0.4 machine. Our server has downloaded that file (Total Received : approximately 120 MB) and 10.0.0.4 Machine has therefore sent it (Total Sent: 120 MB).
To get the statistics for network exchanges performed between different machines on our local network, we will use values :
Plain Text
subnet 10.0.0.0/24 promiscuous true
We enable promiscuous mode to obtain statistics for the entire LAN. Internet statistics will not be recorded, because the public IP (or Internet IP) doesn't correspond to the network ID : "10.0.0.0/24".
To save changes, restart BandwidthD :
Bash
service bandwidthd restart
In this example, we see that the 10.0.0.3 machine uses our network to download. We also see that the machine "10.0.0.4" uses our network to upload data.
To obtain statistics for network exchanges performed in your local network and also to and from the Internet, we will use values :
Plain Text
subnet 0.0.0.0/0 promiscuous false
We disable the promiscuous mode to obtain statistics for our server only. Internet statistics will be recorded because the network ID "0.0.0.0/0" concerns all IP addresses.
To save changes, restart BandwidthD :
Bash
service bandwidthd restart
To obtain statistics for network exchanges performed between different machines on your local network and also to and from the Internet, we will use values :
Plain Text
subnet 0.0.0.0/0 promiscuous true
We enable promiscuous mode to obtain statistics for the entire LAN. Internet statistics will be recorded because the network ID "0.0.0.0/0" concerns all IP addresses.
To save changes, restart BandwidthD :
Bash
service bandwidthd restart
In this example, we see that the IP address 10.0.0.4 of our local network, has downloaded 278.4 MB (10.0.0.4 / Total Received). The IP address 62.4.254.57 (which is a public IP address or an Internet IP) sent 271.1 MB (in this case, it is the 271.1 MB downloaded by the local machine 10.0.0.4). This download was performed over the http protocol.
Linux 2/14/2015
Linux 12/20/2014
Linux 6/17/2015
Linux 8/23/2016
Pinned content
Contact
® InformatiWeb-Pro.net - InformatiWeb.net 2008-2022 - © Lionel Eppe - All rights reserved.
Total or partial reproduction of this site is prohibited and constitutes an infringement punishable by articles L.335-2 and following of the intellectual property Code.
No comment