Aktifkan Network
# vi /etc/sysconfig/network
- Networking = yes
- Networking_ipv6 = yes
- Hostname = Ujikom
# vi /etc/hosts
- 192.168.1.1 smkn1bungoro-2009.sch.id ujikom (ditambahkan)
# vi /etc/resolv.conf
domain smkn1bungoro-2009.sch.id
search www.smkn1bungoro-2009.sch.id
namesrver 192.168.1.1
# /etc/init.d/network restart (untuk menghidupkan eth0)
Konfigurasi DHCP
Masukan cd 3
# cd /mnt
# mkdir cdrom (buat direktori cdrom didalam /mnt)
# mount dev/cdrom /mnt/cdrom (untuk mengaktifkan cd 3 redhat)
Cdrom # cd Server ( untuk masuk kedalam direktori cd)
Server # ls more (untuk melihat isi direktori dari cd 3 redhat)
Cari : Dhcp-3.0.5-3.el5.i386.rpm
Dhcp-devel-3.0.5-3.el5.i386.rpm
Dhcpv6-0.10-33.el5.i386.rpm
Lakukan penginstalan dengan perintah
# rpm –ivh dhcp-3.0.5-3.el5.i386.rpm
# rpm –ivh dhcp-devel-3.0.5-3.el5.i386.rpm
# rpm –ivh dhcpv6-0.10-33.el5.i386.rpm
#umount /mnt/cdrom (untuk menonaktifkan cdrom)
# cp /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample /etc/dhcpd.conf (untuk mencopy sample dhcpd.conf ke /etc/dhcpd.conf)
# vi /etc/dhcpd.conf (untuk mengedit dhcpd.conf)
# service dhcpd start (untuk menjalanklan dhcp)
Konfigurasi DNS
# chkconfig named on
# locate named.conf (untuk mencari dimana letak named.conf tersebut)
# cp /usr/share/doc/bind-9.3.3/sample/etc/named conf /var/named/chroot/etc/named.conf
(untuk mencopy file sample named.conf ke /var/named/chroot/etc/named.conf)
# cp /usr/share/doc/bind-9.3.3/sample/etc/named root.hints /var/named/chroot/etc/named.root.hints (un tuk mencopy file sample named.root.hints ke /var/named/chroot/etc/named.root.hints )
# ln –s /var/named/chroot/etc/named.conf /etc/named.conf (untuk membuat shortcut ke /etc/named.conf )
# ln –s /var/named/chroot/etc/named.root.hints /etc/named.root.hints (untuk membuat shortcut ke /etc/named.root.hints )
# cp /usr/share/doc/bind-9.3.3/sample/var/named/named.root /var/name/chroot/var/named/named.root (untuk mengcopy named.root ke dalam file /var/named/chroot/var/named/named.root)
# cp /usr/share/doc/bind-9.3.3/sample/var/named/named.local /var/named/chroot/var/named/smkn1bunguro-2009.zone
# cp /usr/share/doc/bind-9.3.3/sample/var/named/named.local /var/named/chroot/var/named/192.168.1.zone
# vi /var/named/chroot/etc/named.conf ( untuk mengedit named.conf)
};
Controls {
Inet 127.0.0.1 allow {localhost;} keys {rndckey;};
};
Zone “smkn1bungoro-2009.sch.id” {
Type master;
File “smkn1bungoro-2009.zone”;
};
Zone “1.168.192.in-addr.arpa” {
Type master;
File “192.168.1.zone” ;
};
Include “/etc/rndc.key”;
# vi var/named/chroot/var/named/smkn1bungoro.zone
@ IN smkn1bungoro.sch.id. root.smkn1bungoro.sch.id
( ditengah tidak perlu dirubah )
IN NS ns1
Ns1 IN A 192.168.1.1
www IN A 192.168.1.1
# vi /var/named/chroot/var/named/192.168.1.zone
@ IN smkn1bungoro.sch.id. root.smkn1bungoro.sch.id
( Ditengahj tidak perlu dirubah )
IN NS ns1
1 IN PTR ns.smkn1bungoro.sch.id
# service named start
Copyright©idris.s,s.kom(smkn1bungoro)
Email: idris.suyupi@yahoo.co.id