SlideShare une entreprise Scribd logo
1  sur  6
SETTING UBUNTU SERVER SEBAGAI PC ROUTER :
1. Aktifkan account root :
$ sudo passwd root
$ su root
2. Login melalui account root :
login as: root
root@192.168.10.1's password:
3. Setting protocol TCP/IP :
root@tkj1:~# vim /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.255.5
netmask 255.255.255.224
network 192.168.255.0
broadcast 192.168.255.31
gateway 192.168.255.1 name server
auto eth1
iface eth1 inet static
address 192.168.10.1
netmask 255.255.255.0
network 192.168.10.0
broadcast 192.168.10.255
4. Setting DNS RESOLVER :
root@tkj1:~# vim /etc/resolv.conf
search www.smk-hkbp.sch.id
nameserver 192.168.255.1
nameserver 180.131.145.145
10.17.125.288/3.244
ADD 10.0.2.15/255
Mask 255====0
5. Setting ip_forwarding :
root@tkj1:~# vim /etc/sysctl.conf
net.ipv4.ip_forward=1
6. Restart konfigurasi TCP/IP :
root@tkj1:~# /etc/init.d/networking restart
[ OK ]
7. Ping default gateway :
root@tkj1:~# ping 192.168.255.1
PING 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
8. Setting protocol TCP/IP computer client :
9. Test koneksi antara Server dan Client :
-dari server :
root@tkj1:/etc# ping 192.168.10.2
PING 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 client
C:Documents and SettingsStenly and Suwi>ping 192.168.10.1
Pinging 192.168.10.1 with 32 bytes of data:
Reply from 192.168.10.1: bytes=32 time<1ms TTL=64
Reply from 192.168.10.1: bytes=32 time<1ms TTL=64
Reply from 192.168.10.1: bytes=32 time<1ms TTL=64
Reply from 192.168.10.1: bytes=32 time<1ms TTL=64
IP Address : 192.168.10.2
Netmask : 255.255.255.0
Gateway : 192.168.10.1
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 = 0ms
C:Documents and SettingsStenly and Suwi>
10. Setting NAT agar client dapat terhubung internet :
root@tkj1:~# vim /etc/rc.local
iptables -t nat -A POSTROUTING -s 192.168.10.0/24 -d 0.0.0.0/0 -j MASQUERADE
root@tkj1:~# cd /etc
root@tkj1:/etc# ./rc.local
11. Reboot system :
root@tkj1:/etc# shutdown -r now
12. Test koneksi internet dari client :
C:Documents and SettingsStenly and Suwi>ping www.google.com
Pinging www.google.com [173.194.38.144] with 32 bytes of data:
Reply from 173.194.38.144: bytes=32 time=151ms TTL=49
Reply from 173.194.38.144: bytes=32 time=175ms TTL=49
Reply from 173.194.38.144: bytes=32 time=152ms TTL=49
Reply from 173.194.38.144: bytes=32 time=169ms TTL=49
Ping statistics for 173.194.38.144:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 151ms, Maximum = 175ms, Average = 161ms
C:Documents and SettingsStenly and Suwi>
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 151ms, Maximum = 175ms, Average = 161ms
C:Documents and SettingsStenly and Suwi>

Contenu connexe

Tendances

Hacking Oracle Web Applications With Metasploit
Hacking Oracle Web Applications With MetasploitHacking Oracle Web Applications With Metasploit
Hacking Oracle Web Applications With Metasploit
Chris Gates
 
Materi asj kelas xii
Materi asj kelas xiiMateri asj kelas xii
Materi asj kelas xii
makemanah
 
Web Application Firewall intro
Web Application Firewall introWeb Application Firewall intro
Web Application Firewall intro
Rich Helton
 
DoS ve DDoS Saldırıları ve Korunma Yöntemleri
DoS ve DDoS Saldırıları ve Korunma YöntemleriDoS ve DDoS Saldırıları ve Korunma Yöntemleri
DoS ve DDoS Saldırıları ve Korunma Yöntemleri
BGA Cyber Security
 

Tendances (20)

Soal Linux Actual - ITNSA LKS SMK Tingkat Provinsi NTB 2021
Soal Linux Actual - ITNSA LKS SMK Tingkat Provinsi NTB 2021Soal Linux Actual - ITNSA LKS SMK Tingkat Provinsi NTB 2021
Soal Linux Actual - ITNSA LKS SMK Tingkat Provinsi NTB 2021
 
Penjelasan Materi Web Server
Penjelasan Materi Web Server Penjelasan Materi Web Server
Penjelasan Materi Web Server
 
Saldırı Tipleri ve Log Yönetimi
Saldırı Tipleri ve Log YönetimiSaldırı Tipleri ve Log Yönetimi
Saldırı Tipleri ve Log Yönetimi
 
Hacking Oracle Web Applications With Metasploit
Hacking Oracle Web Applications With MetasploitHacking Oracle Web Applications With Metasploit
Hacking Oracle Web Applications With Metasploit
 
OWASP ModSecurity Core Rules Paranoia Mode
OWASP ModSecurity Core Rules Paranoia ModeOWASP ModSecurity Core Rules Paranoia Mode
OWASP ModSecurity Core Rules Paranoia Mode
 
Introduction to Windows Dictionary Attacks
Introduction to Windows Dictionary AttacksIntroduction to Windows Dictionary Attacks
Introduction to Windows Dictionary Attacks
 
Materi asj kelas xii
Materi asj kelas xiiMateri asj kelas xii
Materi asj kelas xii
 
Deep Freeze Standard 8.53.020.5458 Crack
Deep Freeze Standard 8.53.020.5458 CrackDeep Freeze Standard 8.53.020.5458 Crack
Deep Freeze Standard 8.53.020.5458 Crack
 
What is SASE and How Can Partners Talk About it?
What is SASE and How Can Partners Talk About it?What is SASE and How Can Partners Talk About it?
What is SASE and How Can Partners Talk About it?
 
Web Application Firewall intro
Web Application Firewall introWeb Application Firewall intro
Web Application Firewall intro
 
F5 TLS & SSL Practices
F5 TLS & SSL PracticesF5 TLS & SSL Practices
F5 TLS & SSL Practices
 
Nick Stephens-how does someone unlock your phone with nose
Nick Stephens-how does someone unlock your phone with noseNick Stephens-how does someone unlock your phone with nose
Nick Stephens-how does someone unlock your phone with nose
 
The WAF book (Web App Firewall )
The WAF book  (Web App Firewall )The WAF book  (Web App Firewall )
The WAF book (Web App Firewall )
 
Temel ağ bilgisi
Temel ağ bilgisiTemel ağ bilgisi
Temel ağ bilgisi
 
Построение сетей GPON на базе оборудования ТМ BDcom (Алексей Броздняков)
Построение сетей GPON на базе оборудования ТМ BDcom (Алексей Броздняков)Построение сетей GPON на базе оборудования ТМ BDcom (Алексей Броздняков)
Построение сетей GPON на базе оборудования ТМ BDcom (Алексей Броздняков)
 
Pembahasan Solusi Soal Uji Kompetensi Keahlian (UKK) SMK TKJ Paket 4 Kurikulu...
Pembahasan Solusi Soal Uji Kompetensi Keahlian (UKK) SMK TKJ Paket 4 Kurikulu...Pembahasan Solusi Soal Uji Kompetensi Keahlian (UKK) SMK TKJ Paket 4 Kurikulu...
Pembahasan Solusi Soal Uji Kompetensi Keahlian (UKK) SMK TKJ Paket 4 Kurikulu...
 
DoS ve DDoS Saldırıları ve Korunma Yöntemleri
DoS ve DDoS Saldırıları ve Korunma YöntemleriDoS ve DDoS Saldırıları ve Korunma Yöntemleri
DoS ve DDoS Saldırıları ve Korunma Yöntemleri
 
Laporan konfigurasi samba server
Laporan konfigurasi samba serverLaporan konfigurasi samba server
Laporan konfigurasi samba server
 
Konfigurasi mikrotik dengan routerboard RB-750
Konfigurasi mikrotik dengan routerboard RB-750Konfigurasi mikrotik dengan routerboard RB-750
Konfigurasi mikrotik dengan routerboard RB-750
 
CyberOps Associate Modul 26 Evaluating Alerts
CyberOps Associate Modul 26 Evaluating AlertsCyberOps Associate Modul 26 Evaluating Alerts
CyberOps Associate Modul 26 Evaluating Alerts
 

En vedette

Cara setting jaringan workgroup di windows xp
Cara setting jaringan workgroup di windows xpCara setting jaringan workgroup di windows xp
Cara setting jaringan workgroup di windows xp
AJIB- PUJIANTO
 
Membangun Web Server Menggunakan Linux Ubuntu
Membangun Web Server Menggunakan Linux UbuntuMembangun Web Server Menggunakan Linux Ubuntu
Membangun Web Server Menggunakan Linux Ubuntu
Rizky Fadillah
 

En vedette (18)

Setting PROXY Ubuntu Server
Setting PROXY Ubuntu ServerSetting PROXY Ubuntu Server
Setting PROXY Ubuntu Server
 
Cara setting jaringan workgroup di windows xp
Cara setting jaringan workgroup di windows xpCara setting jaringan workgroup di windows xp
Cara setting jaringan workgroup di windows xp
 
Manajemen jaringan server web server
Manajemen jaringan server   web serverManajemen jaringan server   web server
Manajemen jaringan server web server
 
Tutorial instalasi ubuntu server 12.04, setting DNS server dan Web server
Tutorial instalasi ubuntu server 12.04, setting DNS server dan Web serverTutorial instalasi ubuntu server 12.04, setting DNS server dan Web server
Tutorial instalasi ubuntu server 12.04, setting DNS server dan Web server
 
Makalah ubuntu server
Makalah ubuntu serverMakalah ubuntu server
Makalah ubuntu server
 
Instalasi Ubuntu Server di Virtual Box
Instalasi Ubuntu Server di Virtual BoxInstalasi Ubuntu Server di Virtual Box
Instalasi Ubuntu Server di Virtual Box
 
Tutorial Lengkap Instalasi ubuntu server 12.04 [sigernetwork.com]
Tutorial Lengkap Instalasi ubuntu server 12.04 [sigernetwork.com]Tutorial Lengkap Instalasi ubuntu server 12.04 [sigernetwork.com]
Tutorial Lengkap Instalasi ubuntu server 12.04 [sigernetwork.com]
 
Materi 1 TKJ - Membangun PC Router
Materi 1 TKJ - Membangun PC RouterMateri 1 TKJ - Membangun PC Router
Materi 1 TKJ - Membangun PC Router
 
Tutorial Cara Instalasi Ubuntu Linux Lengkap
Tutorial Cara Instalasi Ubuntu Linux LengkapTutorial Cara Instalasi Ubuntu Linux Lengkap
Tutorial Cara Instalasi Ubuntu Linux Lengkap
 
Mahir administrasi server dan router ubuntu server
Mahir administrasi server dan router ubuntu serverMahir administrasi server dan router ubuntu server
Mahir administrasi server dan router ubuntu server
 
Laporan Installasi ubuntu server
Laporan Installasi ubuntu serverLaporan Installasi ubuntu server
Laporan Installasi ubuntu server
 
2013 12. Administrasi Server Linux Ubuntu
2013 12. Administrasi Server Linux Ubuntu2013 12. Administrasi Server Linux Ubuntu
2013 12. Administrasi Server Linux Ubuntu
 
Tutorial Cara Membuat Aplikasi RSS Android - creatorb
Tutorial Cara Membuat Aplikasi RSS Android - creatorbTutorial Cara Membuat Aplikasi RSS Android - creatorb
Tutorial Cara Membuat Aplikasi RSS Android - creatorb
 
Ubuntu server-904 membuat-server_dengan_ubuntu
Ubuntu server-904 membuat-server_dengan_ubuntuUbuntu server-904 membuat-server_dengan_ubuntu
Ubuntu server-904 membuat-server_dengan_ubuntu
 
Ukk 2016 administrasi server ubuntu 14.04 lts - sahrul gunawan
Ukk 2016   administrasi server ubuntu 14.04 lts - sahrul gunawanUkk 2016   administrasi server ubuntu 14.04 lts - sahrul gunawan
Ukk 2016 administrasi server ubuntu 14.04 lts - sahrul gunawan
 
Makalah dhcp, dns, dan web server
Makalah dhcp, dns, dan web serverMakalah dhcp, dns, dan web server
Makalah dhcp, dns, dan web server
 
Membangun Web Server Menggunakan Linux Ubuntu
Membangun Web Server Menggunakan Linux UbuntuMembangun Web Server Menggunakan Linux Ubuntu
Membangun Web Server Menggunakan Linux Ubuntu
 
Tutorial Lengkap Cara Membuat Aplikasi Android Sederhana
Tutorial Lengkap Cara Membuat Aplikasi Android SederhanaTutorial Lengkap Cara Membuat Aplikasi Android Sederhana
Tutorial Lengkap Cara Membuat Aplikasi Android Sederhana
 

Similaire à Setting ubuntu server sebagai pc router

Load balancing n_fail_over
Load balancing n_fail_overLoad balancing n_fail_over
Load balancing n_fail_over
miissie
 
Networking in Gnu/Linux
Networking in Gnu/LinuxNetworking in Gnu/Linux
Networking in Gnu/Linux
Ahmed Mekkawy
 
Sharing your-internet-connection-on-linux
Sharing your-internet-connection-on-linuxSharing your-internet-connection-on-linux
Sharing your-internet-connection-on-linux
jasembo
 
05 module managing your network enviornment
05  module managing your network enviornment05  module managing your network enviornment
05 module managing your network enviornment
Asif
 

Similaire à Setting ubuntu server sebagai pc router (20)

Konfigurasi Server Gateway dengan fitur PROXY, WEBSERVER dan DHCP
Konfigurasi Server Gateway dengan fitur PROXY, WEBSERVER dan DHCPKonfigurasi Server Gateway dengan fitur PROXY, WEBSERVER dan DHCP
Konfigurasi Server Gateway dengan fitur PROXY, WEBSERVER dan DHCP
 
Configure Mikrotik Khmer.pdf
Configure Mikrotik Khmer.pdfConfigure Mikrotik Khmer.pdf
Configure Mikrotik Khmer.pdf
 
Load balancing n_fail_over
Load balancing n_fail_overLoad balancing n_fail_over
Load balancing n_fail_over
 
Networking in Gnu/Linux
Networking in Gnu/LinuxNetworking in Gnu/Linux
Networking in Gnu/Linux
 
Hyperlink
HyperlinkHyperlink
Hyperlink
 
DNS server packet tracer
DNS server packet tracerDNS server packet tracer
DNS server packet tracer
 
Sharing your-internet-connection-on-linux
Sharing your-internet-connection-on-linuxSharing your-internet-connection-on-linux
Sharing your-internet-connection-on-linux
 
Openstack 101
Openstack 101Openstack 101
Openstack 101
 
Cyber security and ethical hacking 3
Cyber security and ethical hacking 3Cyber security and ethical hacking 3
Cyber security and ethical hacking 3
 
Linux Network commands
Linux Network commandsLinux Network commands
Linux Network commands
 
1.4.2-basic-configuration-with-mikrotik-cli.pdf
1.4.2-basic-configuration-with-mikrotik-cli.pdf1.4.2-basic-configuration-with-mikrotik-cli.pdf
1.4.2-basic-configuration-with-mikrotik-cli.pdf
 
Modul quick debserver
Modul quick debserverModul quick debserver
Modul quick debserver
 
Tick Stack - Listen your infrastructure and please sleep
Tick Stack - Listen your infrastructure and please sleepTick Stack - Listen your infrastructure and please sleep
Tick Stack - Listen your infrastructure and please sleep
 
Networking For Application Developers by Roy Kim
Networking For Application Developers by Roy KimNetworking For Application Developers by Roy Kim
Networking For Application Developers by Roy Kim
 
packet traveling (pre cloud)
packet traveling (pre cloud)packet traveling (pre cloud)
packet traveling (pre cloud)
 
Stu t17 a
Stu t17 aStu t17 a
Stu t17 a
 
05 module managing your network enviornment
05  module managing your network enviornment05  module managing your network enviornment
05 module managing your network enviornment
 
DNS Server configuration in cisco packet tracer
DNS Server configuration in cisco packet tracerDNS Server configuration in cisco packet tracer
DNS Server configuration in cisco packet tracer
 
DNS,SMTP and POP3
DNS,SMTP and POP3DNS,SMTP and POP3
DNS,SMTP and POP3
 
main
mainmain
main
 

Dernier

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
ssuserdda66b
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Dernier (20)

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 

Setting ubuntu server sebagai pc router

  • 1. SETTING UBUNTU SERVER SEBAGAI PC ROUTER : 1. Aktifkan account root : $ sudo passwd root $ su root 2. Login melalui account root : login as: root root@192.168.10.1's password: 3. Setting protocol TCP/IP : root@tkj1:~# vim /etc/network/interfaces auto eth0 iface eth0 inet static address 192.168.255.5 netmask 255.255.255.224 network 192.168.255.0 broadcast 192.168.255.31 gateway 192.168.255.1 name server auto eth1 iface eth1 inet static address 192.168.10.1 netmask 255.255.255.0 network 192.168.10.0 broadcast 192.168.10.255
  • 2. 4. Setting DNS RESOLVER : root@tkj1:~# vim /etc/resolv.conf search www.smk-hkbp.sch.id nameserver 192.168.255.1 nameserver 180.131.145.145 10.17.125.288/3.244 ADD 10.0.2.15/255 Mask 255====0 5. Setting ip_forwarding : root@tkj1:~# vim /etc/sysctl.conf net.ipv4.ip_forward=1 6. Restart konfigurasi TCP/IP : root@tkj1:~# /etc/init.d/networking restart [ OK ] 7. Ping default gateway : root@tkj1:~# ping 192.168.255.1 PING 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. 8. Setting protocol TCP/IP computer client : 9. Test koneksi antara Server dan Client : -dari server : root@tkj1:/etc# ping 192.168.10.2 PING 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 client C:Documents and SettingsStenly and Suwi>ping 192.168.10.1 Pinging 192.168.10.1 with 32 bytes of data: Reply from 192.168.10.1: bytes=32 time<1ms TTL=64 Reply from 192.168.10.1: bytes=32 time<1ms TTL=64 Reply from 192.168.10.1: bytes=32 time<1ms TTL=64 Reply from 192.168.10.1: bytes=32 time<1ms TTL=64 IP Address : 192.168.10.2 Netmask : 255.255.255.0 Gateway : 192.168.10.1
  • 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 = 0ms C:Documents and SettingsStenly and Suwi> 10. Setting NAT agar client dapat terhubung internet : root@tkj1:~# vim /etc/rc.local iptables -t nat -A POSTROUTING -s 192.168.10.0/24 -d 0.0.0.0/0 -j MASQUERADE root@tkj1:~# cd /etc root@tkj1:/etc# ./rc.local 11. Reboot system : root@tkj1:/etc# shutdown -r now 12. Test koneksi internet dari client : C:Documents and SettingsStenly and Suwi>ping www.google.com Pinging www.google.com [173.194.38.144] with 32 bytes of data: Reply from 173.194.38.144: bytes=32 time=151ms TTL=49 Reply from 173.194.38.144: bytes=32 time=175ms TTL=49 Reply from 173.194.38.144: bytes=32 time=152ms TTL=49 Reply from 173.194.38.144: bytes=32 time=169ms TTL=49 Ping statistics for 173.194.38.144:
  • 5. Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 151ms, Maximum = 175ms, Average = 161ms C:Documents and SettingsStenly and Suwi>
  • 6. Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 151ms, Maximum = 175ms, Average = 161ms C:Documents and SettingsStenly and Suwi>