static default router

On Kamis, 12 Januari 2017 0 komentar

Topologi
Screenshot (171)
Tabel Addresing
DeviceInterfaceIP AddressSubnet MaskDefault Gateway
Router0Fa0/0192.168.1.254255.255.255.0N/A
Fa0/112.12.12.1255.255.255.0N/A
Lo1172.16.1.1255.255.255.0N/A
Lo2172.16.2.2255.255.255.0N/A
Router1Fa0/0192.168.2.254255.255.255.0N/A
Fa0/112.12.12.2255.255.255.0N/A
Lo3172.16.3.3255.255.255.0N/A
Lo4172.16.4.4255.255.255.0N/A
Switch0N/AVLAN1N/AN/A
Switch1N/AVLAN1N/AN/A
Laptop0NIC192.168.1.1255.255.255.0192.168.1.254
Laptop1NIC192.168.2.1255.255.255.0192.168.2.254
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.

Router(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
Pemberian IP address, Subnet Mask , dan Default Gateway
  1. Pemberian Ip Address dan Subnet Mask pada Fa0/0 , Fa0/1 , Lo1 , Lo2 di Route0
  • Klik Route0 dan pilih pada bagian CLI
  • Pilih no
Router>
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface FastEthernet0/0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)# ip address 192.168.1.254 255.255.255.0
Router(config-if)#exit
Router(config)#interface FastEthernet0/1
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Router(config-if)#ip address 12.12.12.2 255.255.255.0
Router(config)#int Lo1
Router(config-if)#
%LINK-5-CHANGED: Interface Loopback1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to up
Router(config-if)#ip address 172.16.1.1 255.255.255.0
Router(config-if)#int Lo2
Router(config-if)#
%LINK-5-CHANGED: Interface Loopback2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback2, changed state to up
Router(config-if)#ip address 172.16.2.2 255.255.255.0
2. Pemberian Ip Address dan Subnet Mask pada Fa0/0 , Fa0/1 , Lo3 , Lo4 di Route1
  • Klik Route1 dan pilih pada bagian CLI
  • Pilih no
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface FastEthernet0/0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
ip address 192.168.2.254 255.255.255.0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/1
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/1
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
ip address 12.12.12.2 255.0.0.0
Router(config-if)#ip address 12.12.12.2 255.255.255.0
Router(config-if)#int Lo3
Router(config-if)#
%LINK-5-CHANGED: Interface Loopback3, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback3, changed state to up
Router(config-if)#ip address 172.16.3.3 255.255.255.0
Router(config-if)#int Lo4
Router(config-if)#
%LINK-5-CHANGED: Interface Loopback4, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback4, changed state to up
Router(config-if)#ip address 172.16.4.4 255.255.255.0
3. Pemberian Ip address, Subnet Mask, dan Gateway pada Laptop0
  • Klik pada Laptop0
  • Pilih tab Desktop
  • Pilih Ip Configuration
  • Isi Ip address, Subnet Mask, dan Gateway sesuai dengan table di atas
4. Pemberian Ip address, Subnet Mask, dan Gateway pada Laptop1
  • Klik pada Laptop1
  • Pilih tab Desktop
  • Pilih Ip Configuration
  • Isi Ip address, Subnet Mask, dan Gateway sesuai dengan table di atas
Setting static default route di Ruote0
Pilih salah satu:
Router(config)#ip route 0.0.0.0 0.0.0.0 12.12.12.2
atau
Router(config)#ip route 0.0.0.0 0.0.0.0 fa0/1
Tampilkan Routing pada Router0
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.2
is directly connected, FastEthernet0/1
Setting static default route di Ruote1
Pilih salah satu:
Router(config)#ip route 0.0.0.0 0.0.0.0 12.12.12.1
atau
Router(config)#ip route 0.0.0.0 0.0.0.0 fa0/1
Tampilkan Routing pada Router1
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.3.0 is directly connected, Loopback3
C 172.16.4.0 is directly connected, Loopback4
C 192.168.2.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
Verifikasi Ping Laptop1 ke Laptop0
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=27ms TTL=126
Reply from 192.168.1.1: bytes=32 time=38ms TTL=126
Reply from 192.168.1.1: bytes=32 time=24ms TTL=126
Reply from 192.168.1.1: bytes=32 time=26ms 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 = 24ms, Maximum = 38ms, Average = 28ms
Traceroute dari Laptop1 ke Laptop0
PC>tracert 192.168.1.1
Tracing route to 192.168.1.1 over a maximum of 30 hops:
1 1 ms 0 ms 10 ms 192.168.2.254
2 14 ms 15 ms 14 ms 12.12.12.1
3 38 ms 25 ms 23 ms 192.168.1.1

0 komentar:

Posting Komentar