Network commands and functions in the Terminal for Mac OS X
ifconfig
Syntax:
ifconfig
Usage:
Displays information about all your network connections on your Mac.
Add or configure network connections.
Example
| ifconfig | Displays information about your current network connections |
More information