Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Scenario:

  • 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)

Problem:

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

Question:

How would you do this for Window? On Linux?

share|improve this question
    
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

1 Answer 1

up vote 6 down vote accepted

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

share|improve this answer
2  
Yes, Windows does have an arp command. –  John Gardeniers Mar 6 '12 at 1:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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