You are on page 1of 16

No 1.

Seting dns server :


seting interfacenya di gedit /etc/network/interfaces:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.10.2
netmask 255.255.255.0
network 192.168.10.0
gateway 192.168.10.1
name-servers jarkom.com

auto eth1
iface eth1 inet static
address 192.168.20.1
netmask 255.255.255.0
network 192.168.20.0
gateway 192.168.20.1
name-servers itats.ac.id
lalu save.
restart interface /etc/init.d/networking restart
setelah itu edit /etc/hosts sehingga seperti dibawah ini:
127.0.0.1

localhost.localdomain localhost

127.0.1.1

arie-laptop

192.168.10.2 jarkom.com
192.168.20.1 itats.ac.id

# The following lines are desirable for IPv6 capable hosts


::1

localhost ip6-localhost ip6-loopback

fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix

ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
kemudian save.

Konfigurasi file resolv.conf ketikan #nano /etc/resolv.conf berikut adalah


konfigurasi nya:
domain jarkom.com
nameserver 192.168.10.2
domain itats.ac.id
nameserver 192.168.20.1
lalu save.
konfigurasi file named.conf.local, ketikan #/nano /etc/bind/named.conf.local:
zone "jarkom.com" IN {
type master;
file "/etc/bind/db.ariebayu";
};
zone "10.168.192.in-addr.arpa" IN {
type master;
file "/etc/bind/db.192";
};
zone "itats.ac.id" IN {
type master;
file "/etc/bind/db.ariebayu2";
};
zone "20.168.192.in-addr.arpa" IN {
type master;
file "/etc/bind/db.193";
};

Setelah itu lakukan perubahan pada file named.conf.options, ketikan #nano

/etc/bind/named.conf.options:
options {
directory "/var/cache/bind";

// If there is a firewall between you and nameservers you want


// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113

// If your ISP provided one or more IP addresses for stable


// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
forwarders {
192.168.10.2;
192.168.20.1;
};
auth-nxdomain no;

# conform to RFC1035

listen-on-v6 { any; };
};

Konfigurasi #nano /etc/bind/db.ariebayu seperti pada gambar dibawah ini :


$TTL 86400
@

IN

SOA jarkom.com. root.jarkom.com. (


20111225

; Serial

604800

; Refresh

86400

; Retry

2419200

; Expire

604800 )

; Negative Cache TTL

;
@

IN

NS

ns.jarkom.com.

IN

192.168.10.2

jarkom.com

IN

ns

IN

192.168.10.2

www IN

192.168.10.2

;@

AAAA ::1

IN

192.168.10.2

Konfigurasi #nano /etc/bind/db.ariebayu2 seperti pada gambar dibawah ini :


$TTL 86400
@

IN

SOA itats.ac.id. root.itats.ac.id. (


20111226

; Serial

604800

; Refresh

86400

; Retry

2419200

; Expire

604800 )

; Negative Cache TTL

;
@

IN

NS

ns.itats.ac.id.

IN

192.168.20.1

jarkom.com

IN

ns

IN

192.168.20.1

www IN

192.168.20.1

;@

AAAA ::1

IN

192.168.20.1

Konfigurasi #nano /etc/bind/db.192 seperti pada gambar dibawah ini :


$TTL 86400
@

IN

SOA jarkom.com. root.jarkom.com. (


20111225

; Serial

604800

; Refresh

86400

; Retry

2419200

; Expire

604800 )

; Negative Cache TTL

;
@

IN

NS

ns.jarkom.com.

IN

192.168.10.2

ns

IN

192.168.10.2

IN

PTR

192.168.10.2

10.168.192-addr-arpa. PTR

jarkom.com.

Konfigurasi #nano /etc/bind/db.193 seperti pada gambar dibawah ini :


$TTL 86400
@

IN

SOA itats.ac.id. root.itats.ac.id. (


20111226

; Serial

604800

; Refresh

86400

; Retry

2419200

; Expire

604800 )

; Negative Cache TTL

;
@

IN

NS

ns.itats.ac.id.

IN

192.168.20.1

ns

IN

192.168.20.1

IN

PTR

192.168.20.1

20.168.192-addr-arpa. PTR

itats.ac.id.

Test dengan mengetilan perintah #nslookup jarkom.com dan #nslookup itats.ac.id.

Setelah itu cek di client dengan ip 192.168.10.10.

Lakukan ping ke www.jarkom.com.

Setelah itu cek di client dengan ip 192.168.20.10.

Lakukan ping ke www.itats.ac.id.

No 2. Konfigurasi Samba server:


edit file smb.conf dengan perintah #gedit /etc/samba/smb.conf:

Buat directory yang mau disharing:

#mkdir /home/shares
Membuat group anggota:
#groupadd anggota
Membuat user anggi, tofan dan sarif dan memasukan ke group anggota:
#adduser anggi
#smbpasswd -a anggi
#usermod -a -G anggota anggi
#adduser tofan
#smbpasswd -a tofan
#usermod -a -G anggota tofan
#adduser sarif
#smbpasswd -a sarif
#usermod -a -G anggota sarif

Tampilan di client ubuntu :

Tampilan di windows 7:

No 3. NFS :
seting interfacenya di gedit /etc/network/interfaces:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static

address 192.168.18.1
netmask 255.255.255.0
network 192.168.18.0
gateway 192.168.18.1
name-servers 192.168.18.1

edit file /etc/exports dan tambahkan:


/home/arie/coba 192.168.18.20/24*(ro,sync,no_subtree_check)
192.168.18.21/24*(ro,sync,no_subtree_check)
192.168.18.22/24*(ro,sync,no_subtree_check)
192.168.18.23/24*(ro,sync,no_subtree_check)
192.168.18.24/24*(ro,sync,no_subtree_check)
192.168.18.25/24*(ro,sync,no_subtree_check)
192.168.18.26/24*(ro,sync,no_subtree_check)
192.168.18.27/24*(ro,sync,no_subtree_check)
192.168.18.28/24*(ro,sync,no_subtree_check)
192.168.18.29/24*(ro,sync,no_subtree_check)
192.168.18.30/24*(ro,sync,no_subtree_check)
192.168.18.31/24*(ro,sync,no_subtree_check)
192.168.18.32/24*(ro,sync,no_subtree_check)
192.168.18.33/24*(ro,sync,no_subtree_check)
192.168.18.34/24*(ro,sync,no_subtree_check)
192.168.18.35/24*(ro,sync,no_subtree_check)
192.168.18.36/24*(ro,sync,no_subtree_check)
192.168.18.37/24*(ro,sync,no_subtree_check)
192.168.18.38/24*(ro,sync,no_subtree_check)
192.168.18.39/24*(ro,sync,no_subtree_check)
192.168.18.40/24*(ro,sync,no_subtree_check)
192.168.18.41/24*(ro,sync,no_subtree_check)
192.168.18.42/24*(ro,sync,no_subtree_check)
192.168.18.43/24*(ro,sync,no_subtree_check)

192.168.18.44/24*(ro,sync,no_subtree_check)
192.168.18.45/24*(ro,sync,no_subtree_check)
192.168.18.46/24*(ro,sync,no_subtree_check)
192.168.18.47/24*(ro,sync,no_subtree_check)
192.168.18.48/24*(ro,sync,no_subtree_check)
192.168.18.49/24*(ro,sync,no_subtree_check)
192.168.18.50/24*(ro,sync,no_subtree_check)
192.168.18.2/24*(rw,sync,no_subtree_check)
192.168.18.3/24*(rw,sync,no_subtree_check)
192.168.18.4/24*(rw,sync,no_subtree_check)
192.168.18.5/24*(rw,sync,no_subtree_check)
192.168.18.6/24*(rw,sync,no_subtree_check)
192.168.18.7/24*(rw,sync,no_subtree_check)
192.168.18.8/24*(rw,sync,no_subtree_check)
192.168.18.9/24*(rw,sync,no_subtree_check)
192.168.18.10/24*(rw,sync,no_subtree_check)
192.168.18.11/24*(rw,sync,no_subtree_check)
192.168.18.12/24*(rw,sync,no_subtree_check)
192.168.18.13/24*(rw,sync,no_subtree_check)
192.168.18.14/24*(rw,sync,no_subtree_check)
192.168.18.15/24*(rw,sync,no_subtree_check)
192.168.18.16/24*(rw,sync,no_subtree_check)
192.168.18.17/24*(rw,sync,no_subtree_check)
192.168.18.18/24*(rw,sync,no_subtree_check)

restart dengan # /etc/init.d/nfs-kernel-server restart


Cek di client dengan IP 192.168.18.20:

Lakukan mounting :

Lakukan pengecekan di file browser:

Cek di client dengan IP 192.168.18.10:

Lakukan mounting :

Lakukan pengecekan di file browser:

You might also like