Subject: Re: Testing presence of a device by MAC when configuring an
To: Chapman Flack <chap@anastigmatix.net>
From: dieter roelants <dieter.NetBSD@pandora.be>
List: tech-net
Date: 06/28/2006 10:47:32
On 06/28/06 02:53:53, Chapman Flack wrote:
> Hi,
>=20
> Is there some scriptable method, using binaries present in the base =20
> system,
> to check for the presence of some known other device by its MAC =20
> address
> on an ethernet before assigning an IP address to the local interface?
>=20
> I would like to automate the following check on detecting an =20
> interface:
>=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.

Kind regards
dieter


> Thanks,
> -Chap
>=20
> (please cc: me on reply)
>=20