Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

what is equivalent of dhclient command in mac os x?

share|improve this question

Darwin/Mac OS doesn't run separate processes to handle obtaining DHCP code, instead all handling of DHCP leases, &c, is handled by the IPConfiguration agent. As users, our interface to this is through ipconfig.

If you want information on a DHCP lease, ipconfig getpacketinterface (e.g., en0, en1), will give you the full lease packet it received from the server; e.g.:

htype = 1
dp_flags = 0
hlen = 6
hops = 0
xid = 272692599
secs = 0
ciaddr =
yiaddr =
siaddr =
giaddr =
chaddr = 0:11:24:a2:7:87
sname = 
file = 
Options count is 7
dhcp_message_type (uint8): ACK 0x5
server_identifier (ip):
lease_time (uint32): 0xd2f00
subnet_mask (ip):
router (ip_mult): {}
domain_name_server (ip_mult): {}
end (none): 
share|improve this answer

did you just want to renew your ip? if so have a look at this question.

hope this helps

share|improve this answer

You must log in to answer this question.