Comments on “Renew a Mac's DHCP Lease Via Terminal”http://robwilkerson.org/2008/05/08/renew-a-macs-dhcp-lease-via-terminal/feed2009-10-28T10:27:24-04:00ChyrpRenew a Mac's DHCP Lease Via Terminaltag:robwilkerson.org,2009-10-28:/id/63//comment_136102009-10-28T10:27:24-04:002009-10-28T10:27:24-04:00tje210
<p>so i find going through all those menus tiresome when i need to renew my dhcp lease, so i was looking for a way to do it via terminal. found this website… and i executed those commands. checked it for effectiveness in the <span class="caps">GUI</span> menu, and immediately freaked when it said i had no IP address!! however, it seems i can still browse. ifconfig tells me i do have an ip, so that’s cool… but can anyone tell me why the <span class="caps">GUI</span> (and iStat) won’t tell me my ip? </p> Renew a Mac's DHCP Lease Via Terminaltag:robwilkerson.org,2009-04-02:/id/63//comment_66522009-04-02T11:23:10-04:002009-04-02T11:23:10-04:00murga
<p>hey, <br />
i think it should be ipconfig.</p>
<p>if i try to renew the adress with ifconfig I get an error</p>
<p>sh-3.2# ifconfig set en0 <span class="caps">DHCP</span><br />
ifconfig: interface set does not exist</p>
<p>so if i use ipconfig everything works fine.</p> Renew a Mac's DHCP Lease Via Terminaltag:robwilkerson.org,2009-03-07:/id/63//comment_60832009-03-07T12:36:40-04:002009-03-07T12:36:40-04:00Rob Wilkersonhttp://robwilkerson.org
<p>Yep, for the second code sample, you’re absolutely right. Typo. I’ve made the adjustment in the post. Thanks for pointing that out.</p> Renew a Mac's DHCP Lease Via Terminaltag:robwilkerson.org,2009-03-06:/id/63//comment_60522009-03-06T15:15:22-04:002009-03-06T15:15:22-04:00jcrowgey
<p>should be $ifconfig</p>