Re: request for "/sbin/ifconfig -a" output (discover MAC Address)

From: Lew Pitcher (
Date: 08/26/05

Date: Fri, 26 Aug 2005 11:28:10 -0400

Hash: SHA1

Nathan Thompson wrote:
> If you can please post the output of the command "/sbin/ifconfig -a" along
> with the output of "uname -a". I'm trying to develop an application to
> parse the output of "/sbin/ifconfig -a" to discover the MAC Address for

"/the/ MAC Address"?? What makes you think that, in a Linux system,
there is even /a/ MAC address, let alone /the/ MAC address? For that
matter, what makes you think that there is /a single/ MAC address in a
Linux system?

> Linux systems. This output will help me. Thank you in advance.

The easiest way is to do it yourself. Go get yourself a Linux system,
like TomsRootBoot (, cut a boot floppy (Toms
RootBoot is a single floppy standalone linux system; it doesn't install
on your hard disks, but has all the networking tools, and boots off of
the floppy), and boot Linux. Try the /sbin/ifconfig command and see what
the format of the output is.

- --

Lew Pitcher, IT Specialist, Enterprise Data Systems
Enterprise Technology Solutions, TD Bank Financial Group

(Opinions expressed here are my own, not my employer's)
Version: GnuPG v1.2.4 (MingW32)