Showing posts with label DHCP. Show all posts
Showing posts with label DHCP. Show all posts

How to setup a computer connection to DHCP via Command prompt

First, We define DHCP. DHCP stands for Dynamic Host Configuration Protocol. It is a network protocol that let the devices communicate with each other via Internet Protocol(IP). This is implemented in the server to easily distribute IP address on the computers connected to the network. The computer will have their IP address automatically If the computers Local Area Connection Internet Protocol is configured to Obtain an IP address automatically.

In order for us to configured a Local Area connection of a computer ti have it DHCP enabled is by the following command below.

netsh interface ip set address "Local Area Connection" dhcp
netsh interface ip set dns "Local Area Connection" dhcp

ipconfig /release
ipconfig /flushdns
ipconfig /renew
ipconfig /registerdns

You can create a batch file or run it in command prompt whichever you preferred.