Selasa, 30 Agustus 2016

Static Default Router


Nama : Berliana Dewi Normasita
STATIC
DEFAULT
ROUTE
Hari/Tanggal : Sabtu, 27 November 2016
 Kelas : XII-TKJ-2
Sk/kd : -
No Jobsheet :01
Guru : Maman Hariana, S.kom


STATIC DEFAULT ROUTE
Topologi

Tabel Addressing
Device
Interface
IP Address
Subnet Mask
Default Gateway
R1
Fa0/0
192.168.1.254
255.255.255.0
N/A

Fa1/0
12.12.12.1
255.255.255.0
N/A

Lo1
172.16.1.1
255.255.255.0
N/A

Lo2
172.16.2.2
255.255.255.0
N/A
R2
Fa0/0
192.168.1.254
255.255.255.0
N/A

Fa0/1
12.12.12.2
255.255.255.0
N/A

Lo3
172.16.3.3
255.255.255.0
N/A

Lo4
172.16.4.4
255.255.255.0
N/A
S1
N/A
Vlan1
N/A
N/A
S2
N/A
Vlan1
N/A
N/A
Laptop 1
NIC
192.168.1.1
255.255.255.0
192.168.1.254
Laptop 2
NIC
192.168.2.1
255.255.255.0
192.168.2.254



Tujuan
§        Setting static default route
Konsep DasarStatic default route adalah static route dengan network address destination 0.0.0.0 dan subnet
mask 0.0.0.0. Dikenal juga sebagai “quad zero” route. Static default route melakukan identifikasi
gateway yang akan digunakan oleh router untuk mengirimkan semua paket IP untuk network
destination yang tidak diketahui di routing table, sehingga akan diforward ke route 0.0.0.0/0.
Untuk konfigurasi static default route dapat menggunakan next-hop ip address atau exit-interface.
Router(config)#ip route 0.0.0.0 0.0.0.0 12.12.12.2 Router

Static default route:
· Default route dapat digunakan ketika network destination tidak diketahui (Internet)
· Default route dapat digunakan ketika hanya ada satu jalur keluar untuk semua network
destination
· Dapat mengurangi ukuran routing table
· Jika router tidak menemukan entry network destination di routing table, maka router akan
memforward paket ke default route
· Menjadi route pilihan terakhir di routing table

Konfigurasi
Setting static default route di R1
Command untuk mensetting static default route menggunakan exit-interface
R1(config)#ip route 0.0.0.0 0.0.0.0 fa1/0

Tampilkan Routing Table di R1
Router(config)#do sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is 0.0.0.0 to network 0.0.0.0

     12.0.0.0/24 is subnetted, 1 subnets
C       12.12.12.0 is directly connected, FastEthernet0/1
     172.16.0.0/24 is subnetted, 2 subnets
C       172.16.1.0 is directly connected, Loopback1
C       172.16.2.0 is directly connected, Loopback2
C    192.168.1.0/24 is directly connected, FastEthernet0/0
S*   0.0.0.0/0 [1/0] via 12.12.12.2
               is directly connected, FastEthernet0/1
Tanda S* menandakan static default route. Setiap network destination yang tidak diketahui
dirouting table akan diforward ke 12.12.12.2. Lihat juga pada bagian Gateway of last resort yang
menyatakan bahwa untuk menuju network 0.0.0.0 gunakan gatewaynya 12.12.12.2.
Tes Ping dari Laptop1 ke Laptop2

PC>ping 192.168.2.1

Pinging 192.168.2.1 with 32 bytes of data:

Reply from 192.168.2.1: bytes=32 time=16ms TTL=126
Reply from 192.168.2.1: bytes=32 time=69ms TTL=126
Reply from 192.168.2.1: bytes=32 time=14ms TTL=126
Reply from 192.168.2.1: bytes=32 time=15ms TTL=126

Ping statistics for 192.168.2.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 14ms, Maximum = 69ms, Average = 28ms

Traceroute dari Laptop1 ke Laptop2

PC>tracert 192.168.2.1

Tracing route to 192.168.2.1 over a maximum of 30 hops:

  1   1 ms      0 ms      0 ms      192.168.1.254
  2   0 ms      1 ms      3 ms      12.12.12.2
  3   17 ms     12 ms     14 ms     192.168.2.1

Trace complete.

Tampilan Routing table di R2
R1(config)#do show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is 0.0.0.0 to network 0.0.0.0

     12.0.0.0/24 is subnetted, 1 subnets
C       12.12.12.0 is directly connected, FastEthernet0/1
     172.16.0.0/24 is subnetted, 2 subnets
C       172.16.1.0 is directly connected, Loopback1
C       172.16.2.0 is directly connected, Loopback2
C    192.168.1.0/24 is directly connected, FastEthernet0/0
S*   0.0.0.0/0 [1/0] via 12.12.12.2
               is directly connected, FastEthernet0/1
                                                                                      
Dari tampilan diatas dapat dilihat bahwa R2 menggunakan static route dengan kode S. Sedangkan
di R1 static default route dengan kode S*. Perhatikan perbedaannya ada * di R1.
Sekarang kita akan mencoba static default route di R2, berarti di R1 harus disetting static route
terlebih dahulu dan hapus konfigurasi static default route yang ada.
Command untuk mensetting static default route menggunakan exit-interface
R2(config)#ip 0.0.0.0 0.0.0.0 fa1/0
Tampilkan Routing table di R2
Router#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is 0.0.0.0 to network 0.0.0.0

     12.0.0.0/24 is subnetted, 1 subnets
C       12.12.12.0 is directly connected, FastEthernet0/1
     172.16.0.0/24 is subnetted, 2 subnets
C       172.16.1.0 is directly connected, Loopback1
C       172.16.2.0 is directly connected, Loopback2
C    192.168.1.0/24 is directly connected, FastEthernet0/0
S*   0.0.0.0/0 [1/0] via 12.12.12.1
               is directly connected, FastEthernet0/1
Tanda S* menandakan static default route. Setiap network destination yang tidak diketahui
dirouting table akan diforward ke 12.12.12.1. Lihat juga pada bagian Gateway of last resort yang
menyatakan bahwa untuk menuju network 0.0.0.0 gunakan gatewaynya 12.12.12.1
Tes Ping dari Laptop2 ke Laptop1
PC>ping 192.168.1.1

Pinging 192.168.1.1 with 32 bytes of data:

Reply from 192.168.1.1: bytes=32 time=13ms TTL=126
Reply from 192.168.1.1: bytes=32 time=14ms TTL=126
Reply from 192.168.1.1: bytes=32 time=37ms TTL=126
Reply from 192.168.1.1: bytes=32 time=10ms TTL=126

Ping statistics for 192.168.1.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 10ms, Maximum = 37ms, Average = 18ms
Traceroute dari Laptop2 ke Laptop1
PC>tracert 192.168.1.1

Tracing route to 192.168.1.1 over a maximum of 30 hops:

  1   1 ms      0 ms      0 ms      192.168.2.254
  2   10 ms     11 ms     12 ms     12.12.12.1
  3   13 ms     13 ms     13 ms     192.168.1.1

Trace complete.
Note : langkah diatas harus dijalannkan secara bergantian agar bisa mensimulasikan static default route di R1 maupun R2
Verifikasi
Proses konfigurasi diatas sekaligus dilakukan proses verifikasi. Untuk melihat hasil settingan, gunakan commmand show running-config.
Tampilkan routing tabel R2
Router#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is 0.0.0.0 to network 0.0.0.0

     12.0.0.0/24 is subnetted, 1 subnets
C       12.12.12.0 is directly connected, FastEthernet0/1
     172.16.0.0/24 is subnetted, 2 subnets
C       172.16.1.0 is directly connected, Loopback1
C       172.16.2.0 is directly connected, Loopback2
C    192.168.1.0/24 is directly connected, FastEthernet0/0
S*   0.0.0.0/0 [1/0] via 12.12.12.1
               is directly connected, FastEthernet0/1
Dari output diatas ditampilkan full routing table di R2. Jika ingin menampilkan misalnya yang connected atau static saja, gunakan tambahan sub-command connected atau static.
Tampilkan routing table static R2
Router#show ip route static
S*   0.0.0.0/0 [1/0] via 12.12.12.1
               is directly connected, FastEthernet0/1
tampilkan routing table connected R2
router#show ip route connected
C 12.12.12.0/24 is directly connected, FastEthernet0/1
C 172.16.3.0/24 is directly connected, Loopback3
C 172.16.4.0/24 is directly connected, Loopback4
C 192.168.2.0/24 is directly connected, FastEthernet0/0

Opsi menampilkan routing table
Ada beberapa pilihan untuk menampilkan routing table, apakah ingin menaampilkan static saja atau yang lainnya. Gunakan tanda ? untuk melihat opsi yang tersedia.
Router#show ip route ?
WORD Network to display information about or hostname
Bgp Border Getway Protocol (BGP)
Connected connected
Eigrp Enhanced Interior Routing Protocol (EIGRP)
Ospf open Shortest Path First (OSPF)
Rip Routing Information protocol (RIP)
Static Static routes
<cr>

Review
1.       Static default route cocok untuk network tipe stub-network, jelaskah apa yang dimaksud tipe stub-network ?
2.       Router bisa menjalankan routing protocol static dan dynamic secara bersamaan. Static default route sering digunakan sebagai backup routing prptocol dynamic jika bermasalah, bagaimana cara mensetting agar static default route menjadi backup routing protocol OSPF jika routing protocol OSPF dawn ?

0 komentar:

:a: :b: :c: :d: :e: :f: :g: :h: :i: :j: :k: :l: :m: :n:

Posting Komentar