As OSX is based on UNIX you need to type in the following command from a terminal prompt. This has been tested on: OSX Mavericks, Yosemite, EL Capitan. This command should also work for other versions of OSX. Please Note: This is a “QUICK SUPPORT” article. The information contained herein is provided as is. Jul 25, 2015 usage: ipconfig. Where is one of waitall, getifaddr, ifcount, getoption, getpacket, getv6packet, set, setverbose. I don't have any idea of what to do. Is this what is supposed to happen because i am reading tutorials on the. Ipconfig in Mac OS X serves as a wrapper to the IPConfiguration agent, and can be used to control the Bootstrap Protocol and DHCP client from the command-line interface. Like most Unix-based operating systems, Mac OS X also uses ifconfig for more direct control over network interfaces, such as configuring static IP addresses.
Mac OS X ipconfig
I've removed advertising from most of this site and will eventually clean up the few pages where it remains.
While not terribly expensive to maintain, this does cost me something. If I don't get enough donations to cover that expense, I will be shutting the site down in early 2020.
If you found something useful today, please consider a small donation.
Some material is very old and may be incorrect today
© May 2019 Anthony Lawrence
![Mac Mac](/uploads/1/2/4/8/124897039/300124426.jpg)
If you momentarily forget where you are at a Mac OS X terminalsession, you might type 'ipconfig /all' or something equallyWindowish. You will get a response:
usage: ipconfig <command> <args>>
where <command> is one of waitall, getifaddr, ifcount, getoption, getpacket, set, setverbose
where <command> is one of waitall, getifaddr, ifcount, getoption, getpacket, set, setverbose
What's this? You already know you mistyped: on Mac OS X youprobably meant to run 'ifconfig -a' just as you would on Linux. But'ipconfig' is different, and is actually something goodto have in your bag of tricks.
The first thing ipconfig can do for you is quickly give you allyour dhcp info:
$ ipconfig getpacket en0
op = BOOTREPLY
htype = 1
flags = 0
hlen = 6
hops = 0
xid = 1045997387
secs = 0
ciaddr = 0.0.0.0
yiaddr = 192.168.9.30
siaddr = 0.0.0.0
giaddr = 0.0.0.0
chaddr = 0:16:cb:8d:38:f7
sname =
file =
options:
Options count is 7
dhcp_message_type (uint8): ACK 0x5
subnet_mask (ip): 255.255.255.0
lease_time (uint32): 0x93a80
router (ip_mult): {192.168.9.254}
domain_name_server (ip_mult): {192.168.9.254}
server_identifier (ip): 192.168.9.254
end (none):
op = BOOTREPLY
htype = 1
flags = 0
hlen = 6
hops = 0
xid = 1045997387
secs = 0
ciaddr = 0.0.0.0
yiaddr = 192.168.9.30
siaddr = 0.0.0.0
giaddr = 0.0.0.0
chaddr = 0:16:cb:8d:38:f7
sname =
file =
options:
Options count is 7
dhcp_message_type (uint8): ACK 0x5
subnet_mask (ip): 255.255.255.0
lease_time (uint32): 0x93a80
router (ip_mult): {192.168.9.254}
domain_name_server (ip_mult): {192.168.9.254}
server_identifier (ip): 192.168.9.254
end (none):
There are shortcuts to the items listed under 'options':
$ ipconfig getoption en0 router
192.168.9.254
$ ipconfig getoption en0 domain_name_server
192.168.9.254
192.168.9.254
$ ipconfig getoption en0 domain_name_server
192.168.9.254
'ipconfig getifaddr en0' is a quick way to just get the ip address.You can also use ipconfig with its 'set' options to change an interfacefrom DHCP to manual or vice-versa. That's temporary; it doesn'twrite any start up files.
If you are having difficulty with DHCP, ipconfig has one more use: you can (as root) set verboselogging with 'ipconfig setverbose 1'. With that set, you getminor debugging info written to syslog (/var/log/system.log on my system), but you also get a separateBOOTP/DHCP log in /var/log/com.apple.IPConfiguration.bootp thatshows the full BOOTREQUEST/BOOTREPLY packet negotiation.
Think of ipconfig the next time you are looking for DHCP info ona Mac.
![Ipconfig Ipconfig](/uploads/1/2/4/8/124897039/154128322.png)
If you found something useful today, please consider a small donation.
Got something to add? Send me email.
Ipconfig Command For Mac Address
(OLDER) <- More Stuff-> (NEWER) (NEWEST)
Printer Friendly Version
-> -> Mac OS X ipconfig
Ipconfig For Remote Machine
Inexpensive and informative Apple related e-books:
Digital Sharing Crash Course
Are Your Bits Flipped?
Take Control of Automating Your Mac
Take Control of High Sierra
Take Control of Apple Mail, Third Edition