0% found this document useful (0 votes)
92 views

Lab 4 Static Routing

1. A static routing configuration was performed between two routers, R1 and R2, connected via point-to-point wireless. IP addresses, default gateways and static routes were configured on each router. 2. Connectivity tests showed that clients could ping their respective routers and gateways, but the client on R2 could not connect to the internet. 3. The missing configuration was adding a static route on R2 to route traffic from its LAN to R1's LAN, allowing full network connectivity and internet access for both clients.

Uploaded by

Ione A
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
92 views

Lab 4 Static Routing

1. A static routing configuration was performed between two routers, R1 and R2, connected via point-to-point wireless. IP addresses, default gateways and static routes were configured on each router. 2. Connectivity tests showed that clients could ping their respective routers and gateways, but the client on R2 could not connect to the internet. 3. The missing configuration was adding a static route on R2 to route traffic from its LAN to R1's LAN, allowing full network connectivity and internet access for both clients.

Uploaded by

Ione A
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

Lab 4.

STATIC ROUTING
ARSITEKTUR INFRASTRUKTUR JARINGAN
SMKN 4 PAYAKUMBUH
Topologi
Konfigurasi yang dilakukan
1. Basic Konfigurasi Router
a. Hostname
b. Interface
c. IP address
d. Default route
e. NAT
2. Konfigurasi Point to point wireless
3. Konfigurasi Static Routing
4. Test Koneksi
STUDI KASUS
Bangunlah jaringan komputer seperti topologi tersebut dengan ketentuan :
◦ Koneksi R1 dan R2 menggunakan Point to Point
◦ IP WAN menggunakan DHCP Client dari internet gateway
◦ Client 1 dan Client 2 bisa terhubung dan ping test terkoneksi
◦ Client 1 dan client 2 bisa akses internet
Basic Config R1
Hostname
/system identity set name = Router1
Interface
1. Aktifkan interface wireless
/interface set wlan1 disabled=no
2. Ubah nama interface ethernet
/interface set ether1 name=ether1-internet
/interface set ether2 name=ether2-lan
Konfigurasi R1
Konfigurasi IP Address
1. Aktifkan dhcp-client ke internet
/ip dhcp-client add interface=ether 1 add=default-route=no
/ip dhcp-client print
2. Tambahkan IP address di interface lan
/ip address add address=192.168.10.1/24 interface=ether2-lan
3. Tambahkan IP address interface wlan
/ip address add address=10.100.1.1/30 interface=wlan1
Ip address print
Konfigurasi R1
Default Route
1. Tambahkan IP gateway ke internet
/ip route add dst-address=0.0.0./24 gateway=ip gateway
2. Cek table routing
/ip route print
3. Test koneksi router ke internet
/ping 8.8.8.8
/ping google.com
Konfigurasi R1
NAT
Konfigurasi NAT agar client bisa akses ke internet
◦ /ip firewall nat add chain=srcnat out-interface=ether1 action=masquerade

Test Koneksi Client bisa internet


2. Konfigurasi Point to Point
Router 1
Konfigurasi dasar wireless point to point
Mode : bridge
Channel width : 20 Mhz
SSID : nama jaringan
Security profile : default
Konfigurasi PTP Router 1
Basic Config R2
Hostname
/system identity set name = Router2
Interface
1. Aktifkan interface wireless
/interface set wlan1 disabled=no
2. Ubah nama interface ethernet
/interface set ether1 name=ether1-internet
/interface set ether2 name=ether2-lan
Konfigurasi R2
Konfigurasi IP Address
1. Tambahkan IP address di interface lan
/ip address add address=192.168.20.1/24 interface=ether2-lan
3. Tambahkan IP address interface wlan
/ip address add address=10.100.1.2/30 interface=wlan1
Ip address print
Konfigurasi R2
Default Route
1. Tambahkan IP gateway ke internet
/ip route add dst-address=0.0.0./24 gateway=ip gateway
berapa IP gateway R2 ke Internet ?
2. Cek table routing
/ip route print
3. Test koneksi router ke internet
/ping 8.8.8.8
/ping google.com
Konfigurasi R2
NAT
Konfigurasi NAT agar client bisa akses ke internet
◦ /ip firewall nat add chain=srcnat out-interface=ether1 action=masquerade

Test Koneksi Client bisa internet


2. Konfigurasi Point to Point
Router 2
Konfigurasi dasar wireless point to point
Mode : bridge
Channel width : 20 Mhz
Security profile : default

Koneksi PTP ke Router 1


Scan ssid yang dimiliki Router 1 sebelumnya, kemudian connect
Scan SSID
Status koneksi PTP
Verifikasi koneksi PTP
Ping test ke wlan di R1

Kenapa koneksi ke internet belum bisa = no route to host


3. Konfigurasi Static Routing
Static Routing R1
/ip route add dst-address=network_tujuan gateway=ip_gateway menuju tujuan
Di R1 tujuan adalah client di R2 dengan network = 192.168.20./24
Gateway menuju network R2 = 10.100.1.2

Static Routing R2
/ip route add dst-address=network_tujuan gateway=ip_gateway menuju tujuan
Di R2 tujuan adalah client di R1 dengan network = 192.168.10./24
Gateway menuju network R2 = 10.100.1.1
Verifikasi Koneksi
Test koneksi di Pc 2
Client bisa ping ke gateway 192.168.20.1
Client tidak bisa koneksi ke internet

Konfigurasi apa yang kurang apabila client2 tidak


Bisa koneksi ke internet ?
Test ping Koneksi client 1
Test Ping Client 2
Ping ke gateway
Ping ke Internet
Ping ke PC 1 192.168.10.2

Simpan hasil test koneksi sebagai bahan laporan


Tabel Routing R1
Pertanyaan
1. Jelaskan arti flag AS pada routing table
2.Jelaskan arti dari flag DAC pada routing table
3. Apa maksud dari distance 1 dan distance 0
4. Apa perbedaan default route dan static route

You might also like