Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| networking:cisco:lab2 [2026/01/13 23:53] – created ilyasa | networking:cisco:lab2 [2026/02/04 00:54] (current) – [Cisco Labs : Multiple LAN Acess Internet With Static Routing (UAS Praktikum Jarkom )] ilyasa | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Cisco : Test Lab 2 ====== | + | ===== Cisco Labs : To many Static routing (UAS Praktikum Jarkom ) ===== |
| + | {{ : | ||
| + | |||
| + | ==== GOALS ==== | ||
| + | |||
| + | - Menghubungkan semua jaringan dalam topology menggunakan Static Routing | ||
| + | - Menghubungkan semua LAN ke internet (192.168.1.0/ | ||
| + | |||
| + | ===== Konfigurasi ===== | ||
| + | |||
| + | ==== R1 ==== | ||
| + | |||
| + | <code js> | ||
| + | ip dhcp excluded-address 192.168.1.1 | ||
| + | ip dhcp pool LAN_1 | ||
| + | | ||
| + | | ||
| + | | ||
| + | exit | ||
| + | ! | ||
| + | interface FastEthernet0/ | ||
| + | ip address 192.168.1.1 255.255.255.0 | ||
| + | no shutdown | ||
| + | ! | ||
| + | interface FastEthernet0/ | ||
| + | ip address 192.168.3.1 255.255.255.0 | ||
| + | no shutdown | ||
| + | ! | ||
| + | interface Serial1/0 | ||
| + | ip address 192.168.2.1 255.255.255.0 | ||
| + | no shutdown | ||
| + | ! | ||
| + | ip route 192.168.5.0 255.255.255.0 192.168.2.2 | ||
| + | ip route 192.168.6.0 255.255.255.0 192.168.3.2 | ||
| + | ip route 192.168.4.0 255.255.255.0 192.168.3.2 | ||
| + | ip route 0.0.0.0 0.0.0.0 192.168.3.2 | ||
| + | </ | ||
| + | |||
| + | ==== R2 ==== | ||
| + | |||
| + | <code js> | ||
| + | interface Serial1/0 | ||
| + | ip address 192.168.2.2 255.255.255.0 | ||
| + | no shutdown | ||
| + | ! | ||
| + | interface Serial1/1 | ||
| + | ip address 192.168.5.2 255.255.255.0 | ||
| + | no shutdown | ||
| + | ! | ||
| + | ip route 192.168.1.0 255.255.255.0 192.168.2.1 | ||
| + | ip route 192.168.3.0 255.255.255.0 192.168.2.1 | ||
| + | ip route 192.168.4.0 255.255.255.0 192.168.5.1 | ||
| + | ip route 192.168.6.0 255.255.255.0 192.168.5.1 | ||
| + | ip route 0.0.0.0 0.0.0.0 192.168.5.1 | ||
| + | </ | ||
| + | |||
| + | ==== R3 ==== | ||
| + | |||
| + | <code js> | ||
| + | interface Serial1/0 | ||
| + | ip address 192.168.5.1 255.255.255.0 | ||
| + | no shutdown | ||
| + | ! | ||
| + | interface Serial1/1 | ||
| + | ip address 192.168.6.1 255.255.255.0 | ||
| + | no shutdown | ||
| + | ! | ||
| + | |||
| + | ip route 192.168.1.0 255.255.255.0 192.168.5.2 | ||
| + | ip route 192.168.2.0 255.255.255.0 192.168.5.2 | ||
| + | ip route 192.168.3.0 255.255.255.0 192.168.5.2 | ||
| + | ip route 192.168.4.0 255.255.255.0 192.168.6.2 | ||
| + | ip route 0.0.0.0 0.0.0.0 192.168.6.2 | ||
| + | </ | ||
| + | |||
| + | ==== R4 ==== | ||
| + | |||
| + | <code js> | ||
| + | ip dhcp excluded-address 192.168.4.1 | ||
| + | ip dhcp pool LAN_2 | ||
| + | | ||
| + | | ||
| + | | ||
| + | exit | ||
| + | |||
| + | access-list 1 permit 192.168.0.0 0.0.255.255 | ||
| + | |||
| + | ip nat inside source list 1 interface fa0/0 overload | ||
| + | |||
| + | interface FastEthernet0/ | ||
| + | ip address dhcp | ||
| + | ip nat outside | ||
| + | no shutdown | ||
| + | exit | ||
| + | |||
| + | interface FastEthernet0/ | ||
| + | ip address 192.168.4.1 255.255.255.0 | ||
| + | ip nat inside | ||
| + | no shutdown | ||
| + | exit | ||
| + | |||
| + | interface FastEthernet2/ | ||
| + | ip address 192.168.3.2 255.255.255.0 | ||
| + | no shutdown | ||
| + | exit | ||
| + | |||
| + | interface Serial1/1 | ||
| + | ip address 192.168.6.2 255.255.255.0 | ||
| + | no shutdown | ||
| + | ! | ||
| + | |||
| + | ip route 192.168.1.0 255.255.255.0 192.168.3.1 | ||
| + | ip route 192.168.2.0 255.255.255.0 192.168.3.1 | ||
| + | ip route 192.168.5.0 255.255.255.0 192.168.6.1 | ||
| + | </ | ||
| + | |||
| + | ===== Testing ===== | ||
| + | |||
| + | * Internet Connection from R4 | ||
| + | |||
| + | <code js> | ||
| + | R4#show ip interface brief | section FastEthernet0/ | ||
| + | FastEthernet0/ | ||
| + | R4#show ip route | section 0.0.0.0 | ||
| + | Gateway of last resort is 192.168.195.2 to network 0.0.0.0 | ||
| + | S* | ||
| + | R4#ping 8.8.8.8 | ||
| + | |||
| + | Type escape sequence to abort. | ||
| + | Sending 5, 100-byte ICMP Echos to 8.8.8.8, timeout is 2 seconds: | ||
| + | !!!!! | ||
| + | Success rate is 100 percent (5/5), round-trip min/avg/max = 32/44/64 ms | ||
| + | </ | ||
| + | |||
| + | * Internet Connection from LAN_1 and LAN_2 | ||
| + | |||
| + | <code js> | ||
| + | PC1> ip dhcp | ||
| + | DORA IP 192.168.1.2/ | ||
| + | |||
| + | PC1> ping google.com | ||
| + | google.com resolved to 74.125.130.102 | ||
| + | |||
| + | 84 bytes from 74.125.130.102 icmp_seq=1 ttl=126 time=68.243 ms | ||
| + | 84 bytes from 74.125.130.102 icmp_seq=2 ttl=126 time=72.679 ms | ||
| + | 84 bytes from 74.125.130.102 icmp_seq=3 ttl=126 time=93.108 ms | ||
| + | 84 bytes from 74.125.130.102 icmp_seq=4 ttl=126 time=71.368 ms | ||
| + | 84 bytes from 74.125.130.102 icmp_seq=5 ttl=126 time=94.065 ms | ||
| + | </ | ||
| + | |||
| + | <code js> | ||
| + | PC2> ip dhcp | ||
| + | DORA IP 192.168.4.3/ | ||
| + | |||
| + | PC2> ping facebook.com | ||
| + | facebook.com resolved to 31.13.95.35 | ||
| + | |||
| + | 84 bytes from 31.13.95.35 icmp_seq=1 ttl=127 time=38.571 ms | ||
| + | 84 bytes from 31.13.95.35 icmp_seq=2 ttl=127 time=38.801 ms | ||
| + | facebook.com icmp_seq=3 timeout | ||
| + | 84 bytes from 31.13.95.35 icmp_seq=4 ttl=127 time=27.483 ms | ||
| + | 84 bytes from 31.13.95.35 icmp_seq=5 ttl=127 time=38.713 ms | ||
| + | </ | ||
| + | |||
| + | ===== Test Case ===== | ||
| + | |||
| + | Bagaimana jika koneksi dari R1 dan R4 terputus, apa yang harus dilakukan oleh seorang admin? | ||
| + | |||
| + | ==== R1 ==== | ||
| + | |||
| + | <code js> | ||
| + | no ip route 192.168.5.0 255.255.255.0 192.168.2.2 | ||
| + | no ip route 192.168.6.0 255.255.255.0 192.168.3.2 | ||
| + | no ip route 192.168.4.0 255.255.255.0 192.168.3.2 | ||
| + | no ip route 0.0.0.0 0.0.0.0 192.168.3.2 | ||
| + | </ | ||
| + | |||
| + | <code js> | ||
| + | ip route 0.0.0.0 0.0.0.0 192.168.2.2 | ||
| + | </ | ||
| + | |||
| + | ==== R2 ==== | ||
| + | |||
| + | <code js> | ||
| + | no ip route 192.168.1.0 255.255.255.0 192.168.2.1 | ||
| + | no ip route 192.168.3.0 255.255.255.0 192.168.2.1 | ||
| + | no ip route 192.168.4.0 255.255.255.0 192.168.5.1 | ||
| + | no ip route 192.168.6.0 255.255.255.0 192.168.5.1 | ||
| + | no ip route 0.0.0.0 0.0.0.0 192.168.5.1 | ||
| + | </ | ||
| + | |||
| + | <code js> | ||
| + | ip route 192.168.1.0 255.255.255.0 192.168.2.1 | ||
| + | ip route 0.0.0.0 0.0.0.0 192.168.5.1 | ||
| + | </ | ||
| + | |||
| + | ==== R3 ==== | ||
| + | |||
| + | <code js> | ||
| + | no ip route 192.168.1.0 255.255.255.0 192.168.5.2 | ||
| + | no ip route 192.168.2.0 255.255.255.0 192.168.5.2 | ||
| + | no ip route 192.168.3.0 255.255.255.0 192.168.5.2 | ||
| + | no ip route 192.168.4.0 255.255.255.0 192.168.6.2 | ||
| + | no ip route 0.0.0.0 0.0.0.0 192.168.6.2 | ||
| + | </ | ||
| + | |||
| + | <code js> | ||
| + | ip route 192.168.1.0 255.255.255.0 192.168.5.2 | ||
| + | ip route 192.168.2.0 255.255.255.0 192.168.5.2 | ||
| + | ip route 0.0.0.0 0.0.0.0 192.168.6.2 | ||
| + | </ | ||
| + | |||
| + | ==== R4 ==== | ||
| + | |||
| + | <code js> | ||
| + | no ip route 192.168.1.0 255.255.255.0 192.168.3.1 | ||
| + | no ip route 192.168.2.0 255.255.255.0 192.168.3.1 | ||
| + | no ip route 192.168.5.0 255.255.255.0 192.168.6.1 | ||
| + | </ | ||
| + | |||
| + | <code js> | ||
| + | ip route 192.168.1.0 255.255.255.0 192.168.6.1 | ||
| + | ip route 192.168.2.0 255.255.255.0 192.168.6.1 | ||
| + | ip route 192.168.5.0 255.255.255.0 192.168.6.1 | ||
| + | </ | ||