Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Quickly build a simple DHCP service (exclusive to rookies)

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Windows server

Windows server is the Windows server operating system launched by Microsoft on April 24, 2003. its core is Microsoft Windows Server System (WSS), and each Windows Server corresponds to its home (workstation) version (except 2003 R2).

DHCP service

DHCP service is the dynamic host configuration protocol, which is the network protocol of a local area network. It means that the server controls a range of IP addresses, and when the client logs in to the server, it can automatically obtain the IP address and subnet mask assigned by the server. First, the DHCP server must be a computer with the Windows 2000 Server/Advanced Server system installed; second, the computer acting as the DHCP server needs to install the TCP/IP protocol and set a static IP address, subnet mask, default gateway, and so on.

Goal:

The DHCP server was successfully built using Windows Server2016, and the client was successfully assigned a dynamic ip (or a reserved static ip can be obtained)

First, use Server2016 server system to build DHCP server

First of all, build the virtual environment of Server2016 through VM14 (the specific construction process is the same as Windws). For the specific installation process, please see my first blog post.

Turn on the virtual machine after installation, as shown in the figure:

After successfully entering the Server2016 system, open the Server Manager

After opening the "Server Manager", click "add roles and functions" on the home page as shown in the figure:

Next, complete the construction of DHCP according to the prompts, as shown in the figure:

After completing the installation, specify a specific static ip for the server through "change Adapter Settings", as shown in the figure:

After specifying the static ip, click the start menu bar to enter the installed DHCP server, as shown in the figure:

Then, find IPV4 under the server drop-down menu bar, and right-click "New scope" as shown in the figure:

Then follow the prompts to complete the scope establishment, as shown in the figure:

At this point, the construction of the DHCP server is over, and the next step is to use the client to get the dynamic ip assigned by the server.

Second, use the client to obtain the dynamic ip assigned by DHCP

First, open the client (and make sure the client network adapter is in host-only mode)

Right-click the start menu bar, select "run" and enter cmd, bring up the "Command prompt", and then enter "ipconfig/renew" (re-obtain ip) to successfully obtain the ip assigned by DHCP as shown in the figure:

Third, get a fixed static ip for the client

Right-click retain in the previously built DHCP server, and select "New retention" as shown in the figure:

In the New retention window, enter the ip address you want to reserve and the MAC frame address of the destination client, as shown in the figure:

So how do you not query the MAC address through the client? The client has previously obtained the dynamic ip assigned by the DHCP server, and we can query it by typing "arp-a" at the command prompt, as shown in the figure:

Copy the MAC address into the text box and click OK. Then, return to the client, type "ipconfig/release" at the command prompt to release the ip address in the machine, and then type "ipconfig/renew" to get the new static ip again, as shown in the figure:

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report