advertisement
from the Serious stuff department...
Find MAC address of a NIC on DOS
Local and wide area networking in factory automation. topic
Posted by Kats on 19 March, 2001 - 9:34 pm
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


Posted by darren stradins on 11 May, 2001 - 1:50 pm
Did you get any reply to this...? if so i am interested also... darren.stradins@avecia.nospam.com remove .nospam. to email me back.


Posted 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


Posted 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.

Regards
Donald Pittendrigh


Posted 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.


Regards

cww


Posted 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


Posted by seyed on 25 June, 2002 - 10:44 am
hi

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
NIC
(3C905B-TX)
Physical Address. . . . . . . . . : 00-10-5A-73-7F-81
IP Address. . . . . . . . . . . . : 172.16.13.109
Subnet Mask . . . . . . . . . . . : 255.255.248.0 "

thank you .



Posted 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
http://meitner.tn.infn.it/~bettelli/beowulf/scripts/sniff_mac_addre ss
(MAC address sniffer utility. Bettelli Stefano <bettelli@tn.infn.it>, 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 : rob.antonishen@opg.com
text msg: 4167077086@msg.clearnet.com
----------------------------------------


Posted by Per André Horpen on 1 June, 2001 - 7:41 am
Hi!

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....


Posted 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:
ftp://ftp.3com.com/pub/nic/cardfind.exe

Regards,
Oliver


Posted by kambuna on 19 October, 2001 - 3:35 pm
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

kambuna


Posted by ponderz on 16 December, 2001 - 12:15 pm
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%

ponderz@hotmail.com


Posted by Sam on 26 December, 2001 - 1:13 pm
Sorry. Doesn't work. Commands not recognized.


Posted by pgw on 31 January, 2002 - 1:53 pm
try nbmac.zip "http://www.kostis.net/freeware/indexe.htm":http://www.kosti s.net/freeware/indexe.htm


Posted by Cassius Duke on 4 April, 2003 - 12:22 pm
> try nbmac.zip http://www.kostis.net/freeware/index.htm <

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


Posted by Anonymous on 9 August, 2003 - 10:12 pm
try creating a txt file with only a carriage return in it called t.txt.
type
net diag /status < t.txt > info.txt

this will save the mac address to info.txt


Posted by Curt Wuollet on 13 August, 2003 - 12:38 am
Try poking around here and crynwyr.com.

http://www.cs-ipv6.lancs.ac.uk/ftp-archive/Code/Generic/packet-driv ers/Crynwr/

Or Google packet driver

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


Regards

cww


Posted by Koblenz, Mykel MH on 15 August, 2003 - 7:06 pm
I use the ping command and the arp table

i.e.

ping xxx.xxx.xxx.xxx
arp -a
int he table you will find the IP address and the physical address of the
NIC

Mick


Posted by Panayot on 7 December, 2012 - 7:11 pm
> I use the ping command and the arp table
> i.e.
> ping xxx.xxx.xxx.xxx
> 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?


Posted by David Wilson on 10 December, 2012 - 12:57 pm
> 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 . . .

winipcfg

or . . .

If NetBIOS is enabled:
nbtstat -A xxx.xxx.xxx.xxx
(where xxx.xxx.xxx.xxx is the ip address of the local computer; "localhost" or 127.0.0.1 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?


Posted 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 http://nu2.nu/download.php?sFile=mstcp.cab. Look at http://nu2.nu/bootdisk/network/ for generaly setting up TCP/IP access from DOS and other sites.


Posted 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.

Regards
Donald Pittendrigh

Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2014 Nerds in Control, LLC. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, MySQL and Apache. Be happy.


Fortune
Democracy is the recurrent suspicion that more than half of the people
are right more than half of the time.
-- E. B. White
Advertise here
Advertisement
our advertisers
Help keep our servers running...
Patronize our advertisers!
Visit our Post Archive