Hi,
I recently installed vnstat on my wl-500gp router. After install the package I got this message:
Configuring vnstat
Error: Unable to read database "/var/lib/vnstat/eth0.2".
Info: -> A new database has been created.
Great... I issued an ls /var/lib/ and the vnstat folder has been created.
I moved forward and reboot the router. I SSHed back to the router and issue this command "vnstat" and I got this:
root@OpenWrt:~# vnstat
Error: Unable to open database directory "/var/lib/vnstat".
Make sure it exists and is at least read enabled for current user.
The vnstat folder is deleted. Why is that? What am I doing wrong?
My configuration is as follow
## VLAN configuration
config switch eth0
option vlan0 "0 1 2 5*" # For VOIP traffic
option vlan1 "3 5" # For LAN traffic
option vlan2 "4 5" # For WAN traffic
#### Loopback configuration
config interface loopback
option ifname "lo"
option proto static
option ipaddr 127.0.0.1
option netmask 255.0.0.0
#### LAN configuration
config interface lan
#option type bridge
option ifname "eth0.0"
option proto static
option ipaddr 192.168.1.1
option netmask 255.255.255.0
option gateway 192.168.1.1
option dns 192.168.1.1
#### WIFI configuration
config interface wifi
#option type bridge
option ifname "eth0.1"
option proto static
option ipaddr 192.168.2.1
option netmask 255.255.255.0
option gateway 192.168.2.1
option dns 192.168.1.1
#### WAN configuration
config interface wan
option ifname "eth0.2"
option proto static
option ipaddr 10.1.1.101
option netmask 255.255.255.0
option gateway 10.1.1.1
option dns 10.1.1.1
Thanks for your help,
--Jude