CARA INSTALL DAN KONFIGURASI DHCP SERVER PADA LINUX UBUNTU SERVER 23.10 (ISC DHCP SERVER)
Summary
TLDRThis video tutorial guides viewers on configuring a DHCP server on Ubuntu Server 23.10 using the ISC DHCP server application. The presenter covers the installation process, network settings in VirtualBox, and command-line interface steps for updating, installing the DHCP server, and configuring it to assign IP addresses within a specified range. It also includes setting up DNS and gateway configurations, ensuring the server is connected to the internet, and verifying client connectivity by assigning IP addresses automatically.
Takeaways
- ๐ The video is a tutorial on configuring a DHCP server on Ubuntu Server 23.10.
- ๐ป The server is installed on VirtualBox, and network settings are adjusted for communication between the virtual machine and the host.
- ๐ The video ensures that the server is connected to the network and can access the internet, which is crucial for the DHCP server installation.
- ๐ ๏ธ The user interface for Ubuntu Server 23.10 has changed, and all commands are executed via the command line interface (CLI).
- ๐ The video demonstrates logging in as the 'itbi' user and entering the password, which does not display characters as they are typed for security.
- ๐ก The script checks the IP address of the Ubuntu Server 23.10, which is 192.168.1.2, with the interface being ens3.
- ๐ The video includes a step to ping google.com to confirm the server's internet connectivity.
- ๐ The tutorial updates the server with 'sudo apt update' before proceeding with the installation of the DHCP server software.
- ๐ฆ The ISC DHCP server is chosen and installed using 'sudo apt install isc-dhcp-server'.
- โ๏ธ Configuration of the DHCP server involves editing files in '/etc/default/' and '/etc/dhcp/dhcpd.conf' to set the network interface, IP range, and other necessary parameters.
- ๐ The video shows how to define the IP range for DHCP clients, set the DNS server to Google's public DNS (8.8.8.8 and 8.8.4.4), and configure the subnet mask and default gateway.
- ๐ After configuration, the DHCP server is started with 'sudo systemctl start isc-dhcp-server', and its status is checked to ensure it's running properly.
- ๐ฅ๏ธ The tutorial concludes with a demonstration of a client computer requesting an IP address from the DHCP server and receiving an IP within the defined range.
Q & A
What is the purpose of the video?
-The purpose of the video is to discuss and demonstrate how to configure a DHCP server on Ubuntu Server 23.10.
Which version of Ubuntu Server is used in the video?
-The video uses Ubuntu Server 23.10.
What is the virtualization software used in the video?
-The virtualization software used is VirtualBox.
How is the network adapter configured in VirtualBox for the virtual machine?
-The network adapter is configured as a host-only adapter to allow communication between the virtual machine and the host machine.
What is the IP address of the Ubuntu Server 23.10 in the video?
-The IP address of the Ubuntu Server 23.10 is 192.168.1.2.
What command is used to check the IP address of the server?
-The command used to check the IP address is 'ifconfig'.
What does the acronym 'DHCP' stand for?
-DHCP stands for Dynamic Host Configuration Protocol.
Which application is installed for the DHCP server?
-The application installed for the DHCP server is ISC DHCP server.
How is the ISC DHCP server application installed?
-The ISC DHCP server is installed using the command 'sudo apt install isc-dhcp-server'.
What is the configuration file for the ISC DHCP server?
-The configuration file for the ISC DHCP server is located at '/etc/dhcp/dhcpd.conf'.
What is the range of IP addresses that the DHCP server will assign to clients?
-The DHCP server will assign IP addresses in the range of 192.168.1.100 to 192.168.1.130.
What is the default gateway defined in the DHCP server configuration?
-The default gateway defined in the DHCP server configuration is 192.168.1.1.
How can the status of the DHCP server be checked?
-The status of the DHCP server can be checked using the command 'systemctl status isc-dhcp-server'.
How is the DHCP server started after configuration?
-The DHCP server is started using the command 'sudo systemctl start isc-dhcp-server'.
Outlines
๐ป Setting Up DHCP Server on Ubuntu Server 23.10
The video begins with the host, Riswan, greeting viewers and introducing the topic: configuring a DHCP server on Ubuntu Server 23.10. The server has been installed on VirtualBox, and Riswan guides viewers to access the network settings of the virtual machine. He emphasizes the importance of setting up the network adapter to allow communication between the virtual machine and the host machine, which is connected to a LAN network. Riswan then proceeds to power on the Ubuntu Server 23.10 and logs in as the user 'itbi'. The video highlights the command-line interface (CLI) nature of the server, where all commands must be typed in. Riswan checks the IP address of the server, which is 192.168.1.2, and verifies that the server is connected to the internet by pinging Google.com. The host then prepares to install the necessary application to create a DHCP server.
๐ ๏ธ Configuring the ISC DHCP Server
In this segment, Riswan explains the process of installing the ISC DHCP server, an application used to create a DHCP server within a network. He ensures that the server is connected to the internet before proceeding with the installation. After successfully installing the ISC DHCP server, Riswan moves on to configure it to match the network's IP configuration. He opens the configuration file using the 'nano' command and navigates to the 'interface' section, where he adds the network interface 'ens0s3'. Riswan then saves the changes and proceeds to configure another file located in '/etc/dhcp/dhcpd.conf'. He scrolls to the bottom of the file and removes comments to activate the IP address range configuration. He sets the subnet to 192.168.1.0 with a netmask of 255.255.255.0 and defines the range of IP addresses from 192.168.1.100 to 192.168.1.130 that will be automatically assigned to client computers. Riswan also configures the DNS servers to Google's public DNS (8.8.8.8 and 8.8.4.4) and sets the subnet mask and default gateway to 255.255.255.0 and 192.168.1.1, respectively.
๐ Activating and Testing the DHCP Server
The final paragraph covers the activation of the ISC DHCP server and testing its functionality. Riswan instructs viewers to run the server using the command 'sudo systemctl start isc-dhcp-server'. He then checks the status of the application and confirms that it is running. To test the DHCP server, Riswan configures a client computer, which is a Windows 10 machine, to obtain an IP address automatically from the DHCP server. He navigates to the network settings and ensures that the computer is set to obtain an IP address and DNS server automatically. Upon configuring, the client computer successfully receives an IP address (192.168.1.101) within the predefined range from the DHCP server. Riswan concludes the video by summarizing the steps and wishing viewers well.
Mindmap
Keywords
๐กUbuntu Server 23.10
๐กVirtualBox
๐กNetwork Adapter
๐กDHCP Server
๐กCLI
๐กIP Address
๐กISC DHCP Server
๐กConfiguration File
๐กSubnet Mask
๐กDNS Server
๐กDefault Gateway
Highlights
Introduction to configuring a DHCP server on Ubuntu Server 23.10
Ubuntu Server 23.10 is installed on VirtualBox
Network settings are configured for virtual machine communication
The host-only network adapter is set up for internal communication
The cable connection is checked for the virtual network
Starting Ubuntu Server 23.10 on VirtualBox
CLI is the primary interface for Ubuntu Server 23.10
Login as the 'itbi' user and enter the password
Commands must be executed from the command line
Checking the IP address of the Ubuntu Server 23.10
The IP address is 192.168.1.2 with the interface eno1
Opening a remote desktop application for server management
Pinging google.com to ensure internet connectivity
Starting the installation of the ISC DHCP server application
Updating the system with 'sudo apt update' before installation
Installing ISC DHCP server with 'sudo apt install isc-dhcp-server'
Configuring the ISC DHCP server to match the network's IP configuration
Editing the '/etc/default/isc-dhcp-server' file to include the network interface
Configuring the '/etc/dhcp/dhcpd.conf' file for IP address assignment
Specifying the range of IP addresses to be automatically assigned
Setting the DNS server to Google's public DNS (8.8.8.8 and 8.8.4.4)
Defining the subnet mask, default gateway, and broadcast address
Activating the ISC DHCP server with 'sudo systemctl start isc-dhcp-server'
Checking the client computer to request an IP address from the DHCP server
Configuring the client computer to obtain an IP address automatically
The client computer receives an IP address within the specified range
Conclusion of the DHCP server configuration tutorial
Transcripts
[Musik]
[Musik]
asalamualaikum warahmatullahi
wabarakatuh jumpa lagi dengan saya
Riswan di channel itbi pada video kali
ini kita akan membahas tentang cara
konfigurasi dhjp server pada Linux
Ubuntu Server 23.10
Ubuntu Server 23.10 Sudah saya instal di
virtual box nah ini di aplikasinya
virtual box sudah saya
bukauntu server 3.10 ini Sudah saya
instal sebelumnya pada virtual box kita
klik dulu di bagian
setting untuk bagian networknya
attensnya saya buat di sini Pris adapter
supaya komputer virtual dan komputer
utama
eh bisa saling berkomunikasi karena
komputer utama saya hubungkan ke
jaringan menggunakan kabel LAN nah di
bagian Advance ini pastikan juga kabel
konektiknya sudah
diceklist untuk name-nya sendiri pas
ethernet yang terhubung ke jaringan
dipilih
Oke sekarang kita hidupkan komputer
Ung server
3.10
kita jalankan yang ada pada virtual box
Oke kita tunggu ini masih proses loading
untuk
menghidupkan
mesinubun per 3.1 yang ada pada dual box
[Musik]
oke nah untuk Ubuntu Server 23.10 yang
saya
instal yang sedang saya jalankan ini
eh user interface-nya adalah berubahan
untuk CLI Jadi segala perintah harus
diketikkan Nah kita di sini kita login
sebagai itbi
enter kemudian ketikkan password-nya Oke
untuk passwordnya sendiri karakternya
tidak ditampilkan jika selesai diketik
langsung di-enter nah ini dia eh bunt
server
23.10 untuk perintah-perintahnya sendiri
harus dijalankan dengan
ee
baris perintah Oke kita ketikkan dulu
IPA untuk mengecek IP address dari
hubung server3.10 Nah di sini IP
addressnya adalah
192.168.1.2 untuk Inter sendiri adalah
nv0s3
oke sekarang saya buka aplikasi putih
untuk
meremotebn untuk merver
3.10 supaya enak untuk melakukan
konfigurasinya Nah kita cek IP address
yang akan kita konfigurasi yaitu
192.168.1.2 yaitu IP address dari ubun
server 23.10 untuk interface-nya sendiri
adalah env0s3
Oke kita cliar layar dulu kemudian kita
ping ke google.com untuk memastikan
bahwa komputer umun server 23.10 sudah
ter terhubung ke
internet Nah sekarang kita akan
memulai instal
aplikasi untuk membuat dhp dhjp
server maka langkah pertama yang kita
lakukan adalah meng-update terlebih
dahulu dengan mengetikkan perintah sudo
APT update
Oke kemudian masukkan
password dari
Superuser nah ini sedang melakukan
proses
update Nah update-nya sudah selesai
selanjutnya kita akan melakukan
instalasi
aplikasinya untuk aplikasinya sendiri di
sini saya
menggunakan
ISC DHCP server Nah kita akan melakukan
instalasi aplikasi ISC dhc p server
dengan mengetikkan perintah sudo APT
instal
ISG DHCP server kemudian
enter oke jadi aplikasi ISC DHCP server
adalah aplikasi
untuk membangun atau membuat sebuah
server
DHCP di dalam jaringan
Oke jadi karena proses instalasinya dari
internet
maka pastikan komputer server tersebut
sudah terhubung ke internet nah ini dia
prosesnya sudah selesai langkah
berikutnya yaitu kita
melakukan
konfigurasi karena jika hanya diinstal
seperti ini DHCP servernya belum bisa
dijalankan jadi kita konfigurasi
terlebih dahulu untuk
menyesuaikan dengan IP atau konfigurasi
dari jaringan yang kita
gunakan yang pertama-tama kita kita
konfigurasi terlebih
dahulu file dari ISC DHCP
server dengan mengetikan perintah
nano/etc/deault/usg DHCP server Nah
masuk ke bagian
bawah kita lihat baris interface Nah di
sini masih kosong maka isikan env0 S3
sesuai dengan interface yang kita
gunakan untuk terhubung ke jaringan
kalau
sudah simpan keluar dan simpan tekan
ctrl X kemudian Eh ketik y kemudian
enter Nah setelah selesai
mengkonfigurasi file ISC DHCP server
selanjutnya kita akan
mengkonfigurasi file eh di bawah folder
etc/dhcp/dhjpd.
comom
Nah dengan mengetikkan perintah sudu
nano/etc/dhcp/dhcpd.com
Oke kemudian
[Musik]
enter nah ini dia file yang akan
konfigurasi kita Scroll ke bagian bawah
dengan
ee menekan tanda panah ke bawah nah di
sini kita atur IP address yang akan
diberikan secara otomatis pada Komputer
klien nah di bagian sini kita hilangkan
tanda pagar di bagian kirinya atau di
bagian depannya supaya baris-baris
perintah ini dibaca sebagai program eh
jika tanda pagarnya masih
ada maka baris ini dibaca sebagai
komentar jadi dia tidak bisa
dieksekusi maka kita hilangkan dulu
barisnya baris
pagarnya kita hapus dulu tanda pagarnya
nah untuknya sendiri kita atur sesuai
dengan subnet yang ada di jaringan
kita untuk jaringan yang gunakan ini
submitnya
[Musik]
192.168.1.0 nah ini sesuai dengan IP
address IP server yang kita gunakan
untuk netmx-nya yaitu
255.255.255.0 sudah diganti
eh kemudian range-nya yaitu IP yang akan
kita berikan ke Komputer klien yang
merequest IP secara otomatis ya jadi
kita mulai dari
[Musik]
192.168.1.100 sampai dengan
[Musik]
192.168.1.130 jadi di rentang IP inilah
yang akan diberikan ke Komputer klien
yang eh merequest IP address dari DHCP
server untuk option Domain Name
servernya atau dns-nya saya buat di sini
openns dari Google yaitu
8.8.8.8 kemudian op domain name-nya
8.8.4.4 Nah untuk obsnmas yang akan
diberikan yaitu
255.255.255.0 dan Ops router atau
gateway-nya yaitu 192.168.1.1
oke nah jadi kita definisikan dulu
Berapa IP address yang kita berikan
kemudian DNS
dan sub netmas serta default getway-nya
Nah untuk broadcast-nya di kita
definisikan juga yaitu 192.108.1.255
[Musik]
oke nah untuk option domain name-nya
8.8.4.4 ini tidak usah digunakan jadi
tinggal ketika aja tanda pagar di bagian
kirinya Oke jadi kita tidak perlu
mendefinisikan Ops Domain Name karena
option Domain Name server sudah di eh
definisikan di bagian atas Oke jika
sudah selesai tekan ctrl X kemudian
disimpan dengan mengetikkan y kemudian
enter Nah kita periksa kembali aplikasi
ini apakah sudah bisa digunakan di sini
statusnya masih pilot jadi belum bisa
ee
digunakan Nah sekarang kita ketikkan
perintah untuk
mengaktifkan atau menjalankan aplikasi
tersebut yaitu sudu sistem
CTL start ISC DHCP server jadi kita
jalankan dulu aplikasi ini supaya bisa
eh digunakan di dalam jaringan
Oke jika sudah dijalankan selanjutnya
yaitu kita akan e mengecek di bagian
Komputer klien untuk merequest IP
address
dari server DHCP Nah untuk komputer
kalian yang saya gunakan di sini adalah
Windows 10 atau komputer utama yang Saya
instalkan virtual box Nah kita masuk ke
bagian
internetnya
kemudian kita setting di bagian internal
protokol versi 4nya
yang
jadi pilihannya adalah uptain an IP
address automatically kemudian obtain
DNS maka dengan mengkonfigurasi seperti
itu dia akan Mau request IP address ke
DHCP server sehingga DP server akan
memberikan IP address sesuai dengan
konfigurasi dari DHCP server itu sendiri
ke
jaringan atau ke Komputer klien yang ada
di dalam jaringan nah ini dia IP yang
diperoleh yaitu
192.168.1. 101 sesuai dengan range IP
yang kita berikan dimulai dari 100
sampai 130
Oke demikianlah cara konfigurasi DHCP
server pada Ubuntu Server
23.10
mudah-mudahan bermanfaat saya akhiri
asalamualaikum warahmatullahi
wabarakatuh
Browse More Related Video
Konfigurasi DHCP Server dan DHCP Client pada Router Mikrotik RB 951Ui-2HnD
Install and Configure DHCP Server in Windows Server 2019 Step By Step Guide
How to configure DHCP server | DHCP server configuration step by step
Cara setting Router Mikrotik agar komputer Client bisa terkoneksi internet dengan DHCP SERVER
DHCP Configuration - CompTIA A+ 220-1101 - 2.6
Windows Server 2012 r2 Tutorial Tagalog!
5.0 / 5 (0 votes)