Subject: Re: Testing presence of a device by MAC when configuring an Ethernet
To: Chapman Flack <chap@anastigmatix.net>
From: Daniel Carosone <dan@geek.com.au>
List: tech-net
Date: 06/28/2006 13:52:58
--VRy2DAmnTueP9XfJ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Tue, Jun 27, 2006 at 08:53:53PM -0400, Chapman Flack wrote:
> Is there some scriptable method, using binaries present in the base system,
> to check for the presence of some known other device by its MAC address
> on an ethernet before assigning an IP address to the local interface?

Not base, but net/arping springs pretty immediately to mind.

You could probably knock up something similar with ipsend/ipresend and
tcpdump.

--
Dan.

--VRy2DAmnTueP9XfJ
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (NetBSD)

iD8DBQFEof0aEAVxvV4N66cRApA0AKC2S8e2hGUg+OKvXxFLdyWAL63A9wCdEQRy
UvK/OhFgLV92eqdrYzut8Ak=
=/333
-----END PGP SIGNATURE-----

--VRy2DAmnTueP9XfJ--