networking:cisco:lab2

This is an old revision of the document!


  1. Menghubungkan semua jaringan dalam topology menggunakan Static Routing
  2. Menghubungkan semua LAN ke internet (192.168.1.0/24 & 192.168.4.0/24)
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
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
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
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
  • Internet Connection from R4
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
  • Internet Connection from LAN_1 and LAN_2
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
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

Bagaimana jika koneksi dari R1 dan R4 terputus, apa yang harus dilakukan oleh seorang admin?

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
ip route 0.0.0.0 0.0.0.0 192.168.2.2
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
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
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
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
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
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
  • networking/cisco/lab2.1770141180.txt.gz
  • Last modified: 2026/02/04 00:53
  • by ilyasa