![]() ![]() It’s best to set DHCP for the specific interface, however. Sudo ipconfig set en0 DHCP & sudo ipconfig set en1 DHCP If the DHCP info returns blank, then either the interface queried was wrong, or the DHCP lease did not renew or distribute properly.Īnother crude option would be to run ipconfig for all available device interfaces on the Mac by stringing the syntax together like so: Once the command is run you can check if DHCP has set properly by determining DHCP info with the same ipconfig command with ‘getpacket’ like so:Īssuming the prior ‘set’ command was successful, getpacket will return the DHCP assigned IP, DNS server, subnet mask, router / gateway, and the lease time. Let’s say it’s en0, standard for modern Macs with wi-fi only. If you know the device interface (en0, en1, en2, etc), just run that command to release and then renew DHCP for the determined device. The basic syntax to renew DHCP lease from the command line with ipconfig is as follows: How to Renew DHCP Lease from Command Line of Mac ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |