Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ===== Cisco Labs : To many Static routing (UAS Praktikum Jarkom ) ===== {{ :networking:cisco:cisco_labs-multiple-lan.png?nolink |}} ==== GOALS ==== - Menghubungkan semua jaringan dalam topology menggunakan Static Routing - Menghubungkan semua LAN ke internet (192.168.1.0/24 & 192.168.4.0/24) ===== Konfigurasi ===== ==== R1 ==== <code js> ip dhcp excluded-address 192.168.1.1 ip dhcp pool LAN_1 network 192.168.1.0 255.255.255.0 default-router 192.168.1.1 dns-server 8.8.8.8 exit ! interface FastEthernet0/0 ip address 192.168.1.1 255.255.255.0 no shutdown ! interface FastEthernet0/1 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 </code> ==== 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 </code> ==== 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 </code> ==== R4 ==== <code js> ip dhcp excluded-address 192.168.4.1 ip dhcp pool LAN_2 network 192.168.4.0 255.255.255.0 default-router 192.168.4.1 dns-server 8.8.8.8 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/0 ip address dhcp ip nat outside no shutdown exit interface FastEthernet0/1 ip address 192.168.4.1 255.255.255.0 ip nat inside no shutdown exit interface FastEthernet2/0 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 </code> ===== Testing ===== * Internet Connection from R4 <code js> R4#show ip interface brief | section FastEthernet0/0 FastEthernet0/0 192.168.195.140 YES DHCP up up 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* 0.0.0.0/0 [1/0] via 192.168.195.2 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 </code> * Internet Connection from LAN_1 and LAN_2 <code js> PC1> ip dhcp DORA IP 192.168.1.2/24 GW 192.168.1.1 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> <code js> PC2> ip dhcp DORA IP 192.168.4.3/24 GW 192.168.4.1 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 </code> ===== 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> <code js> ip route 0.0.0.0 0.0.0.0 192.168.2.2 </code> ==== 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> <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 </code> ==== 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> <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 </code> ==== 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> <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 </code> networking/cisco/lab2.txt Last modified: 2026/02/04 00:54by ilyasa