Path: utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request From: daniel@bermuda.island.com (Daniel Smith) Newsgroups: comp.sys.sun Subject: How to get "fresh" sun to recognize internet #'s of neighbors? Keywords: Networks Message-ID: <1690@brchh104.bnr.ca> Date: 19 Feb 91 19:22:00 GMT Sender: news@brchh104.bnr.ca Organization: Sun-Spots Lines: 21 Approved: Sun-Spots@rice.edu X-Original-Date: Tue, 12 Feb 1991 11:55:35 PST X-Sun-Spots-Digest: Volume 10, Issue 40, message 7 X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu 1) You set up a Sun with a new OS, say, 4.1.1 2) You have an ethernet adapter all hooked up, so your Sun is physically on the network 3) Now, does anyone know of a way where the new Sun could "grab" internet numbers (192.9.205.40, etc) of one of its neighbors? Could etherfind possibly help? The reason I ask is: I'm going to be teaching others how to configure some turnkey systems, and if I can put something into a shell script that could go out and ftp/somehow get the /etc/host file from another machine on a local network, then that would be one less question that I would have to ask a user of the script ("what's the internet address of a another machine on the network?"). Thanks for any leads! [[Ed's Note: Assuming you have a host that's active on the network, you could watch the arp cache of the Sun (ie: arp -a) and get the IP number from there. -bdg]] Daniel