Konfigurasi DHCP Server di Debian 11

 


1. nano /etc/network/interfaces
 
                
auto enp0s3
iface enp0s3 inet static
 

auto enp0s8
iface enp0s8 inet static
address 192.168.88.1/24

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

2. systemctl restart networking


3. apt update

4. apt install isc-dhcp-server

5. nano /etc/dhcp/dhcpd.conf
 
        subnet 192.168.88.0 netmask 255.255.255.0 {
        range 192.168.88.37 192.168.88.66;
        option domain-name-servers ns1.internal.example.org;
        option domain-name "internal.example.org";
        option routers 192.168.88.1;
        option broadcast-address 192.168.88.255;
        default-lease-time 600;
        max-lease-time 7200;
        }

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

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

7. systemctl reboot
 

8. install mikrotik di virtualbox

9. ip dhcp-client add disabled=no interfaces=ether1

10. ip address print

Donni Zulhardi

Tunjukilah kami jalan yang lurus

Posting Komentar (0)
Lebih baru Lebih lama