Konfigurasi DHCP Server di Debian 11

 

 
Langkah-langkah nya sebagai berikut :

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

        auto enp0s8
        iface enp0s8 inet static
            address 192.168.50.1/24

2. systemctl  restart networking

3. apt install net-tools dnsutils

4. nano /etc/sysctl.conf
    net.ipv4.ip_forward=1

5. apt install iptables-persistent

6. iptables -t nat -A POSTROUTING -o enp0s3 -j MASQUERADE

7. netfilter-persistent save

8. netfilter-persistent reload
 
9. apt install isc-dhcp-server

10. nano /etc/default/isc-dhcp-server
    INTERFACESV4="enp0s8"
 
11.  nano /etc/dhcp/dhcpd.conf
        subnet 192.168.50.0 netmask 255.255.255.0 {
        range 192.168.50.20 192.168.50.70;
        option domain-name-servers 192.168.50.1, 8.8.8.8;
        option domain-name "internal.example.org";
        option routers 192.168.50.1;
        option broadcast-address 192.168.50.255;
        default-lease-time 600;
        max-lease-time 7200;
}

11. systemctl reboot

 

Lihat videonya :

https://www.youtube.com/watch?v=UD2Ebd2w040 


Terimakasih 

Mudah-mudahan bermanfaat

 

Donni Zulhardi

Tunjukilah kami jalan yang lurus

Posting Komentar (0)
Lebih baru Lebih lama