HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   MAC address (http://www.howtoforge.com/forums/showthread.php?t=11190)

muzica 7th March 2007 17:18

MAC address
 
Hi,

I have a IP Address of a remote server on my network.
How can i find the MAC address.

falko 8th March 2007 18:52

Log in to the server and run
Code:

ifconfig
That command will show you the MAC address (I think it calls it HWADDR or something like that).

muzica 9th March 2007 14:11

Thanks, but I don’t want to log on to 68 servers. Is there away to innovatory them from a command line?

falko 10th March 2007 11:38

I'm not sure if the nmblookup can be of help. Run
Code:

man nmblookup
Maybe it can detect MAC addresses.

KenKnight 10th March 2007 17:30

Hi Muzica,

I use nmap for that type of task.

the following command will scan your entire subnet and provide just the info you need;

nmap -sP 192.168.0.0/24

Replace the 192.x.x.x with whatever you subnet is, also if you're not using one of the standard subnet masks you'll need to calculate and apply a different subnet # at the end (24).

Since you have a bunch of machines I'd suggest routing the info to a file like so;

nmap -sP 192.168.0.0/24 > MyMacs.txt

Then you can copy that text file to whatever machine your doing work on. I use the heck out of this command when setting up Static DHCP servers.

Cheers!
Ken

muzica 12th March 2007 12:56

nmap worked.


thank you.


All times are GMT +2. The time now is 00:59.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.