DHCP Server

Pada kali ini, akan dijelaskan bagaimana membuat server dhcp pada FreeBsd :

1. Download File dhcpd di http://www.hu.netfilter.org/packages/dhcp/dhcp-4.0.0a2.tar.gz 

2. Extract File dhcpd  

    root@tsubasa :~# tar zxvf dhcp-4.0.0a2.tar.gz

 

3. Compile dan install
    root@tsubasa :~# cd dhcp-4.0.0a2
    root@tsubasa :~/dhcp-4.0.0a2# ./configure
    root@tsubasa :~/dhcp-4.0.0a2# make && make install

4. Copy dhcpd.conf to /etc
    root@tsubasa :~# cp dhcp-4.0.0a2/server/dhcpd.conf /etc/dhcpd.conf

5. Edit dhcpd.conf  to configure your LAN
    example :
    #############dhcpd.conf###########################
    default-lease-time 86400; #satu Hari
    max-lease-time 604800;#satu minggu
    ddns-update-style ad-hoc ;
    ddns-updates on;
    ignore client-updates ;
    option domain-name "labkom.bl.ac.id";
    option domain-name-servers 192.168.100.5 ; # settingan untuk DNS Server

    # IC
    subnet 192.168.12.0 netmask 255.255.255.192 {
    range 192.168.12.1 192.168.12.61;
    option broadcast-address 192.168.12.63 ;
    option routers 192.168.12.62;
    }

6. Buat dhcpd.leases
    root@localhost:~# touch /var/db/dhcpd.leases

7. Buat dhcpd sebagai startup
    root@localhost:~# echo "/usr/sbin/dhcpd" >> /usr/rc

8. Restart
    root@localhost:~# reboot

Posted: February 27, 2008

Comments »

The URI to TrackBack this entry is: http://cerdas.blogsome.com/2008/02/27/dhcp-server/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.