Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Basic principle and experiment of DHCP

Shulou Source: shulou.com Published: 2022-06-01 02:58:58 10月04日 Update

What is ① DHCP?

What are the advantages of ② DHCP?

What is the workflow of ③ DHCP?

How is the working process of ④ DHCP reflected?

1:DHCP is a service protocol in which the network automatically assigns TCP/IP parameters to computers.

Configure client IP address, subnet mask, gateway. As shown in figure 1-1

The advantages of 2:DHCP are as follows:

A. reduce the workload of administrators

B. the possibility of avoiding input errors

C. Avoid IP conflicts

D. Improve the utilization of IP address

E. Convenient client configuration

3: install the DHCP server

In order to visually simulate the workflow of DHCP, we installed the windows server-2016 system on the VMware virtual machine.

(check DHCP server) Click the rest of the next check box until the installation is complete.

Open the Windows tool management system

DHCP in manually sets the scope of IPv4 to form an address pool, for example, I set 192.168.100.1-192.168.100.100 available

Among them, I reserved the auspicious number 192.168.100.88 for BOSS and entered the MAC address of the boss machine. Finally, activate the scope and open the BOSS machine. We will see the following result:

The premise of the above realization is that the virtual machine network card is set to host-only mode and in the same network segment, the Boss machine and server16 achieve signal transmission and collection through the same virtual machine network card.

DHCP is allocated in the following ways:

Automatic allocation

Manual assignment

Dynamic allocation

The workflow of 4:DHCP can be captured by wireshark software, such as:

You can see that there are several steps for the client to obtain the IP address on the DHCP server:

Client requests IP

Server response

Client chooses IP

The server determines the lease

Tags: Service address client server assignment work client workflow process advantage role client manual system network card management input configuration intuitive host Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Linux NVidia MySQL Huawei