STATIK ROUTING
Cara me-routing router ada beberapa cara ada dengan cara static dan ada juga dinamic.
Perbedaan antara static dan dinamic :
a. Static routing, dikonfigurasi secara manual. Routing tabelnya diset manual dan disimpan dalam router. Tidak ada informasi sharing diantara sesama router. Hal ini mengakibatkan keterbatasan yang jelas karena ia tidak dapat secara otomatis menentukan route terbaik; ia selalu menggunakan rute yang sama yang kemungkinan bukan rute terbaik. Jika route berubah, static router harus diupdate. secara manual. Karena static router menyediakan control penuh pada routing tabelnya, ia lebih aman dibanding dynamic router.
b. Dynamic routing, mampu membuat routing tabelnya sendiri dengan berbicara ke sesama router. Untuk melakukannya ia menemukan route dan route alternatif yang berada pada network. Dynamic router bisa membuat keputusan pada route yang mana sebuah paket mencapai tujuan. Umumnya ia mengirimkan paket ke route yang paling efisien; salah satu yang menghasilkan jumlah hop lebih sedikit. Bagaimanapun, jika route macet,dynamic route dapat mengirimkan paket ke route alternatif.
Pada kesempatan ini kita coba untuk yang static routing. Berikut cara men-setting router seperti gambar diatas.
Router1 : Press Enter to Start Router> |
Router2: Press Enter to Start Router>ena |
PC Client01 : | PC Client02 : |
Router1 : Press Enter to Start Router> YOGYA(config-if)#encapsulation hdlc YOGYA(config-if)#no shut YOGYA(config-if)#clock rate 64000 YOGYA(config-if)#bandwidth 56 YOGYA(config-if)#encapsulation hdlc YOGYA(config-if)#int e0 YOGYA(config-if)#ip addr 192.168.1.1 255.255.255.0 YOGYA(config-if)#no shut %LINK-3-UPDOWN: Interface Serial0, changed state to up YOGYA(config-if)#end %LINK-3-UPDOWN: Interface Ethernet0, changed state to up YOGYA#conf t YOGYA(config)#router rip YOGYA(config-router)#network 192.168.1.0 YOGYA(config-router)#network 192.168.2.0 YOGYA(config-router)#network 192.168.3.0 YOGYA(config-router)#end YOGYA#wr mem [OK] |
Router3 : Press Enter to Start Router> TMG(config-if)#encapsulation hdlc TMG(config-if)#no shut TMG(config-if)#clock rate 64000 TMG(config-if)#bandwidth 56 TMG(config-if)#encapsulation hdlc TMG(config-if)#int e0 TMG(config-if)#ip addr 192.168.6.1 255.255.255.0 TMG(config-if)#no shut %LINK-3-UPDOWN: Interface Serial0, changed state to up TMG(config-if)#end %LINK-3-UPDOWN: Interface Ethernet0, changed state to up TMG#conf t TMG(config)#router rip TMG(config-router)#network 192.168.3.0 TMG(config-router)#network 192.168.4.0 TMG(config-router)#network 192.168.6.0 TMG(config-router)#end #wr mem [OK] |
Memberikan ip pada PC
PC1
Press Enter to Start c:>ipconfig /ip 192.168.5.2 255.255.255.0 c:>ipconfig /dg 192.168.5.1 c:>ipconfig HELP Manipulates ip address for workstation. IPCONFIG [/ip] [/dg] /ip adds the ip address and subnetmask to the workstation /dg adds the default gateway to the workstation Examples: Ć ipconfig /ip 157.1.1.12 255.255.255.0 Ć ipconfig /dg 157.1.1.1 Boson BOSS 5.0 Ip configuration Ethernet adapter local area conection : Connection-specific DNS suffix .: boson.com Ip address . . . . . . . . . . . . . . . . . . : 192.168.5.2 Subnetmask . . . . . . . . . . . . . . . . : 255.255.255.0 Default gateway . . . . . . . . . . . . . : 192.168.5.1 You can also use winipcfg to configure the ip address |
C:>ping 192.168.4.2 Pinging 192.168.4.2 with 32 bytes of data: Reply from 192.168.4.2: bytes=32 time=60ms TT L=241 Reply from 192.168.4.2: bytes=32 time=60ms TTL=241 C:>ping 192.168.2.2 Pinging 192.168.2.2 with 32 bytes of data: Reply from 192.168.2.2: bytes=32 time=60ms TT L=241 Reply from 192.168.2.2: bytes=32 time=60ms TTL=241 C:>ping 192.168.2.1 Pinging 192.168.2.1 with 32 bytes of data: Reply from 192.168.2.1: bytes=32 time=60ms TT L=241 Reply from 192.168.2.1: bytes=32 time=60ms TTL=241 C:>ping 192.168.3.2 Pinging 192.168.3.2 with 32 bytes of data: Reply from 192.168.3.2: bytes=32 time=60ms TT L=241 Reply from 192.168.3.2: bytes=32 time=60ms TTL=24 |
PC 2
Press Enter to Start c:>ipconfig /ip 192.168.4.2 255.255.255.0 c:>ipconfig /dg 192.168.4.1 c:>ipconfig HELP Manipulates ip address for workstation. IPCONFIG [/ip] [/dg] /ip adds the ip address and subnetmask to the workstation /dg adds the default gateway to the workstation Examples: Ć ipconfig /ip 157.1.1.12 255.255.255.0 Ć ipconfig /dg 157.1.1.1 Boson BOSS 5.0 Ip configuration Ethernet adapter local area conection : Connection-specific DNS suffix .: boson.com Ip address . . . . . . . . . . . . . . . . . . : 192.168.4.2 Subnetmask . . . . . . . . . . . . . . . . : 255.255.255.0 Default gateway . . . . . . . . . . . . . : 192.168.4.1 You can also use winipcfg to configure the ip address |
C:>ping 192.168.2.1 Pinging 192.168.2.1 with 32 bytes of data: Reply from 192.168.2.1: bytes=32 time=60ms TT L=241 Reply from 192.168.2.1: bytes=32 time=60ms TTL=241 |
PC3
Press Enter to Start c:>ipconfig /ip 192.168.6.2 255.255.255.0 c:>ipconfig /dg 192.168.6.1 c:>ipconfig HELP Manipulates ip address for workstation. IPCONFIG [/ip] [/dg] /ip adds the ip address and subnetmask to the workstation /dg adds the default gateway to the workstation Examples: Ć ipconfig /ip 157.1.1.12 255.255.255.0 Ć ipconfig /dg 157.1.1.1 Boson BOSS 5.0 Ip configuration Ethernet adapter local area conection : Connection-specific DNS suffix .: boson.com Ip address . . . . . . . . . . . . . . . . . . : 192.168.6.2 Subnetmask . . . . . . . . . . . . . . . . : 255.255.255.0 Default gateway . . . . . . . . . . . . . : 192.168..1 You can also use winipcfg to configure the ip address |
C:>ping 192.168.3.2 Pinging 192.168.4.2 with 32 bytes of dat Reply from 192.168.3.2: bytes=32 time=60ms TT L=241 Reply from 192.168.3.2: bytes=32 time=60ms TTL=241 |
Tidak ada komentar:
Posting Komentar