ifconfig information available through terminal

Discussion in 'Mac OS X Server, Xserve, and Networking' started by homeshire, May 24, 2009.

  1. homeshire macrumors regular

    Jul 24, 2002
    Ohio, looking toward Germany
    I have no problem, but I'm curious about the information available through ifconfig in terminal. When I input the command, I get the following result:

    lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
    inet netmask 0xff000000
    inet6 ::1 prefixlen 128
    gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
    stf0: flags=0<> mtu 1280
    ether 00:14:51:2b:4f:10
    media: autoselect (none) status: inactive
    supported media: none autoselect 10baseT/UTP <half-duplex> 10baseT/UTP <full-duplex> 10baseT/UTP <full-duplex,flow-control> 10baseT/UTP <full-duplex,hw-loopback> 100baseTX <half-duplex> 100baseTX <full-duplex> 100baseTX <full-duplex,flow-control> 100baseTX <full-duplex,hw-loopback> 1000baseT <full-duplex> 1000baseT <full-duplex,flow-control> 1000baseT <full-duplex,hw-loopback>
    lladdr 00:14:51:ff:fe:2b:4f:10
    media: autoselect <full-duplex> status: inactive
    supported media: autoselect <full-duplex>
    inet6 fe80::214:51ff:fe7b:50eb%en1 prefixlen 64 scopeid 0x6
    inet netmask 0xffffff00 broadcast
    ether 00:14:51:7b:50:eb
    media: autoselect status: active
    supported media: autoselect

    I wondered if anyone might take a moment to explain all this to me. I don't mean everything; I'm primarily interested in understanding the local and external IP address and the MAC address as they are located in this jumble. Anything else important as well.

    A final point -- what information from here would i need to use ssh to connect to my parents computer for troubleshooting purposes?

    thank you
  2. RandomKamikaze macrumors 6502a


    Jan 8, 2009
    en0, en1 and fw1 are your interfaces.

    en1 is interface you are currently using as its the interface with the IP address (inet) inet6, is IPv6. Other stuff which will is sort've interesting is MTU size (at the default of 1500 and shouldn't be changed)

    If you want to SSH to your parents computer, you don't need any information here.

    If they are on the same LAN as you, you just need their IP address and then you would use "SSH user@x.x.x.x"

    If they aren't on your LAN, and you want to do this over a WAN link, you would need their current public IP address, then you would simply SSH to that. However, on their router, you would need to setup port forwarding on the rotuer to forward the SSH port to their computer, which, to make life easy would have a static address or a DHCP reservation

Share This Page