Pertama Klik New Virtual Machine pada
- Untuk Debian
-> network 1 : bridged adapter
network 2 : host-only adapter
- Untuk Windows XP
-> network 1 : host-only adapter
Tahap Menginstal SO Debian (Tahap settingan saat instalasi)
1. primary network interface : eth0 jika yang ingin dikonfigurasi eth0, dan eth1 jika yang ingin dikonfigurasi eth1
2. pilih configure network manually (untuk konfigurasi network secara manual)
3. IP address : IP Internet (eth0) jika menggunakan eth1 gunakan ip local
4. Netmask : 255.255.255.0
5. Gateway : kosongkan
6. Name server addresses : 127.0.0.1 (IP Loopback)
8. Hostname : ns1 (sesuai perintah anda)
9. Domain name : DeYe.com
10. Password : Isi sesuai kebutuhan
11. Partitioning method : Guided - use entire disk (untuk menggunakan HDD yang tersedia)
12. All files in one partition (recommende for new users)
13. Finish partitioning and write changes to disk
14. Write the changes to disks : Yes
15. Scan another CD or DVD : No
16. Use a network mirror : No
17. Participate in the package usage survey : No
18. Choose software to install : Standard system utilities (untuk menginstall aplikasi standar debian)
19. Install the GRUB boot loader : Yes
Konfigurasi Router
1. pico /etc/network/interfaces
- primary = eth0
address = 172.16.4.2 (IP Internet)
netmask = 255.255.255.128
network = 172.16.4.0
broadcast = 172.16.4.127
gateway = 172.16.4.126
- 2nd = eth1
address = 192.168.2.29 (IP Lokal)
netmask = 255.255.255.0
network = 192.168.2.0
broadcast = 192.168.2.255
2. pico /etc/sysctl.conf
- hilangakan tanda # pada perintah dibawah ini, gunanya untuk memfungsikan IPv4. Jika tidak dihilangkan maka IPV4 tidak dapat digunakan
-> net.ipv4.ip_forward=1
3. pico /etc/rc.local
- tambahkan perintah dibaris paling bawah sebelum tulisan exit
-> iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Setting DNS Server :
4. Install paket DNS Debian dengan cara => apt-get install bind9 dnsutils
5. Masuk ke direktori Bind dengan perintah => cd /etc/bind
6. pico named.conf.local
- tambahkan perintah
-> zone "DeYe.com" {
type master;
file "/etc/bind/db.DeYe";
};
zone "2.168.192.in-addr.arpa" {
type master;
file "/etc/bind/db.192";
};
7. copykan db.127 menjadi db.192 (menyesuaikan ip depan client) dengan cara=> cp db.127 db.192
8. Copykan db.local menjadi db.DeYe (sesuaikan dengan Domain name tanpa.com) => cp db.local db.DeYe
9. Atur konfigurasi db.DeYe => pico db.DeYe
- ubahlah tulisan localhost.
-> ns1.DeYe.com. (pada SOA & NS)
- ubahlah tulisan 127.0.0.1
-> 192.168.2.29 (pada A)
- tambahkan perintah
ns1 IN A 192.168.2.29
www IN CNAME ns1
10. Atur konfigurasi db.192=> pico db.192
- ubahlah tulisan localhost.
-> ns1.DeYe.com. (pada SOA & NS & PTR)
- ubahlah tulisan 1.0.0
-> 29 (pada PTR)
11. pico named.conf.options
- hilangkan tanda // & tambahkan (gateway internet)
-> forwaders {
127.0.0.1;
172.16.4.126;
};
allow-query {any;};
12. pico /etc/resolv.conf
- tambahkan gateway lokal, IP internet, gateway internet
-> nameserver 192.168.2.29
nameserver 172.16.4.29
nameserver 172.16.4.126
13. /etc/init.d/bind9 (reboot DNS)
14. nslookup (cek di debian & win XP)
- setting IP din win XP (client)
-> start->all programs->accessories->communications->
network connections->local area connection->properties->
TCP/IP
IP address 192.168.2.30
Subnet mask 255.255.255.0
Default gateway 192.168.2.29
Preferred DNS 192.168.2.29
Setting WEB Server & SSH Server :
15. Install paket web server debian => apt-get install apache2 php5
16. Install paket ssh debian => apt-get install ssh
17. pico /etc/ssh/sshd_config
- tambahkan tulisan Port 22
-> Port 354
18. /etc/init.d/ssh restart (reboot SSH)
19. cd /etc/apache2/sites-available/
20. pico rizky.com
- ubahlah localhost@localhost.com
-> deYe@DeYe.com
ubahlah localhost & tambahkan
-> /var/www/DeYe
/var/www/DeYe/>
- tambahkan perintah
-> ServerAdmin DeYe@DeYe.com
ServerName DeYecom
ServerAlias www.DeYe.com
21. cd /var/www/
22. pico index.html
- buat .html terserah
23. mkdir rizky
24. cp index.html DeYe
25. cd DeYe/
26. pico index.html
Debian dengan 1 clien konfigurasi divirtual machine
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar