Determining my ethernet address

Gary Gary
Fri Mar 22 00:57:45 AEST 1991


In article <1467 at babcock.cerc.wvu.wvnet.edu>
bigbroth at cathedral.cerc.wvu.wvnet.edu (James M. Coleman) writes:
>
>
>I need to find out the ethernet address of the machine my
>program is running on without the help of the file /etc/hosts

Jim-
If you are on a unix machine, generally the ifconfig command will 
tell you.  You say        ifconfig port    where you determine 
the name of the ethernet device 'port' by first doing netstat -n -r.

Alternatively, even if you are *not* running Unix, if you can log
in to a Unix host (on the *same* ethernet cable, not on another
subnet) and then type    arp -a   you should find out.

-Gary White
 



More information about the Comp.unix.questions mailing list