Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!umich!samsung!sdd.hp.com!elroy.jpl.nasa.gov!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.unix.questions Subject: Re: How do I find out my Ethernet address? Message-ID: <7973@jpl-devvax.JPL.NASA.GOV> Date: 4 May 90 01:17:42 GMT References: <1606@dinl.mmc.UUCP> <2561@syma.sussex.ac.uk> <5197@helios.TAMU.EDU> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 21 In article <5197@helios.TAMU.EDU> randy@csseq.tamu.edu (Randy Hutson) writes: : : |: On a Sun 3 (SunOS 4.0.3), how do I find out what my : |: Ethernet address is? One answer is rebooting, but how : |: do you find out without rebooting? : |: Is there a command executable from sh(1)? : | : : grep `hostname` /etc/ethers : : should give the Ethernet address. Or if yellowpages is running, : : ypcat ethers | grep `hostname` If your ethers database is out-of-date (which ours often is), then another way to find it is to say rsh someotherhost /usr/etc/arp `hostname` Larry Wall lwall@jpl-devvax.jpl.nasa.gov