ifconfig command in Terminal

When I issue "ifconfig" command in Terminal, it does not give the IP address of the network interface. I use Ethernet connection for the Mac Pro (late 2013). However, the output of ifconfig does not show the IP address.


Is there anything I should know about using ifconfig command in Terminal? Thanks.

Mac Pro (Late 2013), OS X Mavericks (10.9.3)

Posted on Jun 8, 2014 2:59 PM

Reply
9 replies

Jun 8, 2014 3:20 PM in response to vett93

Perfectly clear, but not clear that you are certain you have an internet connection. You can use an interface normally, but not be connected at the moment you ran the command.


If I run it on mine, all interfaces are displayed. Those with a connection have inet addresses. Those not connected have no inet fields.


If it is being hidden for some reason, you might find the why in the man page.

Jun 8, 2014 3:32 PM in response to Barney-15E

I am using that Mac machine now and it is connected via an Ethernet interface. I can ping the default gateway ok. But when I issue ifconfig, I don't see eth0 or eth1.


What interface name should be displayed in Mac for Ethernet connection?


In the output of ifconfig, I see lo0:, gif0:, stf0:, en1:, en2, etc. Just no eth0 or eth 1....

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

ifconfig command in Terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.