MAC address

Discussion in 'Server Operation' started by muzica, Mar 7, 2007.

  1. muzica

    muzica New Member

    Hi,

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

    falko Super Moderator Howtoforge Staff

    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).
     
  3. muzica

    muzica New Member

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

    falko Super Moderator Howtoforge Staff

    I'm not sure if the nmblookup can be of help. Run
    Code:
    man nmblookup
    Maybe it can detect MAC addresses.
     
  5. KenKnight

    KenKnight Member

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

    muzica New Member

    nmap worked.


    thank you.
     

Share This Page