How do I find out my Ethernet address?

Larry Wall lwall at jpl-devvax.JPL.NASA.GOV
Fri May 4 11:17:42 AEST 1990


In article <5197 at helios.TAMU.EDU> randy at 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 at jpl-devvax.jpl.nasa.gov



More information about the Comp.unix.questions mailing list