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

From: Lew Pitcher (Lew.Pitcher_at_td.com)
Date: 08/26/05


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


-----BEGIN PGP SIGNED MESSAGE-----
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 (http://www.toms.net/rb/), 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)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)

iD8DBQFDDzUJagVFX4UWr64RAlz+AJ9tctiCVWZ7dEXX642VTLRNOLuLNQCfQ+G9
i8a1N4+RrtfZvVdy50/xanM=
=2pVC
-----END PGP SIGNATURE-----