Difference between revisions of "DHCP"

From wikieduonline
Jump to navigation Jump to search
Line 15: Line 15:
  
  
Renew DHCP address in your macOS from command line:
+
Renew DHCP address in your [[macOS]] from command line:
* <code>sudo ipconfig set en0 BOOTP && sudo ipconfig set en0 DHCP && sleep 5 && sudo ipconfig getifaddr en0</code>
+
* <code>interface=en0 && sudo ipconfig set $interface BOOTP && sudo ipconfig set $interface DHCP && sleep 5 && sudo ipconfig getifaddr $interface</code>
 
 
  
 
== Activities ==
 
== Activities ==

Revision as of 14:57, 21 January 2020

The Dynamic Host Configuration Protocol (DHCP) is a network management protocol used on UDP/IP networks whereby a DHCP server dynamically assigns an IP address and other network configuration parameters to each device/computer on a network.


  • Static vs dynamic IP addressing
  • Reservations
  • Scopes
  • Leases
  • Options (DNS servers, suffixes)
  • IP helper/DHCP relay


Related files:

  • /etc/dhcp/dhclient.conf


Renew DHCP address in your macOS from command line:

  • interface=en0 && sudo ipconfig set $interface BOOTP && sudo ipconfig set $interface DHCP && sleep 5 && sudo ipconfig getifaddr $interface

Activities

See also

Advertising: