0

I need to use vnstat to check the data usage of the USB modem (mobile broadband) with a sim card. The usual interfaces names are: eth0, wlan0, and etc. I can't figure out what is the name of this modem to use for the command vnstat -l -i. I tried with usb0, ttyusb0, with no luck.

2

I used the command ifconfig and see the device in use is tun0

To view all the available interfaces on the system that vnStat can monitor you can use the command vnstat --iflist

I then created a new database for the selected interface with sudo vnstat -u -i tun0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.