Tester <(E-Mail Removed)> wrote:
> Hi there,
> I want to monitor the MAC to IPs from a different subnet then the current
> LAN where arpwatch is running. How should I use arpwatch for this task?
> Thanks a lot, Calin
I don't know about arpwatch, but I usually use the following which is
run every minute from cron. Actually, you could make this every few
minutes.
* * * * * ${HOME}/bin/arpmap.sh
arpmap.sh contains the following (comments stripped)
mapfile=${HOME}/arpmap.txt
export PATH=/sbin:/usr/sbin:/bin:/usr/bin
arpargs="-n -H ether -i eth1" # CHANGE ME
arp $arpargs | fgrep -v "(incomplete)" | awk 'NR > 1 {print $3,$1}' \
>> $mapfile
cat $mapfile | sort | uniq > $mapfile.new
mv $mapfile.new $mapfile
This is useful for finding IP clashes, and for Wake-on-LAN. Also DHCP
administration, to a lesser extent.
--
Cameron Kerr
(E-Mail Removed) :
http://nzgeeks.org/cameron/
Empowered by Perl!