Cara Konfigurasi DHCP Server di Ubuntu
Install DHCP Server
1 | sudo apt-get install isc-dhcp-server |
Pada PC terdapat 2 ethernet eth0 dan eth1, yang mau diset DHCP Server eth1
1 2 | sudo nano /etc/default/isc-dhcp-server INTERFACE="eth1" |
Backup file dhcpd.conf
1 | sudo cp /etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd.conf.backup |
Edit file dhcpd.conf
1 | sudo nano /etc/dhcp/dhcpd.conf |
Isi file dhcpd.conf
1 2 3 4 5 6 7 8 9 10 11 12 13 | ddns-update-style none; default-lease-time 86400; # 24 jam max-lease-time 172800; # 48 jam authoritative; log-facility local7; option subnet-mask 255.255.255.0; option broadcast-address 10.10.10.255; option routers 10.10.10.1; #ip router/gateway option domain-name-servers 10.10.10.1, 8.8.8.8; option domain-name "ubuntu.lan"; subnet 10.10.10.0 netmask 255.255.255.0 { range 10.10.10.50 10.10.10.200; #range ip dhcp } |
Restart DHCP Server
1 | sudo service isc-dhcp-server restart |
referensi :
opensource.telkomspeedy.com/wiki
rbgeek.wordpress.com