Thank you for your feedback.
> "/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?
Yes, I know a Linux system can have more than one MAC address as seen below
in the output from my four Linux boxes I have tested. Most of my Linux
boxes have 2 network cards. I should have said MAC "Addresses".
I have the following versions of Linux installed:
Red Hat Linux release 7.2 (Enigma) - 2.4.7-10 #1 Thu Sep 6 17:27:27 EDT
2001 i686 unknown
Red Hat Linux Advanced Server release 2.1AS (Pensacola) - 2.4.9-e.24 #1
Tue May 27 16:15:51 EDT 2003 i686 unknown
SuSE Linux 8.0 (i386) (VERSION = 8.0) - 2.4.18-64GB-SMP #1 SMP Wed Mar 27
13:58:12 UTC 2002 i686 unknown
I was hoping to get "/sbin/ifconfig -a" output from other Linux versions
which I do not have installed.
Thanks again.
linux1> /sbin/ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:06:5B:ED:64:3A
inet addr:172.19.200.153 Bcast:172.19.255.255 Mask:255.255.0.0
inet6 addr: fe80::206:5bff:feed:643a/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:205962489 errors:0 dropped:0 overruns:0 frame:0
TX packets:1739815 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:147463307 (140.6 Mb) TX bytes:170871758 (162.9 Mb)
Interrupt:17
eth1 Link encap:Ethernet HWaddr 00:06:5B:ED:64:3B
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:16
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:52563 errors:0 dropped:0 overruns:0 frame:0
TX packets:52563 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3696688 (3.5 Mb) TX bytes:3696688 (3.5 Mb)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
linux2> /sbin/ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:06:5B:ED:64:0B
inet addr:172.19.200.134 Bcast:172.19.255.255 Mask:255.255.0.0
inet6 addr: fe80::206:5bff:feed:640b/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:205959915 errors:0 dropped:0 overruns:0 frame:0
TX packets:1787236 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:219776952 (209.5 Mb) TX bytes:284620854 (271.4 Mb)
Interrupt:7
eth1 Link encap:Ethernet HWaddr 00:06:5B:ED:64:0C
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:5
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:49771 errors:0 dropped:0 overruns:0 frame:0
TX packets:49771 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3504783 (3.3 Mb) TX bytes:3504783 (3.3 Mb)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
linux3> /sbin/ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:06:5B:ED:68:31
inet addr:172.19.200.31 Bcast:172.19.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:209964427 errors:0 dropped:0 overruns:0 frame:0
TX packets:4308862 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:880078717 (839.3 Mb) TX bytes:356620310 (340.0 Mb)
eth1 Link encap:Ethernet HWaddr 00:06:5B:ED:68:32
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:55031 errors:0 dropped:0 overruns:0 frame:0
TX packets:55031 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:3857094 (3.6 Mb) TX bytes:3857094 (3.6 Mb)
linux4> /sbin/ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:10:4B:39:3F:40
inet addr:172.19.202.182 Bcast:172.19.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:82626662 errors:0 dropped:0 overruns:0 frame:0
TX packets:293137 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:232403353 (221.6 Mb) TX bytes:22153604 (21.1 Mb)
Interrupt:10 Base address:0x1000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1294 errors:0 dropped:0 overruns:0 frame:0
TX packets:1294 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:107285 (104.7 Kb) TX bytes:107285 (104.7 Kb)
"Lew Pitcher" <(E-Mail Removed)> wrote in message
news:hyGPe.1828$(E-Mail Removed)...
> -----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+AJ9tctiCVWZ7dEXX642VTL RNOLuLNQCfQ+G9
> i8a1N4+RrtfZvVdy50/xanM=
> =2pVC
> -----END PGP SIGNATURE-----