Jumat, 16 September 2016

STATIC DEFAULT ROUTE

 STATIC DEFAULT ROUTE
 





 

Tujuan
       Setting static default route

Konsep Dasar
Static 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.r(config)# ip route 0.0.0.0 0.0.0.0 {ip-address or exit-intf}
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 defaultroute di R1
Comman untuk menyeting static default route menggunakan next-hop ip address.

R1(config)#ip route 0.0.0.0 0.0.0.0 12.12.12.2

Tampilan routing table di R1

R1(config)# show ip route

R1(config)#do show ip ro
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

tandaS* menandakan statict default route.setiap network destinatic yang tidakdi ketahui
di routing table akan di forward ke 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=68ms TTL=128
Reply from 192.168.2.1: bytes=32 time=12ms TTL=128
Reply from 192.168.2.1: bytes=32 time=12ms TTL=128
Reply from 192.168.2.1: bytes=32 time=0ms TTL=128

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