Posts tagged with terminal
Thursday, May 8th, 2008 Renew a Mac's DHCP Lease Via Terminal
- Subscribe Posted in Technical
- Tagged as mac, terminal, networking, howto
- 0 Comments
- Trackback
Being a long-time (and still part-time) Windows user, I’ve spent many a not-so-happy second typing the following:
> ipconfig /release
> ipconfig /renew
Today, though, I made a few changes to secure my network and needed to renew the DHCP lease of my Mac. Usually, I’m sitting in front of the laptop so I can just use the System Preferences GUI, but not today. Today I had to remote in so I only had the command line available and I realized that I had no idea how to map the Windows commands above to the Mac terminal. Mostly for the sake of posterity:
$ sudo ipconfig set en0 BOOTP
$ sudo ipconfig set en0 DHCP
In typical Unix fashion, there’s no output to indicate that succeeded or did anything at all, for that matter, but it seems to do the trick.