• a server is multi-homed to a variety of networks (perhaps it is a jump box)
  • DNS has the hostname registered only on one network (the management interface, perhaps)


  • without logging-into the server, report all interfaces currently configured, and the IP addresses in use


How would you do this for Window? On Linux?

  • From the switch. – kls Mar 5 '12 at 22:17
  • Golly gosh, that sure looks like something taken straight from a test paper. – John Gardeniers Mar 6 '12 at 1:17
  • @Josh Gardeniers - maybe it is, but I've been out of school for quite a while :) – warren Mar 6 '12 at 13:24
  • Related: serverfault.com/q/74042/2321 – warren Sep 25 '17 at 21:46

Look into the linux arp command. I hope windows has a similar command.

"ARP stands for Address Resolution Protocol, which is used to find the media access control address of a network neighbour for a given IPv4 Address."

You may need to run the arp command on each network the server is part of. If you have access to firewalls/routers those should have an arp table you can check.

You will need to know the mac address of the server's ethernet interfaces. But if you don't know those it's not that hard to find out. If the make and model of your server are somewhat unique in the network you can look it up at sites such as http://www.coffer.com/mac_find/ and match the make you find there with the one of the server.

If you do have a list of mac addresses (who does) of the server just look it up using that list.

Suffice it to say that arp also reports either the hostname or IP address (if used with -n it will not attempt to resolve).

  • 2
    Yes, Windows does have an arp command. – John Gardeniers Mar 6 '12 at 1:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.