Configure DHCP Server on VMware

 

DHCP SERVER CONFIGURATION



Members of the group:

1. Giri Aditya

2. Muhammad Satria Bayu Aji

3. Muhammad Sulthon Akbar


A. Learning objectives:

DHCP Server (Dynamic Host Configuration Protocol Server) is a network service that automatically assigns IP addresses and other network configuration information to devices (clients) connected to the network. Instead of manually setting the IP on each device, DHCP allows the device to automatically receive an IP when it joins the network.


This service facilitates network management, especially on large networks, because it can set IP, subnet mask, gateway, and DNS automatically and consistently. DHCP Server also helps prevent IP conflicts, which is a situation when two devices have the same IP address.

B. Preparation of Tools and Materials:

Hardware: 

·        Laptop 

 

 

 

 

 

 

 

  • Debian 11 ISO

 

·        VMware Workstation Pro 16

 

·       Putty








1. open putty and enter the server ip address, then click open.



2. Enter the username in login, and enter the password. Then switch to super user using the su command, and enter the password again. And make sure the user is root.



3. then enter the command nano /etc/network/interfaces to add the host only ip.


4. The interface to be used is ens34, then enter the IP Address to be used. Example 111.111.111.1/24. This IP address will later be used as the Gateway IP by the client device.



5. After that, reboot the server so that the configuration can be seen.




6. then enter the command ip a to see the ip host only ens34.


7. Move the directory to /etc/apt by entering the command cd /etc/apt . Then, back up the resources.list file by entering the command cp resources.list resources.list.backup . The cd command changes directories and the cp command copies.

 


8. then go to the web browser, and search for the debian 11 repository, then copy the repository.



9.Then delete the source list with the command rm source.list, then enter the source list with the command nano source.list.




10. Then right click to put a copy of the debian 11 repository, then click ctrl+x, y, enter.


11. Then enter the cat.source.list command, this function is to see the results of the Debian 11 repository copy.

12. Then do apt update to update the newly added debian server repository.


13. Install the DHCP Server application on the Debian Server by entering the command apt install isc-dhcp-server-ldap . Click Y then ENTER on the keyboard to continue the installation process.



14. just let the result failed.


15. Then move the directory to etc/dhcp using the command cd /etc/dhcp. Then backup the contents of dhcpd.conf with the command cp dhcpd.conf dhcpd.conf.backup.




16. open the dhcpd.conf file with the command nano dhcpd.conf.











17. To configure the DHCP Server via the file dhcpd.conf, first find the section that has a comment that says "Slightly different configuration for internal subnets" . The sentence is then changed to "Slightly different settings for internal networks" so that the meaning remains the same but with a different wording. After that, remove the hash ( #) in front of the configuration lines below the comment, so that the configuration becomes active and readable by the system.


18. The nano /etc/default/isc-dhcp-server command shown in the image is used to open the DHCP server configuration file using a text editor called nano. The file is located in the /etc/default/ directory and is named isc-dhcp-server. 



19. This file functions to determine the initial settings for the DHCP service, one of which is which network interface will be used by the DHCP server to provide IP addresses to clients. By opening this file, users can set the active network interface, such as ens34, which will later be used by the server to serve DHCP requests.



20. To save and run the DHCP Server configuration, enter the command /etc/init.d/isc-dhcp-server restart. With this command, the DHCP Server service will be reloaded so that the configuration changes that have been made will be applied and the DHCP Server will run according to the latest settings. Then check the DHCP status with the command /etc/init.d/isc-dhcp-server status




21. we can try by checking the Network Connection Details on the client device. Change the Internet Protocol Version 4 (TCP?IPv4) Properties to dynamic or acquired.



configuration results:

IP address from dhcp server configuration results.

dhcp lease section:



Ipconfig results in command prompt:



Komentar

Postingan Populer