How do I find out my Ethernet address?

Randy Hutson randy at csseq.tamu.edu
Fri May 4 09:07:38 AEST 1990


|: 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)?
|
|You could try           grep `hostname` /etc/hosts
|
|(assuming you have such a file, or similar)

No, that will give the Internet address.

	grep `hostname` /etc/ethers

should give the Ethernet address.  Or if yellowpages is running,

	ypcat ethers | grep `hostname`
 



More information about the Comp.unix.questions mailing list