MAC address

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

  1. muzica

    muzica New Member


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

    falko Super Moderator ISPConfig Developer

    Log in to the server and run
    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 ISPConfig Developer

    I'm not sure if the nmblookup can be of help. Run
    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

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

  6. muzica

    muzica New Member

    nmap worked.

    thank you.

Share This Page