bayu – mandriva – other Linux

21 Agustus 2007

Setup DHCP Server

Diarsipkan di bawah: Slackware, Tips — bayuart @ 10:12 am

untuk instalasi DHCP di slackware, yang dibutuhkan adalah paket /slackware/n/dhcp-3.0.4-i486-2.tgz di CD

install seperti biasa, ato dengan cara manual
installpkg dhcp-3.0.4-i486-2.tgz

setelah selesai, langsung edit aja file konfigurasinya
(file konfigurasi sesuaikan dengan kondisi di tempat masing-masing)

# ISC DHCP-Server Configuration
# /etc/dhcpd.conf
#
default-lease-time 86400 ; # one day
max-lease-time 604800 ; # one week
ddns-update-style ad-hoc ;
ddns-updates on;
option ip-forwarding off;
option routers 192.168.2.1 ; # important when this corresponds to: ‘gateway’
option subnet-mask 255.255.255.0 ;
ignore client-updates ;
option broadcast-address 192.168.2.255 ;
option domain-name “mydomain.com” ;
option domain-name-servers 194.22.190.10 , 194.22.194.14; # important when this corresponds to: ‘DNS Servers’
#
# LAN
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.40 192.168.2.60;
}

# DMZ
subnet 192.168.3.0 netmask 255.255.255.0 {
range 192.168.3.40 192.168.3.60;
}
#
# List an unused interface here
subnet 192.168.1.0 netmask 255.255.255.128 {
}

kemudian test, mode debug

shell> killall dhcpd
shell> dhcpd -d &
(lagi…)

Blog pada WordPress.com.