Today is...
Tuesday, April 21, 2015
Welcome to, the global online
community of automation professionals.
Featured Video...
Featured Video
Watch an animation of a conveyor stacking operation demonstrating the use of a move on a gear command.
Our Advertisers
Help keep our servers running...
Patronize our advertisers!
Visit our Post Archive
Find MAC address of a NIC on DOS
I need to find out the MAC address of NIC cards on DOS machine.

Hello: How could I find out the MAC address of NIC cards on a DOS machine. There is no driver installed on this DOS machine. I guess this question, described in other words, is that is there any standard way to read MAC address off of a NIC cards? I mean if I know the memory /I/O resources of the NIC, then can I read a certain memory or I/O location to get the card's MAC address? Your help is greatly appreciated, Regards, Kats

By darren stradins on 11 May, 2001 - 1:50 pm

Did you get any reply to this...? if so i am interested also... remove .nospam. to email me back.

By Hullsiek, William on 15 May, 2001 - 3:31 pm

I just did this for my MS-DOS systems. Each manufacturer has its down procedure.

Most manufacturers have a diagnotics diskette, that you can use to run loop back tests and to capture IRQ, DMA, i/o buffers. You can look at the MAC-address (and override).

- Bill Hullsiek

By D. C. Pittendrigh on 15 May, 2001 - 4:45 pm

HI All

Missed the original posting but if you are booting to dos from versions from Win95 type winipcfg at the DOS prompt, for 98 thru to 2000 type IPCONFIG /ALL at the DOS prompt. If you are working on a version of DOS prior to 95 I can't help you, your pain is self inflicted.

Donald Pittendrigh

By Curt Wuollet on 15 May, 2001 - 3:32 pm

Try Crnwyr packet driver on a search engine. IIRC there are utilities in the suite for this and other purposes. And they are free and I believe, open source.



By Walter Gonzalez on 15 May, 2001 - 5:08 pm

Try typing "ipconfig /all" from the command prompt. The NIC address is the Physical address without the dashes.

Walter Gonzalez
MicroMotion Controls


how do I find a computer or ip or other parameter a system than on mac address related to NIC in a lan or wan network .

example : mac address is " 00-10-5A-73-7F-81 " now,
what is IP ?
example : in win 2000 in 'command prompt' type "ipconfig"
this give under parameter :

C:\>ipconfig /all
Windows 2000 IP Configuration
Host Name . . . . . . . . . . . . : project1
Primary DNS Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : 3Com EtherLink XL 10/100 PCI TX
Physical Address. . . . . . . . . : 00-10-5A-73-7F-81
IP Address. . . . . . . . . . . . :
Subnet Mask . . . . . . . . . . . : "

thank you .

By ANTONISHEN Robert -CIO PROJ DEL on 15 May, 2001 - 4:46 pm

If you have a Linux/Unix box available, you could use tcpdump and a script like the one at
(MAC address sniffer utility. Bettelli Stefano <>, 1999)
to detect any BOOTP or RARP requests put out by the NIC when the DOS machine is powered up. Just plug the DOS box and the Linux box into a hub (as
opposed to a switched network) and you should be able to capture the broadcast message.

Robert Antonishen, P.Eng.
Sr. Engineer - Commercial Systems
Ontario Power Generation Inc.
700 University Ave. Toronto, ON, Canada
voice : 416-592-1510
fax : 416-592-8766
cell : 416-707-7086
email :
text msg:

By Per André Horpen on 1 June, 2001 - 7:41 am


You can do this by simply typing arp -a at the DOS command prompt. You will then get all of the known IP adresses and according Physical adresses.

I know it's a little late to come with this now, but still....

By Oliver Jaksch on 9 September, 2001 - 11:38 am

Hi there!
I just got the same question... but I found a nice tool:
For 3COM-Adapters you can use CARDFIND to detect and identify your 3COM-Card. It displays everything needed: IRQ, IO, Slot, BootRom, Performance, Media and the NIC/MAC-Adress

You can get this tool at:


There is no need for a special tool. Try the DOS-Command net diag /status and you get the Permanent node name which is the MAC-Address


Use this to get your mac address in to a variable.
echo off
qecho cr lf | net diag /status >%temp%\mac.txt
type %temp%\mac.txt | nset /l7 mac=$4
echo %mac%

Sorry. Doesn't work. Commands not recognized.

try "":

By Cassius Duke on 4 April, 2003 - 12:22 pm

> try <

This really seems to work, I am going to give it a good test now to make sure, thanks for the tip.

try creating a txt file with only a carriage return in it called t.txt.
net diag /status < t.txt > info.txt

this will save the mac address to info.txt

By Curt Wuollet on 13 August, 2003 - 12:38 am

Try poking around here and

Or Google packet driver

I used packet drivers with DOS and I seem to recall a utility to do that. With source code.



By Koblenz, Mykel MH on 15 August, 2003 - 7:06 pm

I use the ping command and the arp table


arp -a
int he table you will find the IP address and the physical address of the


> I use the ping command and the arp table
> i.e.
> ping
> arp -a
> int he table you will find the IP address and the physical address of the NIC

ARP -A is fine, but am still looking for a way to get the mac offline (w/o internet connection), is that ever possible?

> ARP -A is fine, but am still looking for a way to get the mac
> offline (w/o internet connection), is that ever possible?

Did you try the methods in the other posts? Such as:

ipconfig /all

or . . .


or . . .

If NetBIOS is enabled:
nbtstat -A
(where is the ip address of the local computer; "localhost" or will not work)

or . . .

some NICs or other ethernet devices have the MAC address printed on a label.


If you post the model number of your NIC card here in the forum, or "Google" it, you may find an archive of the manuals, drivers, or one of us "old-timers" may have one in a back closet. If the computer really is running DOS in 2012 and you do not have the original NIC drivers, do you have the opportunity to recycle old PC's where you live?

By Richard Mahn on 15 August, 2003 - 10:02 pm

It's been a while since I've worked with Packet Drivers, but I thought they didn't include any IP, IPX etc. layer.

So to answer the original question, we need to know what IP implementation is being used, Microsoft, etc?

For Microsoft you use "ipconfig". One source is in the file at Look at for generaly setting up TCP/IP access from DOS and other sites.

By Donald Pittendrigh on 13 August, 2003 - 2:33 pm

Depending on your version of DOS:

You ping the card, and then use ARP to interrogate the translation table generated on your machine. ARP stands for address resolution protocol, if your version of DOS cannot do this, then get a laptop with 2000 on it and use that, should solve your problem.

I think the ARP syntax is ARP -a but I am not sure, try ARP /? It is how I do it and the help tells all, I am getting to old to remember these things, and too intolerant to look up all the answers for other people.

Donald Pittendrigh