Wednesday, July 9, 2014

How Renew DHCP IP in MAC - Command Line

12:30 PM

The 'normal' way involves the Network preference pane in the System Preferences application. Click on the "Show" pull-down menu and select either 'Network Port Configurations' or 'Active Network Ports,' depending on whether you're using 10.2 or an earlier version. Click off the box next to your network port (usually 'Built-In Ethernet,' unless you're using AirPort), then hit 'Apply Now.' Then click it back on and hit 'Apply Now' again. And as Emeril might say ... BAM! New DHCP lease.





You can also do this through the Terminal. First type the Unix command

root@linuxstorages:~#  sudo ipconfig set en0 BOOTP

root@linuxstorages:~#  sudo ipconfig set en0 DHCP


If you're working with IP addresses through the terminal

root@linuxstorages:~# ipconfig getifaddr en0 

is another useful one; it should show you your current IP address.

Written by

0 comments :

Post a Comment

 

© 2014 Linux Storages | Updated . All rights resevered. Designed by Templateism