Static routing juniper
Basic Knowledge
Static routing adalah pembuatan dan peng-update-an routing table secara manual. Statik routing tidak akan merubah informasi tabel routing secara otomatis, sehingga administrator harus melakukan perubahan secara manual apabila terjadi perubahan topologi.
Disini kita akan mencoba belajar bagaimana membuat static routing juniper. Untuk bahan latihan static routing juniper anda boleh melihat konfigurasi router dibawah.
Konfigurasi Router
- Logical Router Jakarta - set logical-routers jakarta interfaces em 0 unit 0 vlan-id 10 set logical-routers jakarta interfaces em 0 unit 0 family inet address 10.10 . 10.1 / 30 set logical-routers jakarta interfaces lo 0 unit 0 family inet address 1.1 . 1.1 / 32 set logical-routers jakarta routing-options static route 10.10 . 20.0 / 30 next-hop 10.10 . 10.2 set logical-routers jakarta routing-options static route 3.3 . 3.3 / 32 next-hop 10.10 . 10.2 - Logical Router Bandung - set logical-routers bandung interfaces em 1 unit 0 vlan-id 10 set logical-routers bandung interfaces em 1 unit 0 family inet address 10.10 . 10.2 / 30 set logical-routers bandung interfaces em 1 unit 1 vlan-id 100 set logical-routers bandung interfaces em 1 unit 1 family inet address 10.10 . 20.2 / 30 set logical-routers bandung interfaces lo 0 unit 1 family inet address 2.2 . 2.2 / 32 set logical-routers bandung routing-options static route 1.1 . 1.1 / 32 next-hop 10.10 . 10.1 set logical-routers bandung routing-options static route 3.3 . 3.3 / 32 next-hop 10.10 . 20.1 - Logical Router Surabaya - set logical-routers surabaya interfaces em 2 unit 0 vlan-id 100 set logical-routers surabaya interfaces em 2 unit 0 family inet address 10.10 . 20.1 / 30 set logical-routers surabaya interfaces lo 0 unit 2 family inet address 3.3 . 3.3 / 32 set logical-routers surabaya routing-options static route 10.10 . 10.0 / 30 next-hop 10.10 . 20.2 set logical-routers surabaya routing-options static route 1.1 . 1.1 / 32 next-hop 10.10 . 20.2 - Interface Vlan Tagging - set interfaces em 0 vlan-tagging set interfaces em 1 vlan-tagging set interfaces em 2 vlan-tagging set interfaces em 3 vlan-tagging |
Verifikasi
- Show Route Protocol - barly# run show route protocol static logical-router all logical-router: jakarta inet. 0: 5 destinations, 5 routes ( 5 active, 0 holddown, 0 hidden ) + = Active Route, - = Last Active, * = Both 3.3 . 3.3 / 32 *[Static/ 5 ] 00: 00: 02 > to 10.10 . 10.2 via em 0.0 10.10 . 20.0 / 30 *[Static/ 5 ] 00: 00: 02 > to 10.10 . 10.2 via em 0.0 ----- logical-router: surabaya inet. 0: 5 destinations, 5 routes ( 5 active, 0 holddown, 0 hidden ) + = Active Route, - = Last Active, * = Both 1.1 . 1.1 / 32 *[Static/ 5 ] 00: 00: 02 > to 10.10 . 20.2 via em 2.0 10.10 . 10.0 / 30 *[Static/ 5 ] 00: 00: 02 > to 10.10 . 20.2 via em 2.0 ----- logical-router: bandung inet. 0: 7 destinations, 7 routes ( 7 active, 0 holddown, 0 hidden ) + = Active Route, - = Last Active, * = Both 1.1 . 1.1 / 32 *[Static/ 5 ] 00: 00: 02 > to 10.10 . 10.1 via em 1.0 3.3 . 3.3 / 32 *[Static/ 5 ] 00: 00: 02 > to 10.10 . 20.1 via em 1.1 - Ping Test - barly#run ping 1.1 . 1.1 logical-router jakarta PING 1.1 . 1.1 ( 1.1 . 1.1 ): 56 data bytes 64 bytes from 1.1 . 1.1: icmp_seq= 0 ttl= 64 time= 3.630 ms 64 bytes from 1.1 . 1.1: icmp_seq= 1 ttl= 64 time= 0.215 ms 64 bytes from 1.1 . 1.1: icmp_seq= 2 ttl= 64 time= 0.225 ms 64 bytes from 1.1 . 1.1: icmp_seq= 3 ttl= 64 time= 0.215 ms ^C --- 1.1 . 1.1 ping statistics --- 4 packets transmitted, 4 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.215 / 1.071 / 3.630 / 1.477 ms [edit] barly# <span style= "color: #ff0000;" >run ping <em> 1.1 . 1.1 </em> logical-router <em>bandung</em></span> PING 1.1 . 1.1 ( 1.1 . 1.1 ): 56 data bytes 64 bytes from 1.1 . 1.1: icmp_seq= 0 ttl= 64 time= 1.394 ms 64 bytes from 1.1 . 1.1: icmp_seq= 1 ttl= 64 time= 0.624 ms 64 bytes from 1.1 . 1.1: icmp_seq= 2 ttl= 64 time= 0.617 ms 64 bytes from 1.1 . 1.1: icmp_seq= 3 ttl= 64 time= 0.586 ms ^C --- 1.1 . 1.1 ping statistics --- 4 packets transmitted, 4 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.586 / 0.805 / 1.394 / 0.340 ms [edit] barly# <span style= "color: #ff0000;" >run ping <em> 1.1 . 1.1 </em> logical-router <em>surabaya</em></span> PING 1.1 . 1.1 ( 1.1 . 1.1 ): 56 data bytes 64 bytes from 1.1 . 1.1: icmp_seq= 0 ttl= 63 time= 1.799 ms 64 bytes from 1.1 . 1.1: icmp_seq= 1 ttl= 63 time= 1.058 ms 64 bytes from 1.1 . 1.1: icmp_seq= 2 ttl= 63 time= 1.228 ms 64 bytes from 1.1 . 1.1: icmp_seq= 3 ttl= 63 time= 1.085 ms ^C --- 1.1 . 1.1 ping statistics --- 4 packets transmitted, 4 packets received, 0% packet loss round-trip min/avg/max/stddev = 1.058 / 1.292 / 1.799 / 0.299 ms |
Running Configuration
Statik Routing
Komentar Terakhir