Configure OSPF Multiple Area with Stub Network and Redistibute to EIGRP

Pada lab kita kali ini, kita akan membangun OSPF Multiple Area dan melakukan Redistribute Antara Routing Protokol yaitu OSPF dan EIGRP. Disini kita juga membuat skenario pada network OSPF yaitu, bagaimana agar network pada suatu area, tidak mem broadcast network nya ke area yang lain. tapi tetap dapat mengakses area 0 atau network backbone.

langkah pertama kita membangun Jaringan OSPF
1. Pada Area 0 melibatkan Router = R-1, R2, R-3
2. Pada Area 1 melibatkan Router = R-1 dan R-6
3. Masing-masing Router memiliki Router Id sesuai dengan Nama nya misalnya R-1 maka Router-idnya adalah : 1.1.1.1

Topology Lengkapnya disini

Kalo Full Configuration Script nya disini
Basic Konfigurasi Network OSPF pada Masing – Masing Router adalah :

Pada Router 1
R-1#

!
router ospf 1
router-id 1.1.1.1
log-adjacency-changes
area 1 stub no-summary
network 40.0.0.0 0.0.0.255 area 1
network 50.0.0.0 0.0.0.255 area 0
network 60.0.0.0 0.0.0.255 area 0
!
R-1#
Pada Router 2
R-2#
!
router ospf 1
router-id 2.2.2.2
network 50.0.0.0 0.0.0.255 area 0
!
R-2#

Pada Router 3
R-3#
!
router ospf 1
router-id 3.3.3.3
network 60.0.0.0 0.0.0.255 area 0
!
R-3#

sekarang kita akan melihat sample routing table, Sebelum Stub Area dijalankan.

Pada Router 1
configurasi OSPF sebelum Stub Area 1 dijalankan

router ospf 1
router-id 1.1.1.1
network 40.0.0.0 0.0.0.255 area 1
network 50.0.0.0 0.0.0.255 area 0
network 60.0.0.0 0.0.0.255 area 0

R-1 Mendapat Update Route dari R-6 di Area 1, Perhatikan kita mendapatkan Update mengenai Network 10, 20 dan network 30. Selanjutnya kita ingin agar network di Area 1 tidak Broadcast ke Area 0 dan tidak di Redistribute ke jaringan EIGRP 10. Cara yang paling sederhana dengan mengaktifkan Area 1 Stub. Dengan Demikian Stub tidak akan memberikan update routing ke External Area nya. tapi agar Area 1 di R-6 tetap bisa mengakses Network Backbone maka kita buatkan Default Route

Ini adalah Routing Table sebelum stub area dijalankan

R-1#show ip route
Codes: C – connected, S – static, 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
i – IS-IS, su – IS-IS summary, 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 not set

50.0.0.0/24 is subnetted, 1 subnets
C 50.0.0.0 is directly connected, Serial1/0
20.0.0.0/24 is subnetted, 1 subnets
O 20.0.0.0 [110/2] via 40.0.0.2, 00:00:13, FastEthernet2/0
40.0.0.0/24 is subnetted, 1 subnets
C 40.0.0.0 is directly connected, FastEthernet2/0
10.0.0.0/24 is subnetted, 1 subnets
O 10.0.0.0 [110/2] via 40.0.0.2, 00:00:13, FastEthernet2/0
60.0.0.0/24 is subnetted, 1 subnets
C 60.0.0.0 is directly connected, Serial1/1
30.0.0.0/24 is subnetted, 1 subnets
O 30.0.0.0 [110/2] via 40.0.0.2, 00:00:13, FastEthernet2/0
R-1#

R-1#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface
3.3.3.3 0 FULL/ – 00:00:37 60.0.0.2 Serial1/1
2.2.2.2 0 FULL/ – 00:00:39 50.0.0.2 Serial1/0
6.6.6.6 1 FULL/DR 00:00:37 40.0.0.2 FastEthernet2/0 << R-6
R-1#

dari informasi update route diatas kita juga mendapatkan update dari network EIGRP Kita juga mendapatkan Full Routing Update di R-6 yang berada pada Area 1

R-6#show ip route
Codes: C – connected, S – static, 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
i – IS-IS, su – IS-IS summary, 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 not set

50.0.0.0/24 is subnetted, 1 subnets
O IA 50.0.0.0 [110/65] via 40.0.0.1, 00:02:05, FastEthernet1/0
20.0.0.0/24 is subnetted, 1 subnets
C 20.0.0.0 is directly connected, FastEthernet0/0.2
40.0.0.0/24 is subnetted, 1 subnets
C 40.0.0.0 is directly connected, FastEthernet1/0
10.0.0.0/24 is subnetted, 1 subnets
C 10.0.0.0 is directly connected, FastEthernet0/0.1
60.0.0.0/24 is subnetted, 1 subnets
O IA 60.0.0.0 [110/65] via 40.0.0.1, 00:02:05, FastEthernet1/0
30.0.0.0/24 is subnetted, 1 subnets
C 30.0.0.0 is directly connected, FastEthernet0/0.3
R-6#

R-6#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface
1.1.1.1 1 FULL/BDR 00:00:35 40.0.0.1 FastEthernet1/0
R-6#

Stub Area, Adalah sebuah area yang tidak menerima Update dari external Route kecuali Default routenya, tapi bisa menerima update route dari area yang sama misalnya hanya berada pada area 1. Stub area ini berfungsi ketika Customer terhubung melalui ASBR (autonomous system border routers) ke Area 0, dan ingin mendapatkan Best Route dari Area 0, Tapi Backbone Area (Area 0) tidak mendapatkan routing update tentang Customer Area atau Area 1.

Pada Router 6 diatas kita mendapatkan Full Routing Update tentang semua network yang terhubung, dan Core backbone juga mendapatkan Route Update tentang semua network di R-1 pada Area 1

Nah sekarang kita akan mengaktifkan Stub Area di ASBR (R-1)

R-1#
!
router ospf 1
router-id 1.1.1.1
log-adjacency-changes
area 1 stub no-summary
network 40.0.0.0 0.0.0.255 area 1
network 50.0.0.0 0.0.0.255 area 0
network 60.0.0.0 0.0.0.255 area 0
!
R-1#

dan kita lihat Routing table pada R-1

R-1#show ip route
Codes: C – connected, S – static, 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
i – IS-IS, su – IS-IS summary, 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 not set

50.0.0.0/24 is subnetted, 1 subnets
C 50.0.0.0 is directly connected, Serial1/0
40.0.0.0/24 is subnetted, 1 subnets
C 40.0.0.0 is directly connected, FastEthernet2/0
60.0.0.0/24 is subnetted, 1 subnets
C 60.0.0.0 is directly connected, Serial1/1
R-1#
R-1#

R-1#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface
3.3.3.3 0 FULL/ – 00:00:31 60.0.0.2 Serial1/1
2.2.2.2 0 FULL/ – 00:00:35 50.0.0.2 Serial1/0
R-1#

disini kita lihat bahwa Network Area 1 sudah tidak ada, dan OSPF neighborship ke R-6 tidak muncul juga perhatikan R-6, juga tidak mendapatkan routing update kecuali pada area yang sama yaitu area 1

R-6#show ip route
Codes: C – connected, S – static, 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
i – IS-IS, su – IS-IS summary, 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 40.0.0.1 to network 0.0.0.0

20.0.0.0/24 is subnetted, 1 subnets
C 20.0.0.0 is directly connected, FastEthernet0/0.2
40.0.0.0/24 is subnetted, 1 subnets
C 40.0.0.0 is directly connected, FastEthernet1/0
10.0.0.0/24 is subnetted, 1 subnets
C 10.0.0.0 is directly connected, FastEthernet0/0.1
30.0.0.0/24 is subnetted, 1 subnets
C 30.0.0.0 is directly connected, FastEthernet0/0.3
S* 0.0.0.0/0 [1/0] via 40.0.0.1
R-6#

tapi kita tetap bisa terhubung ke network 60, di Area 0 berkat default route
R-6#ping 60.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 60.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/52/152 ms
R-6#

Redistibute OSPF dan EIGRP

OK, kita sudah membangun jaringan OSPF, sekarang kita akan mengaktifkan Routing EIGRP AS 10 yang akan melibatkan R-2, R-3, R-4 dan R-5.

Pada Router 2
R-2#
!
router eigrp 10
network 70.0.0.0
auto-summary
!
R-2#
R-2#

Pada Router 3
R-3#
!
router eigrp 10
network 80.0.0.0
no auto-summary
!
R-3#

Pada Router 4
R-4#
R-4#
!
router eigrp 10
network 70.0.0.0
network 200.1.1.0
auto-summary
!
R-4#
R-4#

Pada Router 5
R-5#
R-5#
!
router eigrp 10
network 80.0.0.0
network 200.1.1.0
auto-summary
!
R-5#
R-5#

Ok, sekarang Routing EIGRP 10 sudah terbentuk, nah bagaimana agar dua routing protokol OSPF dan EIGRP yang memiliki cara perhitungan best route yang berbeda ini, dapat saling bertukar informasi routing. Maka disinilah kita melakukan redistribute antar Routing Protokol, yang akan melibatkan R-2 dan R-3 karena kedua router inilah yang berada di tengah antara OSPF dan EIGRP

Konfigurasi Redistribute nya jadi begini,

Pada Router 2
R-2

!
router eigrp 10
redistribute ospf 1 metric 1500 0 255 1 1500
network 70.0.0.0
auto-summary
!
router ospf 1
router-id 2.2.2.2
log-adjacency-changes
redistribute eigrp 10 subnets metric 100 metric-type 1
network 50.0.0.0 0.0.0.255 area 0
!

Pada Router 3
R-3
!
router eigrp 10
redistribute ospf 1 metric 1500 0 255 1 1500
network 80.0.0.0
no auto-summary
!
router ospf 1
router-id 3.3.3.3
log-adjacency-changes
redistribute eigrp 10 subnets metric 100 metric-type 1
network 60.0.0.0 0.0.0.255 area 0
!

kurang lebih penjelaskan nya begini ;

router eigrp 10
redistribute ospf 1 metric 1500 0 255 1 1500
network 70.0.0.0
auto-summary

Saya ingin me Redistibusikan network OSPF ke network EIGRP 10 dengan proses ID 1, dan saya memberikan nilai bandwith matric 1500 dengan delay 0, reability matric 100 % atau 255 dan effective bandwidth 1 dan saya memberikan nilai MTU 1500

router ospf 1
router-id 3.3.3.3
log-adjacency-changes
redistribute eigrp 10 subnets metric 100 metric-type 1
network 60.0.0.0 0.0.0.255 area 0

Pada Router ospf 1, saya ingin meredistibusikan network eigrp dengan AS 10 dengan subnetnya dan memberikan nilai metrik untuk routing eigrp tersebut 100 , dan memberikan jenis metric-type 1
atau exernal metric.

hahaha.. kurang lebih begitu..

kita akan melihat show route dari R-4 dan R-1 setelah dilakukan redistribute , perhatikan bahwa Pada R-1 kita mendapatkan Update tentang Network 200.1.1.0 atau network EIGRP 10, juga pada R-4 kita mendapatkan update routing external dari OSPF.

R-1#show ip route
Codes: C – connected, S – static, 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
i – IS-IS, su – IS-IS summary, 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 not set

50.0.0.0/24 is subnetted, 1 subnets
C 50.0.0.0 is directly connected, Serial1/0
70.0.0.0/24 is subnetted, 1 subnets
O E2 70.0.0.0 [110/100] via 50.0.0.2, 00:45:12, Serial1/0
O E2 200.1.1.0/24 [110/100] via 50.0.0.2, 00:06:21, Serial1/0
40.0.0.0/24 is subnetted, 1 subnets
C 40.0.0.0 is directly connected, FastEthernet2/0
60.0.0.0/24 is subnetted, 1 subnets
C 60.0.0.0 is directly connected, Serial1/1
R-1#

R-4#show ip route
Codes: C – connected, S – static, 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
i – IS-IS, su – IS-IS summary, 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 not set

50.0.0.0/24 is subnetted, 1 subnets
D EX 50.0.0.0 [170/2218496] via 70.0.0.1, 00:06:37, Serial1/0
70.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 70.0.0.0/24 is directly connected, Serial1/0
D 70.0.0.0/8 is a summary, 01:28:46, Null0
C 200.1.1.0/24 is directly connected, FastEthernet2/0
40.0.0.0/24 is subnetted, 1 subnets
D EX 40.0.0.0 [170/2218496] via 70.0.0.1, 00:06:37, Serial1/0
60.0.0.0/24 is subnetted, 1 subnets
D EX 60.0.0.0 [170/2218496] via 70.0.0.1, 00:06:37, Serial1/0
R-4#

Pada R-1 kita mendapatkan Update tentang Network 200.1.1.0

kita coba traceroute dari R-6 ke network 200.1.1.0
R-6>traceroute 200.1.1.1

Type escape sequence to abort.
Tracing the route to 200.1.1.1

1 40.0.0.1 48 msec 64 msec 20 msec
2 50.0.0.2 68 msec 56 msec 28 msec
3 70.0.0.2 108 msec 36 msec *
R-6>

Nah dsini kita sudah men setup basic network OSPF single Area, Multiple Area dan Stub Area. Kita juga telah membangun Network EIGRP lalu me Redistibusikan ke network OSPF.

Thanks

Fery Junaedi.

~ by feryjunaedi on April 2, 2009.

Leave a comment