simple dhcp server

distro: CentOS 5.5 x86_64
# yum install dhcp
konfigurasi dhcp server range 192.168.1.110 - 192.168.1.115
yang berarti hanya untuk 5 client, 1 IP pada tiap client

# vi /etc/dhcpd.conf

ddns-update-style ad-hoc;
ddns-update-style interim;
subnet 192.168.1.0 netmask 255.255.255.0 {
        option routers                  192.168.1.1;
        option subnet-mask              255.255.255.0;

        option domain-name              "jabetto.lan";
        option domain-name-servers       192.168.1.160;

        option time-offset              -18000;     # Eastern Standard Time

    range 192.168.1.110 192.168.1.115;
}

# service dhcpd start
# chkconfig dhcpd on

untuk testing
pada client jalankan
# dhclient eth0

No comments:

Post a Comment