Konfigurasi DHCP Server di Debian 10

 

1. nano /etc/network/interfaces

auto enp0s3
iface enp0s3 inet static
address 192.168.100.1
netmask 255.255.255.0
network 192.168.100.0
broadcast 192.168.100.255

Simpan ctrl + x, (tekan y) (tekan enter)

2. systemctl restart networking

3. apt-cdrom add (pilih iso dari debian, dvd 1,2 dan3)
    (agar lebih jelasnya lihat video)

4. apt update

5. apt install isc-dhcp-server

6. nano /etc/dhcp/dhcpd.conf
 
        subnet 192.168.100.0 netmask 255.255.255.0 {
        range 192.168.100.37 192.168.100.66;
        option domain-name-servers ns1.internal.example.org;
        option domain-name "internal.example.org";
        option routers 192.168.100.1;
        option broadcast-address 192.168.100.255;
        default-lease-time 600;
        max-lease-time 7200;
        }

   
    Simpan ctrl + x, (tekan y) (tekan enter)

7. nano /etc/default/isc-dhcp-server
INTERFACESv4 = "enp0s3"
Simpan ctrl + x, (tekan y) (tekan enter)

8. systemctl reboot
 
Lihat juga videonya :


Donni Zulhardi

Tunjukilah kami jalan yang lurus

Posting Komentar (0)
Lebih baru Lebih lama