Find MAC address of a NIC on DOS

K

Thread Starter

Kats

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
 
H

Hullsiek, William

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
 
C

Curt Wuollet

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
 
D

D. C. Pittendrigh

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
 
A

ANTONISHEN Robert -CIO PROJ DEL

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_address(MAC address sniffer utility. Bettelli Stefano <[email protected]>, 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 : [email protected]
text msg: [email protected]
----------------------------------------
 
W

Walter Gonzalez

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

Walter Gonzalez
MicroMotion Controls
 
P

Per André Horpen

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

Oliver Jaksch

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

 
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
 
D

Donald Pittendrigh

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
 
K

Koblenz, Mykel MH

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
 
Top