Modul Ukk 2018-2019
Modul Ukk 2018-2019
-1-
Konfigurasi PC/Laptop Client (yang terhubung ke ether2 melalui
switch)
1. IP LAN = 192.168.10.xxx/24 (xxx merupakan address)
2. Gateway = 192.168.10.1/24
3. DNS = menyesuaikan ISP
4. Sistem operasi = Windows / Linux
-2-
Langkah Pembahasan Soal UKK TKJ 2017/2018 Paket 3
#ifconfig eth1 up
#nano /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.10.xxx
netmask 255.255.255.0
gateway 192.168.10.1
auto eth1
iface eth1 inet static
address 192.168.100.1
netmask 255.255.255.128
network 192.168.100.0
auto eth1:2
iface eth1:2 inet static
address 192.168.100.2
netmask 255.255.255.128
b. Konfigurasi nameserver
#nano /etc/resolv.conf
nameserver 192.168.100.1
nameserver 192.168.10.1
nameserver 8.8.8.8
d. Konfigurasi hostname
#nano /etc/hostname
ukktkj2018
#/bin/hostname -F /etc/hostname
e. Restart network
#service networking restart
-3-
2. Konfigurasi Router
a. Mengaktifkan ip forwarding dari lokal ke publik
#nano /etc/sysctl.conf (hilangkan tanda pagar #)
net.ipv4.ip_forward=1
#nano /proc/sys/net/ipv4/ip_forward
1
c. Reboot Debian
#init 6
3. KONFIGURASI DNS
a. Konfigurasi bind9. Masuk ke direktori /etc/bind dan lihat isinya.
#cd /etc/bind
#ls
-4-
Edit script pada file reverse db.192
#nano db.192
(ganti localhost menjadi sekolah.sch.id)
@ IN SOA sekolah.sch.id. root.sekolah.sch.id. (
;
@ IN NS sekolah.sch.id.
1 IN PTR sekolah.sch.id.
Simpan (ctrl+o)
Restart DNS.
#service bind9 restart
b. Tes hasil konfigurasi dns dari server sendiri atau PC client dengan
perintah nslookup, dig atau ping ke ip address server atau domain.
4. KONFIGURASI WEBSERVER
a. Buat dan isi file index.html
#nano /var/www/index.html
<html>
<h1> SELAMAT DATANG DI WEB SEKOLAH.SCH.ID </h1>
</html>
Simpan (ctrl+o)
-5-
5. KONFIGURASI FTP
a. Konfigurasi FTP
#nano /etc/proftpd/proftpd.conf
Ctrl+W: ServerName
(ganti “Debian” menjadi “sekolah.sch.id”)
<Anonymous /home/siswa1/>
User siswa1
UserAlias anonymous siswa1
</Anonymous>
Simpan (ctrl+o)
Restart FTP
#service proftpd restart
b. Buat user
#adduser siswa1
(password : 12345)
c. Buat direktori baru, di dalam direktori user yang baru dibuat yaitu di
/home/siswa1
#mkdir /home/siswa1/dataftp
#chmod 777 /home/siswa1/dataftp
Simpan (ctrl+o)
e. Restart FTP
#service proftpd restart
-6-
6. KONFIGURASI MAIL DAN WEBMAIL SERVER
a. Konfigurasi Mail server
# nano /etc/postfix/main.cf
Tambahkan baris berikut ke bagian paling akhir dari file konfigurasi :
home_mailbox = Maildir/
Simpan (ctrl+o)
# maildirmake /etc/skel/Maildir
#dpkg-reconfigure postfix
#adduser ujikom
Isi password 12345
#adduser smkpgri
Isi password 12345
IncludeOptional /etc/squirrelmail/apache.conf
Simpan (ctrl+o)
#nano /etc/squirrelmail/apache.conf
Cari bagian VirtualHost kemudian hapus symbol # dibagian depan sampai
bagian </VirtualHost>
Tes hasil konfigurasi mail dan webmail dari PC client dengan mengetik
mail.sekolah.sch.id pada Mozilla firefox. Kemudian loogin
menggunakan user yang sudah dibuat.
-7-
7. KONFIGURASI File Server
a. Konfigurasi Server
# nano /etc/samba/smb.conf
ctrl+w Share Definitions
security = user
[smk]
path = /home/smk
browseable = yes
valid users = pgri
admin users = pgri
Simpan (ctrl+o)
# mkdir /home/smk
# chmod 777 /home/smk/ -R
# nano /home/smk/fileserver.doc
ketik : "file server ini menggunakan samba"
# useradd pgri
# smbpasswd -a pgri
(untuk password 12345)
b. Konfigurasi Client
Pengecekan masuk ke client (windows XP)
windows+r
ketik \\sekolah.sch.id
buka folder smk
-8-
8. KONFIGURASI Monitoring Server (Cacti)
a. Konfigurasi Server
# nano /etc/snmp/snmpd.conf
Cari:
agentAddress udp:127.0.0.1:161 = agentAddress udp:161
tambahkan:
recommunity ujikom 192.168.100.0/25
Simpan (ctrl+o)
b. Konfigurasi Client
1. Buka Browser (Mozilla Firefox)
2. Ketik pada address bar = sekolah.sch.id/cacti
3. Cacti Instalation Guide = Next
4. Cacti Instalation Guide = Next
5. Finish
6. User Name : admin Password : admin
7. password : 12345 confirm : 12345
8. Klik Create Device - add
a. Descriptions = serverukk
b. Hostname = 192.168.100.1
c. Host Template = Local Linux Machine
d. Downed Device Detection = Ping or SNMP Uptime
e. SNMP Community = ujikom
CREATE
9. Create Graphs for this Host
- Ceklist (√) Graph Template name dan Mount Point
Kemudian Create
- sesuaikan warna untuk legend color kemudian
Create
10. Klik menu Graph Tress dan Default Tree
- Hapus localhost dengan meng-klik tanda “x”
kemudian delete
- Pilih add
a. Tree Item Type =host
b. Host = serverukk(192.168.100.2)
c. Create
d. save
11. Klik Tab Graphs sebelah tab consule
-9-