Determining my ethernet address
James M. Coleman
bigbroth at babcock.cerc.wvu.wvnet.edu
Fri Mar 22 11:46:16 AEST 1991
>From article <11292 at dog.ee.lbl.gov>, by torek at elf.ee.lbl.gov (Chris Torek):
> 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 ...
>
> Why do you assume that you even *have* an Ethernet address? The
> machine I am typing at is on the Internet but is not on an Ethernet.
> (It happens to have an Ethernet address anyway, as it is a Sparcstation
> SLC.) Any machine may have any number of Ethernet addresses, from 0
> to infinity (well... :-) ).
Stuff Deleted . . .
> --
> In-Real-Life: Chris Torek, Lawrence Berkeley Lab CSE/EE (+1 415 486 5427)
> Berkeley, CA Domain: torek at ee.lbl.gov
Chris,
You are right that just because a machine is on the Internet or is a Unix machine
it is not necessarily on an Ethernet or even has a Ethernet number. There are
certainly many other types of LAN networks. But ALL the machines which
will be running my monitor will be on an Ethernet and will be Unix based systems.
This has been a requirement for the systems we develop for. I imagine the people
in the know here feel this isn't very limiting and porting to other network access
protocols can be done when we get a solid base on Ethernets. My original problem
remains unsolved: I need a way to determine from within my program what is the
Ethernet address of the machine it's running on. I am developing on Sun's, HP's,
DECStations,VAXstations, and SGI's. I thought it would be as easy as finding
out my Internet address(that one took me abouy half an hour) but so far no luck.
Jim
Jim Coleman
Concurrent Engineering Research Center (C.E.R.C.)
West Virginia University
955 Hartman Run Road
Morgantown, WV 26506
Phone: (304) 293-7536
Home : (304) 292-6603
FAX: (304) 293-7541
ARPAnet: bigbrot
More information about the Comp.unix.questions
mailing list