MAC Address on Linux

Alex Tweedly alex at tweedly.net
Sat Oct 9 17:20:30 EDT 2004


At 15:18 09/10/2004 -0500, Ken Ray wrote:
>(Sorry about that last one)
>
>Thanks, Mark... I tried this in my copy of RedHat 9, and I don't get
>anything with "HWaddr" in /sbin/ifconfig. When I looked at Mark Waddingham's
>approach of doing "cat /proc/net/arp", I didn't get anything either. The
>only thing I got with /sbin/ifconfig is the localhost address (127.0.0.1).
>
>So perhaps it's not as universal as we'd think... any suggestions for
>getting MAC address in RedHat 9?

Stupid question - but are you sure you had an ethernet interface up and 
running on the Redhat9 box when you tried this ?

Getting only localhost back is what you'd expect if there is no active 
ethernet interface, and the /proc/net/arp method would similarly give you 
nothing back.I don't have a copy of Redhat - but I know that back at 
version 6 it supported ifconfig as needed for this method to work.

-- Alex.


More information about the use-livecode mailing list