Computing.Net > Forums > Disk Operating System > Get the MAC address of a NIC in DOS

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Get the MAC address of a NIC in DOS

Reply to Message Icon

Name: Jim
Date: November 12, 2003 at 17:12:06 Pacific
OS: DOS
CPU/Ram: Athlon 2000+/1gig
Comment:

I am creating a network boot cd and need to get the MAC address of the NIC card. This will be used as the computer name on the network. I have tried ipconfig /all and it works in a windows environment. I need a utility that will get or display the MAC address of the NIC in DOS, not in a DOS terminal window. Any ideas would be helpful.




Sponsored Link
Ads by Google

Response Number 1
Name: Kill Roy
Date: November 20, 2003 at 16:11:22 Pacific
Reply:

Sorry I don't know of any utilities, but if it helps you can always set it to something that you do know.

Here is how.
Edit your protocol.ini file and in the section for the nic card add the line
netaddress = "00001111abcd"
or if it is all numbers
netaddress = 0x000011112222

Ex.
[NIC]
drivername=EL556$
netaddress="0000864c0000"

I assume you want to do this for installing a whole bunch of machines. In this case it would require you to know the MAC address before hand.

If this is the case you could try to do a post process command after the OS is installed and use the newer utilites to get the address and then change the name.


0

Response Number 2
Name: Jack in the Crack
Date: November 21, 2003 at 18:50:20 Pacific
Reply:

Im trying to do the same thing... this is what I've come up with so far...

@echo off
ipconfig /all | Find /i "physical">mac.txt
for /f "tokens=1* delims=Physical " %%1 in (mac.txt) do @echo %%2>mac.txt
for /f "tokens=1* delims=Address " %%1 in (mac.txt) do @echo %%2>mac.txt
for /f "tokens=1* delims=. " %%1 in (mac.txt) do @echo %%2>mac.txt
type mac.txt


0

Response Number 3
Name: pgw
Date: December 9, 2003 at 21:53:16 Pacific
Reply:

try nbmac.exe on the internet somewhere


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Dos Machine : Nyb virus how to set the path for e...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Get the MAC address of a NIC in DOS

DOS utility that gets the mac-adress www.computing.net/answers/dos/dos-utility-that-gets-the-macadress/3670.html

MAC address in DOS? www.computing.net/answers/dos/mac-address-in-dos/1479.html

Installing a nic in dos www.computing.net/answers/dos/installing-a-nic-in-dos/2121.html