Posted by: Barly Wicaksono | 13 February, 2012

Routing OSPF di Juniper (Multi Area)

OSPF adalah protokol interior routing yang berangsur-angsur menggantikan posisi RIP dalam banyak network. OSPF termasuk protokol routing link state. Setiap router dalam OSPF diberikan router ID.
Router ID biasanya berupa IP address terbesar yang dimiliki router. Jika router memiliki interface loopback, maka router ID nya adalah IP address dari interface loopback yang terbesar.

Router Link State membangun peta internal dari topologi networknya. Router-router lain menggunakan router ID untuk mengidentifikasi router dalam topology. Setiap router menggambarkan network sebagai sebuah pohon dengan dirinya sendiri sebagai akarnya. Ongkos metric yang dipakai bisa berupa speedinterface atau keandalan suatu link. (sumber)

OSPF Multiarea

OSPF Multiarea

Konfigurasi Router

<br />- Logical Router R1 -<br />set logical-routers R1 interfaces em0 unit 0 vlan-id 10<br />set logical-routers R1 interfaces em0 unit 0 family inet address 192.168.0.1/30<br />set logical-routers R1 interfaces em0 unit 1 vlan-id 50<br />set logical-routers R1 interfaces em0 unit 1 family inet address 192.168.0.9/30<br />set logical-routers R1 interfaces lo0 unit 0 family inet address 1.1.1.1/32<br />set logical-routers R1 protocols ospf area 0.0.0.0 interface em0.0<br />set logical-routers R1 protocols ospf area 0.0.0.0 interface lo0.0<br />set logical-routers R1 protocols ospf area 0.0.0.0 interface em0.1<br /><br />- Logical Router R2 -<br />set logical-routers R2 interfaces em2 unit 0 vlan-id 20<br />set logical-routers R2 interfaces em2 unit 0 family inet address 192.168.0.6/30<br />set logical-routers R2 interfaces em2 unit 1 vlan-id 40<br />set logical-routers R2 interfaces em2 unit 1 family inet address 192.168.0.14/30<br />set logical-routers R2 interfaces lo0 unit 2 family inet address 3.3.3.3/32<br />set logical-routers R2 protocols ospf area 0.0.0.0 interface em2.0<br />set logical-routers R2 protocols ospf area 0.0.0.0 interface lo0.2<br />set logical-routers R2 protocols ospf area 0.0.0.0 interface em2.1<br /><br />- Logical Router R3 -<br />set logical-routers R3 interfaces em3 unit 1 vlan-id 40<br />set logical-routers R3 interfaces em3 unit 1 family inet address 192.168.0.13/30<br />set logical-routers R3 interfaces em3 unit 2 vlan-id 50<br />set logical-routers R3 interfaces em3 unit 2 family inet address 192.168.0.10/30<br />set logical-routers R3 interfaces em3 unit 3 vlan-id 30<br />set logical-routers R3 interfaces em3 unit 3 family inet address 192.168.0.17/30<br />set logical-routers R3 interfaces lo0 unit 3 family inet address 4.4.4.4/32<br />set logical-routers R3 protocols ospf area 0.0.0.1 interface em3.1<br />set logical-routers R3 protocols ospf area 0.0.0.1 interface em3.2<br />set logical-routers R3 protocols ospf area 0.0.0.1 interface lo0.3<br />set logical-routers R3 protocols ospf area 0.0.0.1 interface em3.3<br /><br />- Logical Router ROSPF -<br />set logical-routers ROSPF interfaces em1 unit 0 vlan-id 10<br />set logical-routers ROSPF interfaces em1 unit 0 family inet address 192.168.0.2/30<br />set logical-routers ROSPF interfaces em1 unit 2 vlan-id 30<br />set logical-routers ROSPF interfaces em1 unit 2 family inet address 192.168.0.18/30<br />set logical-routers ROSPF interfaces em1 unit 3 vlan-id 20<br />set logical-routers ROSPF interfaces em1 unit 3 family inet address 192.168.0.5/30<br />set logical-routers ROSPF interfaces lo0 unit 1 family inet address 2.2.2.2/32<br />set logical-routers ROSPF protocols ospf area 0.0.0.0 interface lo0.1<br />set logical-routers ROSPF protocols ospf area 0.0.0.0 interface em1.0<br />set logical-routers ROSPF protocols ospf area 0.0.0.0 interface em1.3<br />set logical-routers ROSPF protocols ospf area 0.0.0.1 interface em1.2<br /><br />- Interface Vlan Tagging -<br />set interfaces em0 vlan-tagging<br />set interfaces em1 vlan-tagging<br />set interfaces em2 vlan-tagging<br />set interfaces em3 vlan-tagging<br />

 

<br />- Show Route -<br />barly# run show route logical-router all<br />logical-router: R1<br />inet.0: 12 destinations, 12 routes (12 active, 0 holddown, 0 hidden)<br />+ = Active Route, - = Last Active, * = Both<br /><br />1.1.1.1/32 *[Direct/0] 01:31:18<br />&gt; via lo0.0<br />2.2.2.2/32 *[OSPF/10] 01:30:32, metric 1<br />&gt; to 192.168.0.2 via em0.0<br />3.3.3.3/32 *[OSPF/10] 01:21:21, metric 2<br />&gt; to 192.168.0.2 via em0.0<br />4.4.4.4/32 *[OSPF/10] 01:21:33, metric 2<br />&gt; to 192.168.0.2 via em0.0<br />192.168.0.0/30 *[Direct/0] 01:31:18<br />&gt; via em0.0<br />192.168.0.1/32 *[Local/0] 01:31:18<br />Local via em0.0<br />192.168.0.4/30 *[OSPF/10] 01:21:21, metric 2<br />&gt; to 192.168.0.2 via em0.0<br />192.168.0.8/30 *[Direct/0] 01:31:18<br />&gt; via em0.1<br />192.168.0.9/32 *[Local/0] 01:31:18<br />Local via em0.1<br />192.168.0.12/30 *[OSPF/10] 01:30:27, metric 3<br />&gt; to 192.168.0.2 via em0.0<br />192.168.0.16/30 *[OSPF/10] 01:30:32, metric 2<br />&gt; to 192.168.0.2 via em0.0<br />224.0.0.5/32 *[OSPF/10] 01:31:20, metric 1<br />MultiRecv<br />-----<br /><br />logical-router: R2<br />inet.0: 12 destinations, 12 routes (12 active, 0 holddown, 0 hidden)<br />+ = Active Route, - = Last Active, * = Both<br /><br />1.1.1.1/32 *[OSPF/10] 01:30:28, metric 2<br />&gt; to 192.168.0.5 via em2.0<br />2.2.2.2/32 *[OSPF/10] 01:30:28, metric 1<br />&gt; to 192.168.0.5 via em2.0<br />3.3.3.3/32 *[Direct/0] 01:31:18<br />&gt; via lo0.2<br />4.4.4.4/32 *[OSPF/10] 01:21:33, metric 2<br />&gt; to 192.168.0.5 via em2.0<br />192.168.0.0/30 *[OSPF/10] 01:30:28, metric 2<br />&gt; to 192.168.0.5 via em2.0<br />192.168.0.4/30 *[Direct/0] 01:31:18<br />&gt; via em2.0<br />192.168.0.6/32 *[Local/0] 01:31:18<br />Local via em2.0<br />192.168.0.8/30 *[OSPF/10] 01:30:28, metric 3<br />&gt; to 192.168.0.5 via em2.0<br />192.168.0.12/30 *[Direct/0] 01:31:19<br />&gt; via em2.1<br />192.168.0.14/32 *[Local/0] 01:31:19<br />Local via em2.1<br />192.168.0.16/30 *[OSPF/10] 01:30:28, metric 2<br />&gt; to 192.168.0.5 via em2.0<br />224.0.0.5/32 *[OSPF/10] 01:31:22, metric 1<br />MultiRecv<br />-----<br /><br />logical-router: R3<br />inet.0: 13 destinations, 13 routes (13 active, 0 holddown, 0 hidden)<br />+ = Active Route, - = Last Active, * = Both<br /><br />1.1.1.1/32 *[OSPF/10] 01:21:33, metric 2<br />&gt; to 192.168.0.18 via em3.3<br />2.2.2.2/32 *[OSPF/10] 01:21:33, metric 1<br />&gt; to 192.168.0.18 via em3.3<br />3.3.3.3/32 *[OSPF/10] 01:21:33, metric 2<br />&gt; to 192.168.0.18 via em3.3<br />4.4.4.4/32 *[Direct/0] 01:31:18<br />&gt; via lo0.3<br />192.168.0.0/30 *[OSPF/10] 01:21:33, metric 2<br />&gt; to 192.168.0.18 via em3.3<br />192.168.0.4/30 *[OSPF/10] 01:21:33, metric 2<br />&gt; to 192.168.0.18 via em3.3<br />192.168.0.8/30 *[Direct/0] 01:31:18<br />&gt; via em3.2<br />192.168.0.10/32 *[Local/0] 01:31:18<br />Local via em3.2<br />192.168.0.12/30 *[Direct/0] 01:31:18<br />&gt; via em3.1<br />192.168.0.13/32 *[Local/0] 01:31:18<br />Local via em3.1<br />192.168.0.16/30 *[Direct/0] 01:21:33<br />&gt; via em3.3<br />192.168.0.17/32 *[Local/0] 01:21:33<br />Local via em3.3<br />224.0.0.5/32 *[OSPF/10] 01:31:22, metric 1<br />MultiRecv<br />-----<br /><br />logical-router: ROSPF<br />inet.0: 13 destinations, 13 routes (13 active, 0 holddown, 0 hidden)<br />+ = Active Route, - = Last Active, * = Both<br /><br />1.1.1.1/32 *[OSPF/10] 01:30:27, metric 1<br />&gt; to 192.168.0.1 via em1.0<br />2.2.2.2/32 *[Direct/0] 01:31:17<br />&gt; via lo0.1<br />3.3.3.3/32 *[OSPF/10] 01:30:27, metric 1<br />&gt; to 192.168.0.6 via em1.3<br />4.4.4.4/32 *[OSPF/10] 01:21:33, metric 1<br />&gt; to 192.168.0.17 via em1.2<br />192.168.0.0/30 *[Direct/0] 01:31:17<br />&gt; via em1.0<br />192.168.0.2/32 *[Local/0] 01:31:17<br />Local via em1.0<br />192.168.0.4/30 *[Direct/0] 01:31:17<br />&gt; via em1.3<br />192.168.0.5/32 *[Local/0] 01:31:17<br />Local via em1.3<br />192.168.0.8/30 *[OSPF/10] 01:21:33, metric 2<br />&gt; to 192.168.0.1 via em1.0<br />to 192.168.0.17 via em1.2<br />192.168.0.12/30 *[OSPF/10] 01:21:33, metric 2<br />to 192.168.0.17 via em1.2<br />&gt; to 192.168.0.6 via em1.3<br />192.168.0.16/30 *[Direct/0] 01:31:17<br />&gt; via em1.2<br />192.168.0.18/32 *[Local/0] 01:31:17<br />Local via em1.2<br />224.0.0.5/32 *[OSPF/10] 01:31:19, metric 1<br />MultiRecv<br />-----<br /><br />- Ping Test -<br />barly# run ping 1.1.1.1 logical-router R1<br />PING 1.1.1.1 (1.1.1.1): 56 data bytes<br />64 bytes from 1.1.1.1: icmp_seq=0 ttl=64 time=0.541 ms<br />64 bytes from 1.1.1.1: icmp_seq=1 ttl=64 time=0.144 ms<br />64 bytes from 1.1.1.1: icmp_seq=2 ttl=64 time=0.145 ms<br />64 bytes from 1.1.1.1: icmp_seq=3 ttl=64 time=0.144 ms<br />^C<br />--- 1.1.1.1 ping statistics ---<br />4 packets transmitted, 4 packets received, 0% packet loss<br />round-trip min/avg/max/stddev = 0.144/0.244/0.541/0.172 ms<br /><br />[edit]<br />barly# run ping 1.1.1.1 logical-router R2<br />PING 1.1.1.1 (1.1.1.1): 56 data bytes<br />64 bytes from 1.1.1.1: icmp_seq=0 ttl=63 time=1.647 ms<br />64 bytes from 1.1.1.1: icmp_seq=1 ttl=63 time=0.935 ms<br />64 bytes from 1.1.1.1: icmp_seq=2 ttl=63 time=0.519 ms<br />64 bytes from 1.1.1.1: icmp_seq=3 ttl=63 time=1.431 ms<br />^C<br />--- 1.1.1.1 ping statistics ---<br />4 packets transmitted, 4 packets received, 0% packet loss<br />round-trip min/avg/max/stddev = 0.519/1.133/1.647/0.439 ms<br /><br />[edit]<br />barly# run ping 1.1.1.1 logical-router R3<br />PING 1.1.1.1 (1.1.1.1): 56 data bytes<br />64 bytes from 1.1.1.1: icmp_seq=0 ttl=63 time=4.009 ms<br />64 bytes from 1.1.1.1: icmp_seq=1 ttl=63 time=1.032 ms<br />64 bytes from 1.1.1.1: icmp_seq=2 ttl=63 time=0.980 ms<br />64 bytes from 1.1.1.1: icmp_seq=3 ttl=63 time=1.287 ms<br />^C<br />--- 1.1.1.1 ping statistics ---<br />4 packets transmitted, 4 packets received, 0% packet loss<br />round-trip min/avg/max/stddev = 0.980/1.827/4.009/1.265 ms<br /><br />[edit]<br />barly# run ping 1.1.1.1 logical-router ROSPF<br />PING 1.1.1.1 (1.1.1.1): 56 data bytes<br />64 bytes from 1.1.1.1: icmp_seq=0 ttl=64 time=1.297 ms<br />64 bytes from 1.1.1.1: icmp_seq=1 ttl=64 time=0.509 ms<br />64 bytes from 1.1.1.1: icmp_seq=2 ttl=64 time=0.313 ms<br />64 bytes from 1.1.1.1: icmp_seq=3 ttl=64 time=0.504 ms<br />^C<br />--- 1.1.1.1 ping statistics ---<br />4 packets transmitted, 4 packets received, 0% packet loss<br />round-trip min/avg/max/stddev = 0.313/0.656/1.297/0.379 ms<br />

.

Running Configuration
Running Config OSPF Multiarea

.

Responses

  1. gw ikutin langkah2nya,pas sampe logical router 3 ada error

    Interface em3.1 is included in more than one logical routers R3 (current) and R2 (prev)

    • @ Raditya :
      Wah, kok kayaknya error yang saya baca disini “interface em3.1 terdapat pada lebih dari 1 logical router yaitu R3 dan R2”

      Kalau anda cek step by step konfigurasi yang saya tuliskan, interface em3.x hanya ada pada Router R3.
      Sementara pada R2, saya menggunakan interface yang berawalan em2.x

      Saya malah bingung, kok anda bisa error, sementara saya tidak ya?


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: