CARA INSTALL DAN KONFIGURASI DHCP SERVER PADA LINUX UBUNTU SERVER 23.10 (ISC DHCP SERVER)

IT Newbie
16 Nov 202313:17

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

00:00

💻 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.

05:00

🛠️ 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.

10:03

🌐 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

Ubuntu Server 23.10 refers to the latest version of Ubuntu Server, a free and open-source server operating system. In the video, the presenter has installed this version on a virtual machine using VirtualBox, which is a platform for running virtual systems. The video focuses on configuring a DHCP server on this version of Ubuntu Server, demonstrating its use in setting up network services.

💡VirtualBox

VirtualBox is a software that allows users to run multiple operating systems on a single physical machine. In the script, the presenter mentions opening VirtualBox to access the Ubuntu Server 23.10 that they have installed. VirtualBox is used to create a virtual environment where the server can operate independently, which is essential for testing and configuring server settings without affecting the host system.

💡Network Adapter

A network adapter is a hardware component that connects a computer to a network. In the video script, the presenter configures the network adapter in VirtualBox to enable communication between the virtual machine and the host machine. This is crucial for the DHCP server configuration as it allows the virtual server to interact with other devices on the network.

💡DHCP Server

A DHCP (Dynamic Host Configuration Protocol) server is a network server that automatically assigns IP addresses to devices on a network. In the video, the main task is to configure a DHCP server on Ubuntu Server 23.10. The DHCP server will manage IP addresses for devices connecting to the network, which is a fundamental service for network administration.

💡CLI

CLI stands for Command Line Interface, which is a text-based interface for interacting with a computer or software. The script mentions that Ubuntu Server 23.10 uses CLI for executing commands, which is a common method for server administration. The presenter uses CLI commands to check the server's IP address and to configure the DHCP server.

💡IP Address

An IP address is a unique numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication. In the video, the presenter checks the IP address of the Ubuntu Server 23.10, which is necessary for network communication and for the DHCP server to function correctly.

💡ISC DHCP Server

ISC DHCP Server is a widely used implementation of the DHCP server. In the script, the presenter installs the ISC DHCP server package on Ubuntu Server 23.10 to set up the DHCP service. This software will manage the automatic assignment of IP addresses within the network.

💡Configuration File

A configuration file contains settings that dictate how a system or application behaves. In the video, the presenter edits configuration files such as '/etc/default/isc-dhcp-server' and '/etc/dhcp/dhcpd.conf' to customize the DHCP server's settings. These files are essential for defining the network's IP range, subnet mask, and other parameters that the DHCP server will use.

💡Subnet Mask

A subnet mask is used to divide a network into smaller networks and to identify the network and host portions of an IP address. In the script, the presenter configures the subnet mask in the DHCP server settings, which is necessary for the server to understand the network structure and assign IP addresses correctly.

💡DNS Server

A DNS (Domain Name System) server is responsible for translating domain names (like google.com) into IP addresses that computers can understand. In the video, the presenter sets up the DNS server in the DHCP configuration to provide clients with the IP addresses of DNS servers (8.8.8.8 and 8.8.4.4), which is essential for clients to access websites by name.

💡Default Gateway

A default gateway is a node on a network that acts as an entry point for external networks. In the video, the presenter configures the default gateway in the DHCP server settings, which directs traffic from local devices to external networks. This is vital for devices on the network to communicate with the internet.

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

play00:02

[Musik]

play00:21

[Musik]

play00:25

asalamualaikum warahmatullahi

play00:27

wabarakatuh jumpa lagi dengan saya

play00:28

Riswan di channel itbi pada video kali

play00:32

ini kita akan membahas tentang cara

play00:35

konfigurasi dhjp server pada Linux

play00:38

Ubuntu Server 23.10

play00:43

Ubuntu Server 23.10 Sudah saya instal di

play00:46

virtual box nah ini di aplikasinya

play00:48

virtual box sudah saya

play00:50

bukauntu server 3.10 ini Sudah saya

play00:53

instal sebelumnya pada virtual box kita

play00:57

klik dulu di bagian

play00:58

setting untuk bagian networknya

play01:01

attensnya saya buat di sini Pris adapter

play01:05

supaya komputer virtual dan komputer

play01:08

utama

play01:09

eh bisa saling berkomunikasi karena

play01:13

komputer utama saya hubungkan ke

play01:16

jaringan menggunakan kabel LAN nah di

play01:20

bagian Advance ini pastikan juga kabel

play01:23

konektiknya sudah

play01:26

diceklist untuk name-nya sendiri pas

play01:30

ethernet yang terhubung ke jaringan

play01:33

dipilih

play01:35

Oke sekarang kita hidupkan komputer

play01:39

Ung server

play01:41

3.10

play01:43

kita jalankan yang ada pada virtual box

play01:48

Oke kita tunggu ini masih proses loading

play01:52

untuk

play01:54

menghidupkan

play01:56

mesinubun per 3.1 yang ada pada dual box

play02:02

[Musik]

play02:18

oke nah untuk Ubuntu Server 23.10 yang

play02:23

saya

play02:23

instal yang sedang saya jalankan ini

play02:27

eh user interface-nya adalah berubahan

play02:29

untuk CLI Jadi segala perintah harus

play02:34

diketikkan Nah kita di sini kita login

play02:37

sebagai itbi

play02:39

enter kemudian ketikkan password-nya Oke

play02:43

untuk passwordnya sendiri karakternya

play02:44

tidak ditampilkan jika selesai diketik

play02:46

langsung di-enter nah ini dia eh bunt

play02:51

server

play02:52

23.10 untuk perintah-perintahnya sendiri

play02:55

harus dijalankan dengan

play02:58

ee

play03:00

baris perintah Oke kita ketikkan dulu

play03:04

IPA untuk mengecek IP address dari

play03:08

hubung server3.10 Nah di sini IP

play03:11

addressnya adalah

play03:14

192.168.1.2 untuk Inter sendiri adalah

play03:17

nv0s3

play03:20

oke sekarang saya buka aplikasi putih

play03:22

untuk

play03:24

meremotebn untuk merver

play03:28

3.10 supaya enak untuk melakukan

play03:33

konfigurasinya Nah kita cek IP address

play03:35

yang akan kita konfigurasi yaitu

play03:41

192.168.1.2 yaitu IP address dari ubun

play03:43

server 23.10 untuk interface-nya sendiri

play03:46

adalah env0s3

play03:50

Oke kita cliar layar dulu kemudian kita

play03:53

ping ke google.com untuk memastikan

play03:55

bahwa komputer umun server 23.10 sudah

play03:59

ter terhubung ke

play04:02

internet Nah sekarang kita akan

play04:06

memulai instal

play04:10

aplikasi untuk membuat dhp dhjp

play04:15

server maka langkah pertama yang kita

play04:18

lakukan adalah meng-update terlebih

play04:20

dahulu dengan mengetikkan perintah sudo

play04:22

APT update

play04:24

Oke kemudian masukkan

play04:28

password dari

play04:30

Superuser nah ini sedang melakukan

play04:34

proses

play04:35

update Nah update-nya sudah selesai

play04:38

selanjutnya kita akan melakukan

play04:41

instalasi

play04:43

aplikasinya untuk aplikasinya sendiri di

play04:46

sini saya

play04:47

menggunakan

play04:50

ISC DHCP server Nah kita akan melakukan

play04:56

instalasi aplikasi ISC dhc p server

play05:00

dengan mengetikkan perintah sudo APT

play05:03

instal

play05:04

ISG DHCP server kemudian

play05:08

enter oke jadi aplikasi ISC DHCP server

play05:13

adalah aplikasi

play05:15

untuk membangun atau membuat sebuah

play05:18

server

play05:20

DHCP di dalam jaringan

play05:25

Oke jadi karena proses instalasinya dari

play05:28

internet

play05:30

maka pastikan komputer server tersebut

play05:33

sudah terhubung ke internet nah ini dia

play05:36

prosesnya sudah selesai langkah

play05:39

berikutnya yaitu kita

play05:42

melakukan

play05:45

konfigurasi karena jika hanya diinstal

play05:47

seperti ini DHCP servernya belum bisa

play05:52

dijalankan jadi kita konfigurasi

play05:55

terlebih dahulu untuk

play05:57

menyesuaikan dengan IP atau konfigurasi

play06:01

dari jaringan yang kita

play06:05

gunakan yang pertama-tama kita kita

play06:07

konfigurasi terlebih

play06:09

dahulu file dari ISC DHCP

play06:13

server dengan mengetikan perintah

play06:18

nano/etc/deault/usg DHCP server Nah

play06:22

masuk ke bagian

play06:23

bawah kita lihat baris interface Nah di

play06:30

sini masih kosong maka isikan env0 S3

play06:34

sesuai dengan interface yang kita

play06:35

gunakan untuk terhubung ke jaringan

play06:39

kalau

play06:40

sudah simpan keluar dan simpan tekan

play06:44

ctrl X kemudian Eh ketik y kemudian

play06:49

enter Nah setelah selesai

play06:52

mengkonfigurasi file ISC DHCP server

play06:55

selanjutnya kita akan

play06:57

mengkonfigurasi file eh di bawah folder

play07:07

etc/dhcp/dhjpd.

play07:09

comom

play07:10

Nah dengan mengetikkan perintah sudu

play07:14

nano/etc/dhcp/dhcpd.com

play07:21

Oke kemudian

play07:22

[Musik]

play07:24

enter nah ini dia file yang akan

play07:27

konfigurasi kita Scroll ke bagian bawah

play07:31

dengan

play07:32

ee menekan tanda panah ke bawah nah di

play07:36

sini kita atur IP address yang akan

play07:40

diberikan secara otomatis pada Komputer

play07:43

klien nah di bagian sini kita hilangkan

play07:47

tanda pagar di bagian kirinya atau di

play07:51

bagian depannya supaya baris-baris

play07:55

perintah ini dibaca sebagai program eh

play08:01

jika tanda pagarnya masih

play08:04

ada maka baris ini dibaca sebagai

play08:09

komentar jadi dia tidak bisa

play08:13

dieksekusi maka kita hilangkan dulu

play08:16

barisnya baris

play08:19

pagarnya kita hapus dulu tanda pagarnya

play08:22

nah untuknya sendiri kita atur sesuai

play08:24

dengan subnet yang ada di jaringan

play08:27

kita untuk jaringan yang gunakan ini

play08:29

submitnya

play08:32

[Musik]

play08:34

192.168.1.0 nah ini sesuai dengan IP

play08:37

address IP server yang kita gunakan

play08:40

untuk netmx-nya yaitu

play08:45

255.255.255.0 sudah diganti

play08:47

eh kemudian range-nya yaitu IP yang akan

play08:52

kita berikan ke Komputer klien yang

play08:55

merequest IP secara otomatis ya jadi

play08:59

kita mulai dari

play09:00

[Musik]

play09:02

192.168.1.100 sampai dengan

play09:05

[Musik]

play09:08

192.168.1.130 jadi di rentang IP inilah

play09:11

yang akan diberikan ke Komputer klien

play09:14

yang eh merequest IP address dari DHCP

play09:18

server untuk option Domain Name

play09:20

servernya atau dns-nya saya buat di sini

play09:24

openns dari Google yaitu

play09:27

8.8.8.8 kemudian op domain name-nya

play09:32

8.8.4.4 Nah untuk obsnmas yang akan

play09:35

diberikan yaitu

play09:38

255.255.255.0 dan Ops router atau

play09:42

gateway-nya yaitu 192.168.1.1

play09:49

oke nah jadi kita definisikan dulu

play09:52

Berapa IP address yang kita berikan

play09:55

kemudian DNS

play09:58

dan sub netmas serta default getway-nya

play10:03

Nah untuk broadcast-nya di kita

play10:07

definisikan juga yaitu 192.108.1.255

play10:09

[Musik]

play10:14

oke nah untuk option domain name-nya

play10:22

8.8.4.4 ini tidak usah digunakan jadi

play10:27

tinggal ketika aja tanda pagar di bagian

play10:31

kirinya Oke jadi kita tidak perlu

play10:35

mendefinisikan Ops Domain Name karena

play10:38

option Domain Name server sudah di eh

play10:42

definisikan di bagian atas Oke jika

play10:44

sudah selesai tekan ctrl X kemudian

play10:47

disimpan dengan mengetikkan y kemudian

play10:51

enter Nah kita periksa kembali aplikasi

play10:54

ini apakah sudah bisa digunakan di sini

play10:56

statusnya masih pilot jadi belum bisa

play11:00

ee

play11:02

digunakan Nah sekarang kita ketikkan

play11:05

perintah untuk

play11:07

mengaktifkan atau menjalankan aplikasi

play11:10

tersebut yaitu sudu sistem

play11:12

CTL start ISC DHCP server jadi kita

play11:17

jalankan dulu aplikasi ini supaya bisa

play11:22

eh digunakan di dalam jaringan

play11:27

Oke jika sudah dijalankan selanjutnya

play11:30

yaitu kita akan e mengecek di bagian

play11:36

Komputer klien untuk merequest IP

play11:39

address

play11:43

dari server DHCP Nah untuk komputer

play11:47

kalian yang saya gunakan di sini adalah

play11:49

Windows 10 atau komputer utama yang Saya

play11:53

instalkan virtual box Nah kita masuk ke

play11:58

bagian

play11:59

internetnya

play12:01

kemudian kita setting di bagian internal

play12:04

protokol versi 4nya

play12:07

yang

play12:09

jadi pilihannya adalah uptain an IP

play12:12

address automatically kemudian obtain

play12:16

DNS maka dengan mengkonfigurasi seperti

play12:19

itu dia akan Mau request IP address ke

play12:22

DHCP server sehingga DP server akan

play12:25

memberikan IP address sesuai dengan

play12:30

konfigurasi dari DHCP server itu sendiri

play12:33

ke

play12:35

jaringan atau ke Komputer klien yang ada

play12:38

di dalam jaringan nah ini dia IP yang

play12:40

diperoleh yaitu

play12:42

192.168.1. 101 sesuai dengan range IP

play12:46

yang kita berikan dimulai dari 100

play12:50

sampai 130

play12:56

Oke demikianlah cara konfigurasi DHCP

play12:59

server pada Ubuntu Server

play13:02

23.10

play13:04

mudah-mudahan bermanfaat saya akhiri

play13:08

asalamualaikum warahmatullahi

play13:15

wabarakatuh

Rate This

5.0 / 5 (0 votes)

Ähnliche Tags
Ubuntu ServerDHCP SetupLinux NetworkingVirtualBoxIP ConfigurationServer TutorialInternet SetupNetwork AdminTech GuideSystem Admin
Benötigen Sie eine Zusammenfassung auf Englisch?