*BSD News Article 95734


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.edu.au!munnari.OZ.AU!uunet!in1.uu.net!206.154.70.8!news.webspan.net!feed1.news.erols.com!news-peer.sprintlink.net!news.sprintlink.net!Sprint!EU.net!sun4nl!server1.adam.ixe.net!news2.euro.net!xs4all!not-for-mail
From: vincento@knoware.nl (Vincent Ossewaarde)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: etting ethernet address of networkadaptor.
Date: Mon, 19 May 1997 19:34:12 GMT
Organization: XS4ALL, networking for the masses
Lines: 17
Message-ID: <5lqad2$bgc$1@news2.xs4all.nl>
References: <337C24FF.167E@inferno.phys.tue.nl> <5lhcm7$4ac@ui-gate.utell.co.uk>
NNTP-Posting-Host: asd-isdn02-18.dial.xs4all.nl
X-XS4ALL-Date: Mon, 19 May 1997 21:41:22 CEST
X-Newsreader: Forte Free Agent v0.55
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:41246

brian@shift.utell.net (Brian Somers) wrote:

>In article <337C24FF.167E@inferno.phys.tue.nl>,
>	Gert van der Plas <gert@inferno.phys.tue.nl> writes:
>> I would like to obtain the physical address of the network-adapter.
>> Does anyone have some code to do this? I had some code for the DEC-Alpha
>> but that did not work and I could not manage to patch it since I do not
>> know enough about FreeBSD 2.2.1 to do this. Can some one please help?

>Hmm, ifconfig does it.  I'd suggest looking at the code
>to figure it out.

You'd better su to root and use the arp -a command...


VIncent