12,300
edits
This is the support site for Andrews & Arnold Ltd, a UK Internet provider. Information on these pages is generally for our customers but may be useful to others, enjoy!
(ebtables accounting) |
mNo edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
== /etc/network/interfaces ==
Valid if eth0.20 used
iface int0 inet static
To save the accounting data,
I used a script called out from /etc/cron.hourly and will end up with a directory tree with accounting data that resembles that from AAISP’s clueless pages but broken down by MAC address. If I had [[Ethernet over ADSL]] then the ISP might do this step instead. Old data may need to be rotated away from the output area eventually though.
#!/bin/bash
MYTIME=`date +%s`
DIR=`date -d @$MYTIME +/var/local/ebacct/%Y-%m-%d/%H -u`
PARA=
fi
done <<<"$(ebtables -L accounting --Lc --Lmac2 $PARA)"
[[Category:3rd Party Routers]]
|
edits