|
|
an easier way, perhaps
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 -aallows 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 localhostor telnet 127.0.0.1en0 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 en1hope this helps, mike |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.07 seconds |
|