Subject: Re: Testing presence of a device by MAC when configuring an
To: Chapman Flack <firstname.lastname@example.org>
From: dieter roelants <dieter.NetBSD@pandora.be>
Date: 06/28/2006 10:47:32
On 06/28/06 02:53:53, Chapman Flack wrote:
> Is there some scriptable method, using binaries present in the base =20
> to check for the presence of some known other device by its MAC =20
> on an ethernet before assigning an IP address to the local interface?
> I would like to automate the following check on detecting an =20
> IF device-at-known-MAC-address is visible through interface
> THEN this must be home, set my normal fixed IP on the interface.
Provided both machines are IPv6 enabled, you could ping6 the other =20
machine's link-local address.
> (please cc: me on reply)