Your SlideShare is downloading. ×
SETTING UBUNTU SERVER SEBAGAI PC ROUTER :1. Aktifkan account root :$ sudo passwd root$ su root2. Login melalui account roo...
4. Setting DNS RESOLVER :root@tkj1:~# vim /etc/resolv.confsearch www.smk-hkbp.sch.idnameserver 192.168.255.1nameserver 180...
8. Setting protocol TCP/IP computer client :9. Test koneksi antara Server dan Client :-dari server :root@tkj1:/etc# ping 1...
Ping statistics for 192.168.10.1:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli...
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 151ms, Maximum...
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 151ms, Maximum...
Upcoming SlideShare
Loading in...5
×

Setting ubuntu server sebagai pc router

3,720

Published on

cara setting ubuntu server

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
3,720
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
162
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Setting ubuntu server sebagai pc router"

  1. 1. SETTING UBUNTU SERVER SEBAGAI PC ROUTER :1. Aktifkan account root :$ sudo passwd root$ su root2. Login melalui account root :login as: rootroot@192.168.10.1s password:3. Setting protocol TCP/IP :root@tkj1:~# vim /etc/network/interfacesauto eth0iface eth0 inet staticaddress 192.168.255.5netmask 255.255.255.224network 192.168.255.0broadcast 192.168.255.31gateway 192.168.255.1 name serverauto eth1iface eth1 inet staticaddress 192.168.10.1netmask 255.255.255.0network 192.168.10.0broadcast 192.168.10.255
  2. 2. 4. Setting DNS RESOLVER :root@tkj1:~# vim /etc/resolv.confsearch www.smk-hkbp.sch.idnameserver 192.168.255.1nameserver 180.131.145.14510.17.125.288/3.244ADD 10.0.2.15/255Mask 255====05. Setting ip_forwarding :root@tkj1:~# vim /etc/sysctl.confnet.ipv4.ip_forward=16. Restart konfigurasi TCP/IP :root@tkj1:~# /etc/init.d/networking restart[ OK ]7. Ping default gateway :root@tkj1:~# ping 192.168.255.1PING 192.168.255.1 (192.168.255.1) 56(84) bytes of data.64 bytes from 192.168.255.1: icmp_req=1 ttl=64 time=0.217 ms
  3. 3. 8. Setting protocol TCP/IP computer client :9. Test koneksi antara Server dan Client :-dari server :root@tkj1:/etc# ping 192.168.10.2PING 192.168.10.2 (192.168.10.2) 56(84) bytes of data.64 bytes from 192.168.10.2: icmp_req=1 ttl=128 time=0.133 ms-dari clientC:Documents and SettingsStenly and Suwi>ping 192.168.10.1Pinging 192.168.10.1 with 32 bytes of data:Reply from 192.168.10.1: bytes=32 time<1ms TTL=64Reply from 192.168.10.1: bytes=32 time<1ms TTL=64Reply from 192.168.10.1: bytes=32 time<1ms TTL=64Reply from 192.168.10.1: bytes=32 time<1ms TTL=64IP Address : 192.168.10.2Netmask : 255.255.255.0Gateway : 192.168.10.1
  4. 4. Ping statistics for 192.168.10.1:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 0ms, Maximum = 0ms, Average = 0msC:Documents and SettingsStenly and Suwi>10. Setting NAT agar client dapat terhubung internet :root@tkj1:~# vim /etc/rc.localiptables -t nat -A POSTROUTING -s 192.168.10.0/24 -d 0.0.0.0/0 -j MASQUERADEroot@tkj1:~# cd /etcroot@tkj1:/etc# ./rc.local11. Reboot system :root@tkj1:/etc# shutdown -r now12. Test koneksi internet dari client :C:Documents and SettingsStenly and Suwi>ping www.google.comPinging www.google.com [173.194.38.144] with 32 bytes of data:Reply from 173.194.38.144: bytes=32 time=151ms TTL=49Reply from 173.194.38.144: bytes=32 time=175ms TTL=49Reply from 173.194.38.144: bytes=32 time=152ms TTL=49Reply from 173.194.38.144: bytes=32 time=169ms TTL=49Ping statistics for 173.194.38.144:
  5. 5. Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 151ms, Maximum = 175ms, Average = 161msC:Documents and SettingsStenly and Suwi>
  6. 6. Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 151ms, Maximum = 175ms, Average = 161msC:Documents and SettingsStenly and Suwi>

×