Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'an easier way, perhaps' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
an easier way, perhaps
Authored by: bakednotfried on May 05, '01 01:44:10PM
hey folks,
macosx comes with a common unix utility called ifconfig (for interface config) that allows you to configure network interface parameters. it also lets you display them as well. typing
ifconfig -a
allows you to see information for all the interfaces. running this on my system returns
lo0: flags=8049 mtu 16384
        inet 127.0.0.1 netmask 0xff000000 
en0: flags=8863 mtu 1500
        ether 00:30:65:bd:98:a6 
        media: autoselect (none) status: inactive
        supported media: none autoselect 10baseT/UTP  10baseT/UTP  100baseTX  100baseTX 
en1: flags=8863 mtu 1500
        inet aaa.bbb.ccc.ddd netmask 0xffffff00 broadcast aaa.bbb.ccc.255
        ether 00:30:65:00:82:9c 
        media: autoselect status: active
        supported media: autoselect
my machine has three interfaces. interface lo0 is the loopback interface, a logical interface that is always up. it is a way to say 'myself' in a computer. it has the ip address 127.0.0.1 and can be used to connect to yourself, as in
telnet localhost
or
telnet 127.0.0.1
en0 is the ethernet interface on my machine, and en1 is the airport card. the ip address for my airport card is aaa.bbb.ccc.ddd (obviously, not the real address). ifconfig tells you more than the ip address, including the hardware address or MAC address of the physical interface, 00:30:65:00:82:9c for my airport card. you can also display info for a particular interface
ifconfig en1
hope this helps,
mike

[ Reply to This | # ]