arpdetect is a Perl script that detects when the
network you're connected to changes. It does
this by detecting changes in the MAC address of
a host you specify (usually a router), and
executing various commands. Actions can be
re-run after a predetermined period.