Posted by: Barly Wicaksono | 11 January, 2013

OSPF Not So Stubby Area (NSSA) di Juniper

Basic Knowlegde

An OSPF stub area has no external routes, so you cannot redistribute from another protocol into a stub area. An NSSA allows external routes to be flooded within the area. These routes are then leaked into other areas. However, external routes from other areas still do not enter the NSSA.
You cannot configure an area to be both a stub area and an NSSA.

Question :
If i want to set area 20 as a Not So Stubby Area, which router should i configure?. How can a route table from RIP Routing pass another OSPF area?

Answer :
You have to configure ABR Router and ASBR Router within the Area 20. Use NSSA command to leak External routing (RIP) to another OSPF area.

NSSA

NSSA

.

Konfigurasi Router

- Logical Router Jakarta -
set logical-routers Jakarta interfaces em0 unit 0 vlan-id 10
set logical-routers Jakarta interfaces em0 unit 0 family inet address 192.168.0.1/30
set logical-routers Jakarta interfaces lo0 unit 0 family inet address 1.1.1.1/32
set logical-routers Jakarta protocols ospf area 0.0.0.10 interface all

- Logical Router Bandung -
set logical-routers Bandung interfaces em1 unit 0 vlan-id 10
set logical-routers Bandung interfaces em1 unit 0 family inet address 192.168.0.2/30
set logical-routers Bandung interfaces em1 unit 1 vlan-id 20
set logical-routers Bandung interfaces em1 unit 1 family inet address 192.168.10.2/30
set logical-routers Bandung interfaces lo0 unit 1 family inet address 2.2.2.2/32
set logical-routers Bandung protocols ospf area 0.0.0.0 interface em1.1
set logical-routers Bandung protocols ospf area 0.0.0.0 interface lo0.1
set logical-routers Bandung protocols ospf area 0.0.0.10 interface em1.0

- Logical Router Semarang -
set logical-routers Semarang interfaces em2 unit 0 vlan-id 30
set logical-routers Semarang interfaces em2 unit 0 family inet address 192.168.20.2/30
set logical-routers Semarang interfaces em2 unit 1 vlan-id 20
set logical-routers Semarang interfaces em2 unit 1 family inet address 192.168.10.1/30
set logical-routers Semarang interfaces lo0 unit 2 family inet address 3.3.3.3/32
set logical-routers Semarang protocols ospf area 0.0.0.0 interface em2.1
set logical-routers Semarang protocols ospf area 0.0.0.0 interface lo0.2
set logical-routers Semarang protocols ospf area 0.0.0.20 interface em2.0

- Logical Router Surabaya -
set logical-routers Surabaya interfaces em3 unit 0 vlan-id 30
set logical-routers Surabaya interfaces em3 unit 0 family inet address 192.168.20.1/30
set logical-routers Surabaya interfaces em3 unit 1 vlan-id 40
set logical-routers Surabaya interfaces em3 unit 1 family inet address 192.168.30.2/30
set logical-routers Surabaya interfaces lo0 unit 3 family inet address 4.4.4.4/32
set logical-routers Surabaya protocols ospf area 0.0.0.20 interface em3.0
set logical-routers Surabaya protocols ospf area 0.0.0.20 interface lo0.3
set logical-routers Surabaya protocols rip group RIP neighbor em3.1

- Logical Router Bali -
set logical-routers Bali interfaces em4 unit 0 vlan-id 40
set logical-routers Bali interfaces em4 unit 0 family inet address 192.168.30.1/30
set logical-routers Bali interfaces lo0 unit 4 family inet address 5.5.5.5/32
set logical-routers Bali protocols rip group RIP neighbor em4.0
set logical-routers Bali protocols rip group RIP neighbor lo0.4
---------------------------------------------------------------------------------------

Dengan konfigurasi diatas, maka kita sudah membuat topologi dasar seperti tutorial OSPF Stub Area di Juniper dengan penambahan sebuah router yaitu “Bali”. Permasalahan dimulai ketika area Bali dideskripsikan memiliki routing RIP. Semenjak OSPF dan RIP merupakan routing dari jenis berbeda, maka kita membutuhkan “Routing Policy” untuk membuat mereka berbagi routing table. Maka seperti berikut ini konfigurasinya :

Konfigurasi Policy Routing

- Logical Router Surabaya -
set logical-routers Surabaya policy-options policy-statement Bocorkan_Routing term RIP->OSPF from protocol rip
set logical-routers Surabaya policy-options policy-statement Bocorkan_Routing term RIP->OSPF then accept
set logical-routers Surabaya policy-options policy-statement Bocorkan_Routing term OSPF->RIP from protocol ospf
set logical-routers Surabaya policy-options policy-statement Bocorkan_Routing term OSPF->RIP then accept
set logical-routers Surabaya policy-options policy-statement Bocorkan_Routing term Loopback from protocol direct
set logical-routers Surabaya policy-options policy-statement Bocorkan_Routing term Loopback then accept

- Logical Router Bali -
set logical-routers Bali policy-options policy-statement Bocorkan_Routing term RIP->OSPF from protocol rip
set logical-routers Bali policy-options policy-statement Bocorkan_Routing term RIP->OSPF then accept
set logical-routers Bali policy-options policy-statement Bocorkan_Routing term OSPF->RIP from protocol ospf
set logical-routers Bali policy-options policy-statement Bocorkan_Routing term OSPF->RIP then accept
set logical-routers Bali policy-options policy-statement Bocorkan_Routing term Loopback from route-filter 5.5.5.5/32 exact
set logical-routers Bali policy-options policy-statement Bocorkan_Routing term Loopback then accept

Konfigurasi yang diberikan highlight diatas digunakan untuk mengekspor ip loopback router “Bali” agar terbaca di router “Surabaya” yang kemudian dishare ke area lain. Setelah itu kita konfigurasi OSPF NSSA seperti dibawah ini :

.

Konfigurasi Not So Stubby Area

- Logical Router Semarang -
set logical-routers Semarang protocols ospf area 0.0.0.20 nssa

- Logical Router Surabaya -
set logical-routers Surabaya protocols ospf area 0.0.0.20 nssa
---------------------------------------------------------------------------------------

.

Verifikasi

– Before NSSA –

[edit]
barly# run show ospf database logical-router Semarang

    OSPF link state database, Area 0.0.0.0
 Type       ID               Adv Rtr           Seq      Age  Opt  Cksum  Len
Router   2.2.2.2          2.2.2.2          0x80000017    23  0x22 0xfb0e  48
Router  *3.3.3.3          3.3.3.3          0x80000016    22  0x22 0xf50a  48
Network *192.168.10.1     3.3.3.3          0x80000006   670  0x22 0xc9d9  32
Summary  1.1.1.1          2.2.2.2          0x80000011    23  0x22 0x917   28
Summary  192.168.0.0      2.2.2.2          0x80000012    23  0x22 0x714b  28
Summary *192.168.20.0     3.3.3.3          0x80000001    22  0x22 0x981d  28

    OSPF link state database, Area 0.0.0.20
 Type       ID               Adv Rtr           Seq      Age  Opt  Cksum  Len
Router  *3.3.3.3          3.3.3.3          0x80000001    22  0x22 0x2e70  36
Summary *1.1.1.1          3.3.3.3          0x80000001    22  0x22 0x1516  28
Summary *2.2.2.2          3.3.3.3          0x80000001    22  0x22 0xdc4b  28
Summary *3.3.3.3          3.3.3.3          0x80000001    22  0x22 0xa480  28
Summary *192.168.0.0      3.3.3.3          0x80000001    22  0x22 0x7f49  28
Summary *192.168.10.0     3.3.3.3          0x80000001    22  0x22 0x7b8   28
    OSPF AS SCOPE link state database
 Type       ID               Adv Rtr           Seq      Age  Opt  Cksum  Len
Extern   5.5.5.5          4.4.4.4          0x80000002   340  0x22 0xb3d7  36
Extern   192.168.30.0     4.4.4.4          0x80000004   640  0x22 0x73a7  36

.

– After NSSA –

- Logical Router Semarang -
[edit]
barly# run show ospf database logical-router Semarang

    OSPF link state database, Area 0.0.0.0
 Type       ID               Adv Rtr           Seq      Age  Opt  Cksum  Len
Router   2.2.2.2          2.2.2.2          0x8000001a    58  0x22 0xf511  48
Router  *3.3.3.3          3.3.3.3          0x80000019    57  0x22 0xf505  48
Network *192.168.10.1     3.3.3.3          0x80000008   164  0x22 0xc5db  32
Summary  1.1.1.1          2.2.2.2          0x80000014    58  0x22 0x31a   28
Summary *4.4.4.4          3.3.3.3          0x80000001    17  0x22 0x809f  28
Summary  192.168.0.0      2.2.2.2          0x80000016    58  0x22 0x694f  28
Summary *192.168.20.0     3.3.3.3          0x80000005    17  0x22 0x9021  28
ASBRSum *4.4.4.4          3.3.3.3          0x80000001    17  0x22 0x72ac  28

    OSPF link state database, Area 0.0.0.20
 Type       ID               Adv Rtr           Seq      Age  Opt  Cksum  Len
Router  *3.3.3.3          3.3.3.3          0x80000003    17  0x20 0xc455  36
Router   4.4.4.4          4.4.4.4          0x80000003    18  0x20 0x20d3  48
Network  192.168.20.1     4.4.4.4          0x80000002    18  0x20 0xb7db  32
Summary *1.1.1.1          3.3.3.3          0x80000001    57  0x20 0x33f9  28
Summary *2.2.2.2          3.3.3.3          0x80000001    57  0x20 0xfa2f  28
Summary *3.3.3.3          3.3.3.3          0x80000001    57  0x20 0xc264  28
Summary *192.168.0.0      3.3.3.3          0x80000001    57  0x20 0x9d2d  28
Summary *192.168.10.0     3.3.3.3          0x80000001    57  0x20 0x259c  28
NSSA     5.5.5.5          4.4.4.4          0x80000001    58  0x28 0x86c   36
NSSA     192.168.30.0     4.4.4.4          0x80000001    58  0x28 0xcb3a  36
    OSPF AS SCOPE link state database
 Type       ID               Adv Rtr           Seq      Age  Opt  Cksum  Len
Extern   5.5.5.5          4.4.4.4          0x80000002   165  0x22 0xb3d7  36
Extern   192.168.30.0     4.4.4.4          0x80000002   165  0x22 0x77a5  36
---------------------------------------------------------------------------------------

Pada konfigurasi diatas yang dihighlight, terdapat penambahan pada OSPF area 20. Itu artinya proses leaking RIP kedalam OSPF berjalan dengan baik, karena Loopback Router Bali sudah sampai ke OSPF Area 20. Untuk bukti lebih valid, maka kita tes ping ke Router Jakarta (1.1.1.1) dari Router Bali (5.5.5.5) yang kemudian dilakukan traceroute path dari source dan destination yang sama.

.

– Ping & Traceroute –

- Ping Test -
[edit]
barly# run ping 1.1.1.1 logical-router Bali
PING 1.1.1.1 (1.1.1.1): 56 data bytes
64 bytes from 1.1.1.1: icmp_seq=0 ttl=61 time=1.748 ms
64 bytes from 1.1.1.1: icmp_seq=1 ttl=61 time=1.728 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=61 time=1.563 ms
64 bytes from 1.1.1.1: icmp_seq=3 ttl=61 time=1.546 ms
^C
--- 1.1.1.1 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 1.546/1.646/1.748/0.092 ms

- Traceroute -
[edit]
barly# run traceroute 1.1.1.1 logical-router Bali
traceroute to 1.1.1.1 (1.1.1.1), 30 hops max, 40 byte packets
 1  192.168.30.2 (192.168.30.2)  2.812 ms  4.712 ms  0.933 ms
 2  192.168.20.2 (192.168.20.2)  1.312 ms  1.084 ms  4.634 ms
 3  192.168.10.2 (192.168.10.2)  1.628 ms  3.889 ms  2.629 ms
 4  1.1.1.1 (1.1.1.1)  2.120 ms  2.098 ms  2.007 ms
---------------------------------------------------------------------------------------

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: