Ip address terminal command?

Discussion in 'macOS' started by mbcollins93, May 27, 2009.

  1. mbcollins93 macrumors member

    mbcollins93

    Joined:
    Aug 22, 2008
    #1
    Hi,
    I used to know a command that would show all of the ip address and the name of the devices on your network. I have not use the command in a while and I forgot it. Does any one know?
     
  2. hayduke macrumors 65816

    hayduke

    Joined:
    Mar 8, 2005
    Location:
    is a state of mind.
    #2
    ifconfig
     
  3. iShater macrumors 604

    iShater

    Joined:
    Aug 13, 2002
    Location:
    Chicagoland
    #3
    in OSX? :confused:

    Edit: wow, you learning something new everyday! :eek:
     
  4. yellow Moderator emeritus

    yellow

    Joined:
    Oct 21, 2003
    Location:
    Portland, OR
    #4
    ifconfig will tell you the IPs and names of other computers on your subnet?
     
  5. mbcollins93 thread starter macrumors member

    mbcollins93

    Joined:
    Aug 22, 2008
    #5
    it is showing me a bunch of stuff. The command I used to know just showed the name of the device and the ip address. Can you help me decipher ipconfig.
    I don't really know what I am looking at.
    Thanks
     
  6. yellow Moderator emeritus

    yellow

    Joined:
    Oct 21, 2003
    Location:
    Portland, OR
    #6
    Are you looking for info from your own Mac, or other devices on the network?

    If the latter, then what interface? Wireless or wired? On what kind of Mac?
     
  7. mbcollins93 thread starter macrumors member

    mbcollins93

    Joined:
    Aug 22, 2008
    #7
    I am looking for another device and I am useing a macbook pro. So wireless.
     
  8. yellow Moderator emeritus

    yellow

    Joined:
    Oct 21, 2003
    Location:
    Portland, OR
    #8
    Then as far as I know, ifconfig isn't what you need. That is for configuring your device's interfaces. Maybe what you're looking for is nmap?
    Why not just use /Applications/Utilities/Network Utility?
     
  9. lostngone macrumors demi-god

    lostngone

    Joined:
    Aug 11, 2003
    Location:
    Anchorage
    #9
    arp -a may show it.

    The only other way I would know how to do this is a ping sweep.
     
  10. RandomKamikaze macrumors 6502a

    RandomKamikaze

    Joined:
    Jan 8, 2009
    Location:
    UK
    #10
    arp -a will displays all of the current ARP entries.

    The arp entry will only be created when you have resovled the address.

    Is it something similar to net view that you want? Do you know the device's name?
     
  11. lostngone macrumors demi-god

    lostngone

    Joined:
    Aug 11, 2003
    Location:
    Anchorage
    #11
    Yes but in a Wireless topology isn't everyone on a single broadcast domain that is on that wireless AP?

    I would think that arp would give you a pretty complete list.
     
  12. Brethil macrumors newbie

    Brethil

    Joined:
    Apr 12, 2007
    #12
    I usually use the ping command to check for all the IPs in a network.
    For example if the adresses in my network are formatted like this
    10.0.1.x
    I simply type in the terminal ping 10.0.1.255 and all the reacheable IPs in the network will be pinged.

    If you use another formatting just add the first 3 numbers and put 255 in the last block
    eg:
    192.168.1.255
     

Share This Page