Home > BOOTCAMP, OSPF > HARI 3 Sesi 1 : OSPF

HARI 3 Sesi 1 : OSPF

*************************

Lab 1. OSPF Virtual Link
Lab 2. OSPF GRE Tunnel
Lab 3. OSPF Standar Area
Lab 4. OSPF Stub Area
Lab 5. OSPF Totally Stub Area
Lab 6. OSPF Not So Stubby Area
Lab 7. OSPF Network Non Broadcast
Lab 8. OSPF Network Broadcast
Lab 9. OSPF Network Point-to-Point
Lab 10. OSPF Network Point-to-Multipoint
Lab 11. OSPF Network Point-to-Multipoint Non Broadcast
Lab 12. OSPF Filtering – Distribute List
Lab 13. OSPF Filtering – AD
Lab 14. OSPF Sumarization – Area Range
Lab 15. OSPF Sumarization–Summary Address
Lab 16. OSPF Mindah Jalur
Lab 17. OSPF Authentication
Lab 18. OSPF Redistribution –Default Route
Lab 19. OSPF Redistribution – Static
Lab 20. OSPF Redistribution – Connected
Lab 21. OSPF Redistribution – RIP
Lab 22. OSPF Redistribution – EIGRP

*************************

LAB 1 OSPF Virtual Link

Skenario : Menjalankan OSPF pada kondisi dimana ada area yang tidak terhubung dengan Area 0 , dalam hal ini dengan menggunakan Virtual Link.

Note : pada OSPF agar bisa  ikut dalam berpartisipasi dalam network OSPF syaratanya adalah setiap AREA harus terhubung ke Area 0.

Jika tidak terhubung Area 0 , maka bisa memakai Virtual Link dan GRE TUNNEL untuk bias terhubung ke AREA 0

Pada metode Virtual Link, tidak dibutuhkan alokasi IP tambahan.

R1

interface Loopback0

ip address 1.1.1.1 255.255.255.255

interface FastEthernet0/0

ip address 12.12.12.1 255.255.255.0

router ospf 1

router-id 1.1.1.1

log-adjacency-changes

network 1.1.1.1 0.0.0.0 area 0

network 12.12.12.1 0.0.0.0 area 1

R2

 

interface Loopback0

ip address 2.2.2.2 255.255.255.255

 

interface FastEthernet0/0

ip address 12.12.12.2 255.255.255.0

interface Serial0/0
ip address 23.23.23.2 255.255.255.0

router ospf 2

router-id 2.2.2.2

log-adjacency-changes

network 2.2.2.2 0.0.0.0 area 1

network 12.12.12.2 0.0.0.0 area 1

network 23.23.23.2 0.0.0.0 area 2

R3

interfacee Serial0/0

ip address 23.23.23.3 255.255.255.0

router-id 3.3.3.3

log-adjacency-changes

network 3.3.3.3 0.0.0.0 area 3

network 23.23.23.3 0.0.0.0 area 2

R1

Sh ip route

1.0.0.0/32 is subnetted, 1 subnets

C       1.1.1.1 is directly connected, Loopback0

2.0.0.0/32 is subnetted, 1 subnets

O       2.2.2.2 [110/11] via 12.12.12.2, 00:28:49, FastEthernet0/0

3.0.0.0/32 is subnetted, 1 subnets

12.0.0.0/24 is subnetted, 1 subnets

C       12.12.12.0 is directly connected, FastEthernet0/0

R2

….

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

1.0.0.0/32 is subnetted, 1 subnets

O IA    1.1.1.1 [110/11] via 12.12.12.1, 00:00:11, FastEthernet0/0

2.0.0.0/32 is subnetted, 1 subnets

C       2.2.2.2 is directly connected, Loopback0

23.0.0.0/24 is subnetted, 1 subnets

C       23.23.23.0 is directly connected, Serial0/0

12.0.0.0/24 is subnetted, 1 subnets

C       12.12.12.0 is directly connected, FastEthernet0/

R3

Sh ip route

3.0.0.0/32 is subnetted, 1 subnets

C       3.3.3.3 is directly connected, Loopback0

23.0.0.0/24 is subnetted, 1 subnets

C       23.23.23.0 is directly connected, Serial0/0

Solusi :

R1

Router ospf 1

area 1 virtual-link 2.2.2.2

R2

R2(config-router)#area 1 virtual-link 1.1.1.1

R2(config-router)#area 2 virtual-link 3.3.3.3

 

R3

Router ospf 3

area 2 virtual-link 2.2.2.2

Verifikasi :

terlihat 2.2.2.2 sudah bisa dikenali dari R1

R3#sh ip route

1.0.0.0/32 is subnetted, 1 subnets

O       1.1.1.1 [110/75] via 23.23.23.2, 00:09:35, Serial0/0

2.0.0.0/32 is subnetted, 1 subnets

O IA    2.2.2.2 [110/65] via 23.23.23.2, 00:09:35, Serial0/0

3.0.0.0/32 is subnetted, 1 subnets

C       3.3.3.3 is directly connected, Loopback0

23.0.0.0/24 is subnetted, 1 subnets

C       23.23.23.0 is directly connected, Serial0/0

12.0.0.0/24 is subnetted, 1 subnets

O IA    12.12.12.0 [110/74] via 23.23.23.2, 00:09:35, Serial0/0

R3#ping 1.1.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 8/54/204 ms

******************************************

LAB 2 OSPF – GRE TUNNEL

Skenario :  menghubungkan area 3 yang tidak punya konskesi ke area backbone dengan menggunakan GRE Tunnel.

Note : tidak seperti virtual link, untk konfigurasi ini, dibutuhkan alokasi IP Tambahan.

R1

 interface Tunnel1

 ip address 102.102.102.1 255.255.255.0

 tunnel source 12.12.12.1

 tunnel destination 12.12.12.2

end

 

R1#

R1#sh run | s ospf

router ospf 1

 router-id 1.1.1.1

 log-adjacency-changes

 network 1.1.1.1 0.0.0.0 area 0

 network 12.12.12.1 0.0.0.0 area 1

 network 102.102.102.1 0.0.0.0 area 0

R2

interface Tunnel1

 ip address 102.102.102.2 255.255.255.0

 tunnel source 12.12.12.2

 tunnel destination 12.12.12.1

 

R2#sh run int tu 2

ip address 203.203.203.2 255.255.255.0

 tunnel source 23.23.23.2

 tunnel destination 23.23.23.3

router ospf 2

 router-id 2.2.2.2

 log-adjacency-changes

 network 2.2.2.2 0.0.0.0 area 1

 network 12.12.12.2 0.0.0.0 area 1

 network 23.23.23.2 0.0.0.0 area 2

 network 102.102.102.2 0.0.0.0 area 0

 network 203.203.203.2 0.0.0.0 area 0

 

R3

interface Tunnel1

 ip address 203.203.203.3 255.255.255.0

 tunnel source 23.23.23.3

 tunnel destination 23.23.23.2

router ospf 3

 router-id 3.3.3.3

 log-adjacency-changes

 network 3.3.3.3 0.0.0.0 area 3

 network 23.23.23.3 0.0.0.0 area 2

 network 203.203.203.3 0.0.0.0 area 0

 

 

interface Tunnel1

 ip address 203.203.203.3 255.255.255.0

 tunnel source 23.23.23.3

 tunnel destination 23.23.23.2

end

 

R3#sh run | s ospf

router ospf 3

 router-id 3.3.3.3

 log-adjacency-changes

 network 3.3.3.3 0.0.0.0 area 3

 network 23.23.23.3 0.0.0.0 area 2

 network 203.203.203.3 0.0.0.0 area 0

 

Verifikasi:

sama seperti percobaan sebelumnya, dari sini terlihat R3 sudah bisa mengenali loopback R1

R3

R3#sh ip route

Gateway of last resort is not set

102.0.0.0/24 is subnetted, 1 subnets

O       102.102.102.0 [110/22222] via 203.203.203.2, 00:06:34, Tunnel1

C    203.203.203.0/24 is directly connected, Tunnel1

1.0.0.0/32 is subnetted, 1 subnets

O       1.1.1.1 [110/22223] via 203.203.203.2, 00:06:34, Tunnel1

2.0.0.0/32 is subnetted, 1 subnets

O IA    2.2.2.2 [110/11112] via 203.203.203.2, 00:06:34, Tunnel1

3.0.0.0/32 is subnetted, 1 subnets

C       3.3.3.3 is directly connected, Loopback0

23.0.0.0/24 is subnetted, 1 subnets

C       23.23.23.0 is directly connected, Serial0/0

12.0.0.0/24 is subnetted, 1 subnets

O IA    12.12.12.0 [110/11121] via 203.203.203.2, 00:06:34, Tunnel1

R3#ping 1.1.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:

!!!!!

R2

102.0.0.0/24 is subnetted, 1 subnets

C       102.102.102.0 is directly connected, Tunnel1

C    203.203.203.0/24 is directly connected, Tunnel2

1.0.0.0/32 is subnetted, 1 subnets

O       1.1.1.1 [110/11112] via 102.102.102.1, 00:06:25, Tunnel1

2.0.0.0/32 is subnetted, 1 subnets

C       2.2.2.2 is directly connected, Loopback0

3.0.0.0/32 is subnetted, 1 subnets

O IA    3.3.3.3 [110/11112] via 203.203.203.3, 00:06:25, Tunnel2

23.0.0.0/24 is subnetted, 1 subnets

C       23.23.23.0 is directly connected, Serial0/0

12.0.0.0/24 is subnetted, 1 subnets

C       12.12.12.0 is directly connected, FastEthernet0/0

**********************************

LAB 3 OSPF STANDAR AREA

Skenario :  Lab OSPF, untuk mengetahui tipe routing tabel ketika 1 area, berbeda area ataupun hasil redistribusi dari routing lain .

Note :  IA :inter Area , E2 :  eksternal route ( EIGRP yg diredistribute ke OSPF dalam lab ini)

R1

interface Loopback0

 ip address 1.1.1.1 255.255.255.255

 

interface Loopback1

 ip address 100.100.100.1 255.255.255.255

interface Loopback2

 ip address 100.100.100.2 255.255.255.255

interface Loopback3

 ip address 100.100.100.3 255.255.255.255

interface Loopback4

 ip address 100.100.100.4 255.255.255.255

interface Loopback5

 ip address 100.100.100.5 255.255.255.255

interface Loopback6

 ip address 100.100.100.6 255.255.255.255

interface Loopback7

 ip address 100.100.100.7 255.255.255.255

interface Serial0/0

 ip address 12.12.12.1 255.255.255.0

router eigrp 1

 network 100.100.100.4 0.0.0.0

 network 100.100.100.5 0.0.0.0

 network 100.100.100.6 0.0.0.0

 network 100.100.100.7 0.0.0.0

 auto-summary

router ospf 1

 router-id 1.1.1.1

 log-adjacency-changes

 redistribute eigrp 1 subnets

 network 1.1.1.1 0.0.0.0 area 0

 network 12.12.12.1 0.0.0.0 area 0

 network 100.100.100.1 0.0.0.0 area 100

 network 100.100.100.2 0.0.0.0 area 100

 network 100.100.100.3 0.0.0.0 area 100

Perhatikan command subnets,harus di define kalau mau me edistribute routing lain ke dalam OSPF

R2

interface Serial0/0

 ip address 12.12.12.2 255.255.255.0

 clock rate 2000000

end

 

R2#sh run int f0/0


interface FastEthernet0/0

 ip address 23.23.23.2 255.255.255.0

 

R2#sh run | s ospf

router ospf 2

 router-id 2.2.2.2

 log-adjacency-changes

 network 2.2.2.2 0.0.0.0 area 1

 network 12.12.12.2 0.0.0.0 area 0

 network 23.23.23.2 0.0.0.0 area 1

 

R3

interface FastEthernet0/0

 ip address 23.23.23.3 255.255.255.0


R3#sh run | s ospf

router ospf 3

 router-id 3.3.3.3

 log-adjacency-changes

 network 3.3.3.3 0.0.0.0 area 1

 network 23.23.23.3 0.0.0.0 area 1

 

 VERIFIKASI :

 

terlihat E2 hasil redistribute dari EIGRP

R3#sh ip route

 

Gateway of last resort is not set

 

     1.0.0.0/32 is subnetted, 1 subnets

O IA    1.1.1.1 [110/75] via 23.23.23.2, 00:09:49, FastEthernet0/0

     2.0.0.0/32 is subnetted, 1 subnets

O       2.2.2.2 [110/11] via 23.23.23.2, 00:09:49, FastEthernet0/0

     100.0.0.0/32 is subnetted, 7 subnets

O E2    100.100.100.4 [110/20] via 23.23.23.2, 00:09:49, FastEthernet0/0

O E2    100.100.100.5 [110/20] via 23.23.23.2, 00:09:49, FastEthernet0/0

O E2    100.100.100.6 [110/20] via 23.23.23.2, 00:09:49, FastEthernet0/0

O E2    100.100.100.7 [110/20] via 23.23.23.2, 00:09:49, FastEthernet0/0

O IA    100.100.100.1 [110/75] via 23.23.23.2, 00:09:49, FastEthernet0/0

O IA    100.100.100.2 [110/75] via 23.23.23.2, 00:09:49, FastEthernet0/0

O IA    100.100.100.3 [110/75] via 23.23.23.2, 00:09:49, FastEthernet0/0

     3.0.0.0/32 is subnetted, 1 subnets

C       3.3.3.3 is directly connected, Loopback0

     23.0.0.0/24 is subnetted, 1 subnets

C       23.23.23.0 is directly connected, FastEthernet0/0

     12.0.0.0/24 is subnetted, 1 subnets

O IA    12.12.12.0 [110/74] via 23.23.23.2, 00:09:51, FastEthernet0/0

R3#ping 100.100.100.4

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 100.100.100.4, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 4/60/132 ms

R3#ping 100.100.100.1

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 100.100.100.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 8/59/160 ms

 

*************************************************

LAB 4 OSPF STUB Area

Skenario : Lab setting area Stub/ area ujung yang tidak memasukan semua external route (E2) / LSA type 4 dan5 ke dalam tabel routing. Diikutkan pada default route.

Note : area stub di config di router yang memilik area tersebut ( R2 dan R3) please matengin lagi ya ttg LSA dan STUB ini ripai :p

Tabel Routing R3 Sebelum di stub :

     1.0.0.0/32 is subnetted, 1 subnets

O IA    1.1.1.1 [110/75] via 23.23.23.2, 00:24:07, FastEthernet0/0

     2.0.0.0/32 is subnetted, 1 subnets

O       2.2.2.2 [110/11] via 23.23.23.2, 00:24:07, FastEthernet0/0

     100.0.0.0/32 is subnetted, 7 subnets

O E2    100.100.100.4 [110/20] via 23.23.23.2, 00:24:07, FastEthernet0/0

O E2    100.100.100.5 [110/20] via 23.23.23.2, 00:24:07, FastEthernet0/0

O E2    100.100.100.6 [110/20] via 23.23.23.2, 00:24:07, FastEthernet0/0

O E2    100.100.100.7 [110/20] via 23.23.23.2, 00:24:07, FastEthernet0/0

O IA    100.100.100.1 [110/75] via 23.23.23.2, 00:24:07, FastEthernet0/0

O IA    100.100.100.2 [110/75] via 23.23.23.2, 00:24:07, FastEthernet0/0

O IA    100.100.100.3 [110/75] via 23.23.23.2, 00:24:07, FastEthernet0/0

     3.0.0.0/32 is subnetted, 1 subnets

     12.0.0.0/24 is subnetted, 1 subnets

O IA    12.12.12.0 [110/74] via 23.23.23.2, 00:24:08, FastEthernet0/

R2

router ospf 2

 router-id 2.2.2.2

 log-adjacency-changes

 area 1 stub

 network 2.2.2.2 0.0.0.0 area 1

 network 12.12.12.2 0.0.0.0 area 0

 network 23.23.23.2 0.0.0.0 area 1

R3

router ospf 3

 router-id 3.3.3.3

 log-adjacency-changes

 area 1 stub

 network 3.3.3.3 0.0.0.0 area 1

 network 23.23.23.3 0.0.0.0 area 1

 

Verifikasi :

Routing tipe E yang awalnya ada jadi tidak ada.

R3#sh ip route

 

     1.0.0.0/32 is subnetted, 1 subnets

O IA    1.1.1.1 [110/75] via 23.23.23.2, 00:02:03, FastEthernet0/0

     2.0.0.0/32 is subnetted, 1 subnets

O       2.2.2.2 [110/11] via 23.23.23.2, 00:02:03, FastEthernet0/0

     100.0.0.0/32 is subnetted, 3 subnets

O IA    100.100.100.1 [110/75] via 23.23.23.2, 00:02:03, FastEthernet0/0

O IA    100.100.100.2 [110/75] via 23.23.23.2, 00:02:03, FastEthernet0/0

O IA    100.100.100.3 [110/75] via 23.23.23.2, 00:02:03, FastEthernet0/0

     3.0.0.0/32 is subnetted, 1 subnets

C       3.3.3.3 is directly connected, Loopback0

     23.0.0.0/24 is subnetted, 1 subnets

C       23.23.23.0 is directly connected, FastEthernet0/0

     12.0.0.0/24 is subnetted, 1 subnets

O IA    12.12.12.0 [110/74] via 23.23.23.2, 00:02:04, FastEthernet0/0

O*IA 0.0.0.0/0 [110/11] via 23.23.23.2, 00:02:04, FastEthernet0/0

 

R3#ping 100.100.100.4

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 100.100.100.4, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 8/52/192 ms

Hanya ada LSA 1 dan 3

 

R3#sh ip ospf data

            OSPF Router with ID (3.3.3.3) (Process ID 3)

                Router Link States (Area 1)

Link ID         ADV Router      Age         Seq#       Checksum Link count

2.2.2.2         2.2.2.2         232         0×80000004 0x00E688 2

3.3.3.3         3.3.3.3         231         0×80000004 0x00F76B 2

 

                Net Link States (Area 1)

 

Link ID         ADV Router      Age         Seq#       Checksum

23.23.23.3      3.3.3.3         227         0×80000003 0x00CC05

 

                Summary Net Link States (Area 1)

 

Link ID         ADV Router      Age         Seq#       Checksum

0.0.0.0         2.2.2.2         982         0×80000001 0x0075C0

1.1.1.1         2.2.2.2         235         0×80000003 0x00C52A

12.12.12.0      2.2.2.2         235         0×80000003 0×003898

100.100.100.1   2.2.2.2         235         0×80000003 0x00CBF9

100.100.100.2   2.2.2.2         235         0×80000003 0x00C103

100.100.100.3   2.2.2.2         235         0×80000003 0x00B70C

*************************************

LAB 5 OSPF Totally Stub Area

Note : Tidak melewatkan Internal Route AREA LAIN dan route Ekstenal. Command yang dipakai : area x stub no -summary

Scenario : Lab totally stub, hanya menampilkan info routing satu area dan default route.

Dari konfig sebelumnya :

R2

R2(config-router)#no area 1 stub

R2(config-router)#area 1 stub no-summary

Verifikasi :

R3

Terlihat selain eksternal route juga tidak ditampilkan, internal route lain area pun tidak muncul

sh ip route 

Gateway of last resort is 23.23.23.2 to network 0.0.0.0

 

     2.0.0.0/32 is subnetted, 1 subnets

O       2.2.2.2 [110/11] via 23.23.23.2, 00:00:04, FastEthernet0/0

     3.0.0.0/32 is subnetted, 1 subnets

C       3.3.3.3 is directly connected, Loopback0

     23.0.0.0/24 is subnetted, 1 subnets

C       23.23.23.0 is directly connected, FastEthernet0/0

O*IA 0.0.0.0/0 [110/11] via 23.23.23.2, 00:00:04, FastEthernet0/0

R3(config-router)#do ping 100.100.100.1

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 100.100.100.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 12/61/148 ms

R3(config-router)#do ping 100.100.100.4

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 100.100.100.4, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 4/62/160 ms

R3(config-router)#

R3(config-router)#do sh ip ospf data

 

            OSPF Router with ID (3.3.3.3) (Process ID 3)

 

                Router Link States (Area 1)

 

Link ID         ADV Router      Age         Seq#       Checksum Link count

2.2.2.2         2.2.2.2         90          0×80000008 0x00DE8C 2

3.3.3.3         3.3.3.3         89          0×80000008 0x00EF6F 2

 

                Net Link States (Area 1)

 

Link ID         ADV Router      Age         Seq#       Checksum

23.23.23.3      3.3.3.3         84          0×80000007 0x00C409

 

                Summary Net Link States (Area 1)

 

Link ID         ADV Router      Age         Seq#       Checksum

0.0.0.0         2.2.2.2         188         0×80000001 0x0075C0

 

*********************************************

LAB 6 . OSPF Not So Stubby Area

Skenario : Lab NSSA untuk bias melewatkan Eksternal route yang tidak bias dilakukan pada dua model stub sebelumnya.

Note :

- NSSA bias melewatkan eksternal dan internal route area yang berbeda. Untuk Eksternal route ( LSA5) pada NSSA diubah menjadi LSA 7.

- NSSA harus dikonfigurasi pada semua router stub pada area yang sama.

- default-information-originate no-summary  untuk menginject default gateway

- no summary dibelakang default-information-originate berarti : tidak menampilkan internal route area lain pada database.

R2

 router ospf 2

 router-id 2.2.2.2

 log-adjacency-changes

 area 1 nssa default-information-originate no-summary !!! untuk inject default route!!!

 network 2.2.2.2 0.0.0.0 area 1

 network 12.12.12.2 0.0.0.0 area 0

 network 23.23.23.2 0.0.0.0 area 1

R3

router ospf 3

 router-id 3.3.3.3

 log-adjacency-changes

 area 1 nssa

 redistribute rip subnets

 network 3.3.3.3 0.0.0.0 area 1

 network 23.23.23.3 0.0.0.0 area 1

!

router rip

 version 2

 network 33.0.0.0

 no auto-summary

 

Verifikasi

 

 [sebelum di apply, routing tabel tidak memiliki default route]

     1.0.0.0/32 is subnetted, 1 subnets

O IA    1.1.1.1 [110/75] via 23.23.23.2, 00:00:14, FastEthernet0/0

     2.0.0.0/32 is subnetted, 1 subnets

O       2.2.2.2 [110/11] via 23.23.23.2, 00:00:14, FastEthernet0/0

     100.0.0.0/32 is subnetted, 3 subnets

O IA    100.100.100.1 [110/75] via 23.23.23.2, 00:00:14, FastEthernet0/0

O IA    100.100.100.2 [110/75] via 23.23.23.2, 00:00:14, FastEthernet0/0

O IA    100.100.100.3 [110/75] via 23.23.23.2, 00:00:14, FastEthernet0/0

     33.0.0.0/32 is subnetted, 3 subnets

C       33.33.33.1 is directly connected, Loopback1

C       33.33.33.3 is directly connected, Loopback3

C       33.33.33.2 is directly connected, Loopback2

     3.0.0.0/32 is subnetted, 1 subnets

C       3.3.3.3 is directly connected, Loopback0

     23.0.0.0/24 is subnetted, 1 subnets

C       23.23.23.0 is directly connected, FastEthernet0/0

     12.0.0.0/24 is subnetted, 1 subnets

O IA    12.12.12.0 [110/74] via 23.23.23.2, 00:00:16, FastEthernet0/0

R3(config-router)#

R3(config-router)#do ping 100.100.100.4

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 100.100.100.4, timeout is 2 seconds:

…..

Success rate is 0 percent (0/5)

 

Belum ada default route

Setelah apply  area 1 nssa default-information-originate no-summary

R3#sh ip route

Gateway of last resort is 23.23.23.2 to network 0.0.0.0

2.0.0.0/32 is subnetted, 1 subnets

O       2.2.2.2 [110/11] via 23.23.23.2, 00:18:55, FastEthernet0/0

33.0.0.0/32 is subnetted, 3 subnets

C       33.33.33.1 is directly connected, Loopback1

C       33.33.33.3 is directly connected, Loopback3

C       33.33.33.2 is directly connected, Loopback2

3.0.0.0/32 is subnetted, 1 subnets

C       3.3.3.3 is directly connected, Loopback0

23.0.0.0/24 is subnetted, 1 subnets

C       23.23.23.0 is directly connected, FastEthernet0/0

O*IA 0.0.0.0/0 [110/11] via 23.23.23.2, 00:18:55, FastEthernet0/0  > ada default route 

 

 

 

************************

Lab 7. OSPF Network Non Broadcast

Skenario :

konfigurasi Routing OSPF pada interface Non Broadcast, Pada interface mode non broadcast ini, perlu konfigurasi khusus dengan mendefine

R1
int s0/0
encap frame-relay
ip addr 123.123.123.1 255.255.255.0
frame-relay map ip 123.123.123.2 102 broadcast
frame-relay map ip 123.123.123.3 103 broadcast
int lo0
ip address 1.1.1.1 255.255.255.255

R2
int s0/0
encap frame-relay
ip addr 123.123.123.2 255.255.255.0
frame-relay map ip 123.123.123.1 201 broadcast
frame-relay map ip 123.123.123.3 201
int lo0
ip address 2.2.2.2 255.255.255.255

R3
int s0/0
encap frame-relay
ip addr 123.123.123.3 255.255.255.0

frame-relay map ip 123.123.123.1 301 broadcast
frame-relay map ip 123.123.123.2 301
int lo0
ip addr 3.3.3.3 255.255.255.255

R1#sh frame-relay map
Serial0/0 (up): ip 123.123.123.2 dlci 102(0×66,0×1860), static,
broadcast,
CISCO, status defined, active
Serial0/0 (up): ip 123.123.123.3 dlci 103(0×67,0×1870), static,
broadcast,
CISCO, status defined, active

konfigurasi OSPF agar tiap2 loopback dapat saling mengakses :

R1(config)#router ospf 1
R1(config-router)#net 1.1.1.1 0.0.0.0 area 0
R1(config-router)#net 123.123.123.1 0.0.0.0 area 0
R2(config)#router ospf 2
R2(config-router)#net 2.2.2.2 0.0.0.0 area 0
R2(config-router)#net 123.123.123.2 0.0.0.0 area 0
R3(config-if)#router ospf 3
R3(config-router)#net 3.3.3.3 0.0.0.0 area 0
R3(config-router)#net 123.123.123.3 0.0.0.0 area 0

pada kondisi ini, routing OPF belum bisa berjalan, hal tersebut dikarenakan tipe interface untuk frame-relay yang dikonfigur adalah tipe non-broadcast, sehingga konfigurasi dengan peer OPSF harus di define dengan command neighbor [IP peer]

R1(config-router)#do sh ip ospf neighbor
R1(config-router)#
R1#sh ip ospf int s0/0
Serial0/0 is up, line protocol is up
Internet Address 123.123.123.1/24, Area 0
Process ID 1, Router ID 1.1.1.1, Network Type NON_BROADCAST, Cost: 64

R2#sh ip ospf int s0/0
Serial0/0 is up, line protocol is up
Internet Address 123.123.123.2/24, Area 0
Process ID 2, Router ID 2.2.2.2, Network Type NON_BROADCAST, Cost: 64

R3#sh ip ospf inter s0/0
Serial0/0 is up, line protocol is up
Internet Address 123.123.123.3/24, Area 0
Process ID 3, Router ID 3.3.3.3, Network Type NON_BROADCAST, Cost: 64

R1(config)#router ospf 1
R1(config-router)#neighbor 123.123.123.2
R1(config-router)#neighbor 123.123.123.3

routing OSPF sudah berjalan :
R1#sh ip route
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/65] via 123.123.123.3, 00:20:35, Serial0/0
123.0.0.0/24 is subnetted, 1 subnets
C 123.123.123.0 is directly connected, Serial0/0

**********************************************

Lab 8. OSPF Network Broadcast

Skenario : menggunakan topologi sebelumnya, hanya di remove command neighbor di ospf, dan untuk membentuk adjecency-nya dengan mengubah tipe network intefae dari NON broadcast ke broadcast.

R1(config)#router ospf 1
R1(config-router)#no neighbor 123.123.123.2
R1(config-router)#no neighbor 123.123.123.3
R1(config)#int s0/0
R1(config-if)#ip ospf network broadcast

R2config)#int s0/0
R2config-if)#ip ospf network broadcast

R3config)#int s0/0
R3config-if)#ip ospf network broadcast

VERIFIKASI

dengan mengubah tipe interface menjadi broadcast, adjecency terbentuk tanpa define neighbor [ip neighbor]

R3# sh ip route
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/65] via 123.123.123.1, 00:02:06, Serial0/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/65] via 123.123.123.2, 00:02:06, Serial0/0
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
123.0.0.0/24 is subnetted, 1 subnets
C 123.123.123.0 is directly connected, Serial0/0
R3(config-if)#do ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/35/80 ms
R1#sh ip os int
Serial0/0 is up, line protocol is up
Internet Address 123.123.123.1/24, Area 0
Process ID 1, Router ID 1.1.1.1, Network Type BROADCAST, Cost: 64
R2(config-if)#do sh ip os int
Serial0/0 is up, line protocol is up
Internet Address 123.123.123.2/24, Area 0
Process ID 2, Router ID 2.2.2.2, Network Type BROADCAST, Cost: 64
R3#sh ip ospf int
Serial0/0 is up, line protocol is up
Internet Address 123.123.123.3/24, Area 0
Process ID 3, Router ID 3.3.3.3, Network Type BROADCAST, Cost: 64

*******************************************
Lab 9. OSPF Network Point-to-Point

 Skenario : membentuk Adjecency OSPF pada network FR bertipe point-to-point.

R1
int s0/0
encap frame-relay
int s0/0.12 point-to-point
ip addr 12.12.12.1 255.255.255.0
frame-relay interface-dlci 102
int s0/0.13 point-to-point
ip addr 13.13.13.1 255.255.255.0
frame-relay interface-dlci 103
int lo0
ip addr 1.1.1.1 255.255.255.255
R2
int s0/0
encap frame-relay
int s0/0.12 point-to-point
ip addr 12.12.12.2 255.255.255.0
frame-relay interface-dlci 201

int lo0
ip addr 2.2.2.2 255.255.255.255

R3
int s0/0
encap frame-relay
int s0/0.13 point-to-point
ip addr 13.13.13.3 255.255.255.0
frame-relay interface-dlci 301
int lo0
ip addr 3.3.3.3 255.255.255.255

Verifikasi Frame-relay :


R2#sh frame-relay map
Serial0/0.12 (up): point-to-point dlci, dlci 201(0xC9,0×3090), broadcast
status defined, active
R3(config-if)#do ping 13.13.13.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 13.13.13.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/37/112 ms
R3(config-if)#do sh frame-relay map
Serial0/0.13 (up): point-to-point dlci, dlci 301(0x12D,0x48D0), broadcast
status defined, active
Frame-relay sudah terbentuk, konfigurasi OSPF-nya adalah :

R1

router ospf 1
router-id 1.1.1.1
network 1.1.1.1 0.0.0.0 area 0
network 12.12.12.1 0.0.0.0 area 0
network 13.13.13.1 0.0.0.0 area 0

R2
router ospf 2
router-id 2.2.2.2
network 12.12.12.2 0.0.0.0 area 0
network 2.2.2.2 0.0.0.0 area 0

R3

router ospf 3
router-id 3.3.3.3
network 3.3.3.3 0.0.0.0 area 0
network 13.13.13.3 0.0.0.0 area 0

VERIFIKASI OSPF

Terlihat adjecency terbentuk dan network type interface sebagai point-to-point

R1(config-router)#do sh ip route
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/65] via 12.12.12.2, 00:02:46, Serial0/0.12
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/65] via 13.13.13.3, 00:02:46, Serial0/0.13
12.0.0.0/24 is subnetted, 1 subnets

 

R1(config-router)#do ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/44/128 ms

R1(config-router)#do sh ip ospf int s0/0.12
Serial0/0.12 is up, line protocol is up
Internet Address 12.12.12.1/24, Area 0
Process ID 1, Router ID 1.1.1.1, Network Type POINT_TO_POINT, Cost: 64
R1(config-router)#do sh ip ospf int s0/0.13
Serial0/0.13 is up, line protocol is up
Internet Address 13.13.13.1/24, Area 0
Process ID 1, Router ID 1.1.1.1, Network Type POINT_TO_POINT, Cost: 64

R2(config-if)#do sh ip route
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/65] via 12.12.12.1, 00:00:06, Serial0/0.12
2.0.0.0/32 is subnetted, 1 subnets
C 2.2.2.2 is directly connected, Loopback0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/129] via 12.12.12.1, 00:00:06, Serial0/0.12
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, Serial0/0.12
13.0.0.0/24 is subnetted, 1 subnets
O 13.13.13.0 [110/128] via 12.12.12.1, 00:00:06, Serial0/0.12
R2(config-if)#do ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/65/108 ms

 

R2(config-if)#do sh ip ospf int s0/0.12
Serial0/0.12 is up, line protocol is up
Internet Address 12.12.12.2/24, Area 0
Process ID 2, Router ID 2.2.2.2, Network Type POINT_TO_POINT, Cost: 64

 

R3(config-if)#do sh ip route
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/65] via 13.13.13.1, 00:06:09, Serial0/0.13
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/129] via 13.13.13.1, 00:06:09, Serial0/0.13
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
12.0.0.0/24 is subnetted, 1 subnets
O 12.12.12.0 [110/128] via 13.13.13.1, 00:06:09, Serial0/0.13
13.0.0.0/24 is subnetted, 1 subnets
C 13.13.13.0 is directly connected, Serial0/0.13
R3(config-if)#do ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/40/96 ms
R3(config-if)#do ping 2.2.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/56/68 ms
R3(config-if)#do ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
R3(config-if)#do sh ip ospf int s0/0.13
Serial0/0.13 is up, line protocol is up
Internet Address 13.13.13.3/24, Area 0
Process ID 3, Router ID 3.3.3.3, Network Type POINT_TO_POINT, Cost: 64

terlihat mode interface-nya adalah point to point dan antar loopback router sudah bisa saling ping

********************************************************

Lab 10. OSPF Network Point-to-Multipoint

Skenario : OSPF pada interface tipe Point-to-Multipoint

R1
int s0/0
encap frame-relay
ip addr 123.123.123.1 255.255.255.0
frame-relay map ip 123.123.123.2 102 broadcast
frame-relay map ip 123.123.123.3 103 broadcast
no frame-relay inverse-arp
ip ospf network point-to-multipoint
int lo0
ip addr 1.1.1.1 255.255.255.255
router ospf 1
router-id 1.1.1.1
network 0.0.0.0 255.255.255.255 area 0
R2
int s0/0
encap frame-relay
ip addr 123.123.123.2 255.255.255.0
frame-relay map ip 123.123.123.1 201 broadcast
frame-relay map ip 123.123.123.3 201
no frame-relay inverse-arp
ip ospf network point-to-multipoint
int lo0
ip addr 2.2.2.2 255.255.255.255
router ospf 2
router-id 2.2.2.2
network 0.0.0.0 255.255.255.255 area 0

R3
int s0/0
encap frame-relay
ip addr 123.123.123.3 255.255.255.0
frame-relay map ip 123.123.123.1 301 broadcast
frame-relay map ip 123.123.123.2 301
no frame-relay inverse-arp
ip ospf network point-to-multipoint
int lo0
ip addr 3.3.3.3 255.255.255.255
router ospf 3
router-id 3.3.3.3
network 0.0.0.0 255.255.255.255 area 0
cek tipe network OSPF nya

VERIFIKASI
pada mode ini, network 123.123.123.2 dan 3 tidak dianggap sebagai directly
connected.

R1(config-router)#do sh ip ospf int s0/0
Serial0/0 is up, line protocol is up
Internet Address 123.123.123.1/24, Area 0
Process ID 1, Router ID 1.1.1.1, Network Type POINT_TO_MULTIPOINT, Cost: 64
R1(config-router)#do sh ip route
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/65] via 123.123.123.2, 00:10:05, Serial0/0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/65] via 123.123.123.3, 00:10:05, Serial0/0
123.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
O 123.123.123.3/32 [110/64] via 123.123.123.3, 00:10:05, Serial0/0
O 123.123.123.2/32 [110/64] via 123.123.123.2, 00:10:05, Serial0/0
C 123.123.123.0/24 is directly connected, Serial0/0

R2#sh ip route
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/65] via 123.123.123.1, 00:19:32, Serial0/0
2.0.0.0/32 is subnetted, 1 subnets
C 2.2.2.2 is directly connected, Loopback0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/129] via 123.123.123.1, 00:19:32, Serial0/0
123.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
O 123.123.123.3/32 [110/128] via 123.123.123.1, 00:20:32, Serial0/0
O 123.123.123.1/32 [110/64] via 123.123.123.1, 00:20:32, Serial0/0
C 123.123.123.0/24 is directly connected, Serial0/0

R2#ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/34/48 ms
R2#ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/59/148 ms

 

 

****************************

Lab 11. OSPF Network Point-to-Multipoint Non Broadcast

Skenario :  konfigurasi OSPF pada network tipe multipoint Non Broadcast.

 

terlihat pada router spoke prlu di konfugrasi command neighbor

R1
int s0/0
encap frame-relay
ip addr 123.123.123.1 255.255.255.0
frame-relay map ip 123.123.123.2 102
frame-relay map ip 123.123.123.3 103
no frame-relay inverse-arp
ip ospf network point-to-multipoint non-broadcast


int lo0
ip addr 1.1.1.1 255.255.255.255
router ospf 1
router-id 1.1.1.1
network 0.0.0.0 255.255.255.255 area 0
neighbor 123.123.123.2
neighbor 123.123.123.3

R2
int s0/0
encap frame-relay
ip addr 123.123.123.2 255.255.255.0
frame-relay map ip 123.123.123.1 201
frame-relay map ip 123.123.123.3 201
no frame-relay inverse-arp
ip ospf network point-to-multipoint non-broadcast
no sh
int lo0
ip addr 2.2.2.2 255.255.255.255
router ospf 2
router-id 2.2.2.2
network 0.0.0.0 255.255.255.255 area 0

R3
int s0/0
encap frame-relay
ip addr 123.123.123.3 255.255.255.0
frame-relay map ip 123.123.123.1 301
frame-relay map ip 123.123.123.2 301
no frame-relay inverse-arp
ip ospf network point-to-multipoint non-broadcast
no sh
int lo0
ip addr 3.3.3.3 255.255.255.255
router ospf 3
router-id 3.3.3.3
network 0.0.0.0 255.255.255.255 area 0

 

R1#sh ip ospf neigh
Neighbor ID Pri State Dead Time Address Interface
3.3.3.3 0 FULL/ – 00:01:20 123.123.123.3 Serial0/0
2.2.2.2 0 FULL/ – 00:01:20 123.123.123.2 Serial0/0
R2#sh ip os neigh
Neighbor ID Pri State Dead Time Address Interface
1.1.1.1 0 FULL/ – 00:01:35 123.123.123.1 Serial0/0
R1#sh ip route
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/65] via 123.123.123.2, 00:07:33, Serial0/0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/65] via 123.123.123.3, 00:07:33, Serial0/0
123.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
O 123.123.123.3/32 [110/64] via 123.123.123.3, 00:07:33, Serial0/0
O 123.123.123.2/32 [110/64] via 123.123.123.2, 00:07:33, Serial0/0
C 123.123.123.0/24 is directly connected, Serial0/0

R2#sh ip route
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/65] via 123.123.123.1, 00:07:40, Serial0/0
2.0.0.0/32 is subnetted, 1 subnets
C 2.2.2.2 is directly connected, Loopback0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/129] via 123.123.123.1, 00:07:40, Serial0/0
123.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
O 123.123.123.3/32 [110/128] via 123.123.123.1, 00:07:40, Serial0/0
O 123.123.123.1/32 [110/64] via 123.123.123.1, 00:07:40, Serial0/0
C 123.123.123.0/24 is directly connected, Serial0/0

R3#sh ip route
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/65] via 123.123.123.1, 00:07:50, Serial0/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/129] via 123.123.123.1, 00:07:50, Serial0/0
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
123.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
O 123.123.123.2/32 [110/128] via 123.123.123.1, 00:07:50, Serial0/0
O 123.123.123.1/32 [110/64] via 123.123.123.1, 00:07:50, Serial0/0
C 123.123.123.0/24 is directly connected, Serial0/0

R3#ping 123.123.123.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 123.123.123.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/33/56 ms
R3#ping 123.123.123.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 123.123.123.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 44/71/96 ms

 

****************************************

Lab 12. OSPF Filtering – Distribute List

SKenario : distribute informasi routing OSPF dengan menggunakan akses list

R1
int s0/0
ip addr 12.12.12.1 255.255.255.0
no sh
int lo0
ip addr 1.1.1.1 255.255.255.255
int lo1
ip addr 100.100.100.1 255.255.255.255
int lo2
ip addr 100.100.100.2 255.255.255.255
int lo3
ip addr 100.100.100.3 255.255.255.255
int lo4
ip addr 100.100.100.4 255.255.255.255
int lo5
ip addr 100.100.100.5 255.255.255.255
int lo6
ip addr 100.100.100.6 255.255.255.255
router ospf 1
router-id 1.1.1.1
network 0.0.0.0 255.255.255.255 area 0
R2
int s0/0
ip addr 12.12.12.2 255.255.255.0
no sh
int f0/0
ip addr 23.23.23.2 255.255.255.0
no sh
int lo0
ip addr 2.2.2.2 255.255.255.255
router os 2
router-id 2.2.2.2

network 0.0.0.0 255.255.255.255 area 0

 

R3
int f0/0
ip addr 23.23.23.3 255.255.255.0
no sh
int lo0
ip addr 3.3.3.3 255.255.255.255
router os 3
router-id 3.3.3.3
network 0.0.0.0 255.255.255.255 area 0
R2(config)#do sh ip rout
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/21] via 23.23.23.3, 00:00:01, FastEthernet0/0
2.0.0.0/32 is subnetted, 1 subnets
C 2.2.2.2 is directly connected, Loopback0
100.0.0.0/32 is subnetted, 6 subnets
O 100.100.100.4 [110/21] via 23.23.23.3, 00:00:05, FastEthernet0/0
O 100.100.100.5 [110/21] via 23.23.23.3, 00:00:05, FastEthernet0/0
O 100.100.100.6 [110/21] via 23.23.23.3, 00:00:05, FastEthernet0/0
O 100.100.100.1 [110/21] via 23.23.23.3, 00:00:05, FastEthernet0/0
O 100.100.100.2 [110/21] via 23.23.23.3, 00:00:05, FastEthernet0/0
O 100.100.100.3 [110/21] via 23.23.23.3, 00:00:05, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/11] via 23.23.23.3, 00:00:05, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, Serial0/0
13.0.0.0/24 is subnetted, 1 subnets
O 13.13.13.0 [110/20] via 23.23.23.3, 00:00:05, FastEthernet0/0

R2#sh ip ospf database
OSPF Router with ID (2.2.2.2) (Process ID 2)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
1.1.1.1 1.1.1.1 388 0x8000000C 0x005ADA 10
2.2.2.2 2.2.2.2 1623 0×80000005 0x00621E 4
3.3.3.3 3.3.3.3 1630 0×80000004 0x00C132 3
Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
13.13.13.3 3.3.3.3 1630 0×80000003 0x00E50C
23.23.23.3 3.3.3.3 1630 0×80000003 0x00AE21

membuat access-list untuk melewatkan yang genap saja.

R2(config)#access-list 1 permit 0.0.0.0 255.255.255.254
R2(config)#router ospf 2
R2(config-router)#distribute-list 1 in

 

VERIFIKASI

R2(config)#do sh ip rout
2.0.0.0/32 is subnetted, 1 subnets
C 2.2.2.2 is directly connected, Loopback0
100.0.0.0/32 is subnetted, 3 subnets
O 100.100.100.4 [110/21] via 23.23.23.3, 00:00:04, FastEthernet0/0
O 100.100.100.6 [110/21] via 23.23.23.3, 00:00:04, FastEthernet0/0
O 100.100.100.2 [110/21] via 23.23.23.3, 00:00:04, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, Serial0/0
13.0.0.0/24 is subnetted, 1 subnets
O 13.13.13.0 [110/20] via 23.23.23.3, 00:00:04, FastEthern
R2(config)#do sh ip os dat
OSPF Router with ID (2.2.2.2) (Process ID 2)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
1.1.1.1 1.1.1.1 920 0x8000000C 0x005ADA 10
2.2.2.2 2.2.2.2 117 0×80000006 0x00601F 4
3.3.3.3 3.3.3.3 133 0×80000005 0x00BF33 3
Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
13.13.13.3 3.3.3.3 133 0×80000004 0x00E30D
23.23.23.3 3.3.3.3 133 0×80000004 0x00AC22

Terlihat, walaupun sudah di berikan akses list , OSPF database dalam satu area masih mempunyai database yang sama ( dalam OSPF memang tiap router harus memiliki databse yang sama )

R1#sh ip ospf database
OSPF Router with ID (1.1.1.1) (Process ID 1)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
1.1.1.1 1.1.1.1 439 0x8000000C 0x005ADA 10
2.2.2.2 2.2.2.2 1677 0×80000005 0x00621E 4
3.3.3.3 3.3.3.3 1682 0×80000004 0x00C132 3
Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
13.13.13.3 3.3.3.3 1682 0×80000003 0x00E50C
23.23.23.3 3.3.3.3 1682 0×80000003 0x00AE21
R3#sh ip os data
OSPF Router with ID (3.3.3.3) (Process ID 3)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
1.1.1.1 1.1.1.1 416 0x8000000C 0x005ADA 10
2.2.2.2 2.2.2.2 1652 0×80000005 0x00621E 4
3.3.3.3 3.3.3.3 1657 0×80000004 0x00C132 3
Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
13.13.13.3 3.3.3.3 1657 0×80000003 0x00E50C
23.23.23.3 3.3.3.3 1657 0×80000003 0x00AE21
R3#sh ip route
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/11] via 13.13.13.1, 01:52:40, FastEthernet0/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/11] via 23.23.23.2, 01:52:40, FastEthernet0/1
100.0.0.0/32 is subnetted, 6 subnets
O 100.100.100.4 [110/11] via 13.13.13.1, 00:57:35, FastEthernet0/0
O 100.100.100.5 [110/11] via 13.13.13.1, 00:57:25, FastEthernet0/0
O 100.100.100.6 [110/11] via 13.13.13.1, 00:57:25, FastEthernet0/0
O 100.100.100.1 [110/11] via 13.13.13.1, 00:57:55, FastEthernet0/0
O 100.100.100.2 [110/11] via 13.13.13.1, 00:57:45, FastEthernet0/0
O 100.100.100.3 [110/11] via 13.13.13.1, 00:57:45, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/1
12.0.0.0/24 is subnetted, 1 subnets
O 12.12.12.0 [110/74] via 23.23.23.2, 01:52:42, FastEthernet0/1
[110/74] via 13.13.13.1, 01:52:42, FastEthernet0/0
13.0.0.0/24 is subnetted, 1 subnets
C 13.13.13.0 is directly connected, FastEthernet0/0

Terlihat R3 tetap memiliki database yang sama, walaupun di R2 sudah diberlakukan access list.

 

*****************************************
Lab 13. OSPF Filtering – AD
Skenario : melakukan filtering Administrative Distance pada OSPF
Note : AD 255 = Unreacheble
sebelum filtering

R3#sh ip route
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/11] via 23.23.23.2, 00:00:35, FastEthernet0/1
100.0.0.0/32 is subnetted, 6 subnets
O 100.100.100.4 [110/11] via 13.13.13.1, 00:00:35, FastEthernet0/0
O 100.100.100.5 [110/11] via 13.13.13.1, 00:00:35, FastEthernet0/0
O 100.100.100.6 [110/11] via 13.13.13.1, 00:00:35, FastEthernet0/0
O 100.100.100.1 [110/11] via 13.13.13.1, 00:00:35, FastEthernet0/0
O 100.100.100.2 [110/11] via 13.13.13.1, 00:00:35, FastEthernet0/0
O 100.100.100.3 [110/11] via 13.13.13.1, 00:00:35, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/1
12.0.0.0/24 is subnetted, 1 subnets
O 12.12.12.0 [110/74] via 23.23.23.2, 00:00:28, FastEthernet0/1
[110/74] via 13.13.13.1, 00:00:28, FastEthernet0/0
13.0.0.0/24 is subnetted, 1 subnets
C 13.13.13.0 is directly connected, FastEthernet0/0

memberlakukan filtering pada R3

R3(config)#access-list 1 permit 100.100.100.2

R3(config)#router ospf 3
R3(config-router)# distance 255 0.0.0.0 255.255.255.255 1

terlihat 100.100.100.2 tidak lagi terdapat dalam routing tabelnya , karena memiliki distance 255 (unreacheble)

R3(config-router)#do sh ip route
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/11] via 13.13.13.1, 00:00:05, FastEthernet0/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/11] via 23.23.23.2, 00:00:05, FastEthernet0/1
100.0.0.0/32 is subnetted, 5 subnets
O 100.100.100.4 [110/11] via 13.13.13.1, 00:00:07, FastEthernet0/0
O 100.100.100.5 [110/11] via 13.13.13.1, 00:00:07, FastEthernet0/0
O 100.100.100.6 [110/11] via 13.13.13.1, 00:00:07, FastEthernet0/0
O 100.100.100.1 [110/11] via 13.13.13.1, 00:00:07, FastEthernet0/0
O 100.100.100.3 [110/11] via 13.13.13.1, 00:00:07, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/1
12.0.0.0/24 is subnetted, 1 subnets
O 12.12.12.0 [110/74] via 23.23.23.2, 00:00:07, FastEthernet0/1
[110/74] via 13.13.13.1, 00:00:07, FastEthernet0/0
13.0.0.0/24 is subnetted, 1 subnets
C 13.13.13.0 is directly connected, FastEthernet0/0

 

 

*************************************************

 
Lab 14. OSPF Sumarization – Area Range

Skenario : meringkas/summary informasi Routing Pada OSPF.
sumarisasi ini hanya bisa dilakukan pada Router ABR dan ASBR

pada ABR/internal route digunakan Command area [x] range , sedangkan pada ASBR/eksternal route digunakan command ‘summary-address ‘

R1
int s0/0
ip addr 12.12.12.1 255.255.255.0
no sh
int lo0
ip addr 1.1.1.1 255.255.255.255
int lo1
ip addr 100.100.100.1 255.255.255.255
int lo2
ip addr 100.100.100.2 255.255.255.255
int lo3
ip addr 100.100.100.3 255.255.255.255
int lo4
ip addr 100.100.100.4 255.255.255.255
int lo5
ip addr 100.100.100.5 255.255.255.255
int lo6
ip addr 100.100.100.6 255.255.255.255
router ospf 1
router-id 1.1.1.1
network 0.0.0.0 255.255.255.255 area 0
network 100.100.100.1 0.0.0.0 area 1
network 100.100.100.2 0.0.0.0 area 1
network 100.100.100.3 0.0.0.0 area 1
network 100.100.100.4 0.0.0.0 area 1
network 100.100.100.5 0.0.0.0 area 1
network 100.100.100.6 0.0.0.0 area 1

R2
int s0/0
ip addr 12.12.12.2 255.255.255.0
no sh
int fa0/0
ip addr 23.23.23.2 255.255.255.0
no sh
int lo0
ip addr 2.2.2.2 255.255.255.255
router os 2
router-id 2.2.2.2
network 0.0.0.0 255.255.255.255 area 0

R3
int f0/0
ip addr 23.23.23.3 255.255.255.0
no sh
int lo0
ip addr 3.3.3.3 255.255.255.255
router os 3
router-id 3.3.3.3
network 0.0.0.0 255.255.255.255 area 0

VERIKASI sebelum

R3#sh ip route
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/75] via 23.23.23.2, 01:35:30, FastEthernet0/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/11] via 23.23.23.2, 01:35:30, FastEthernet0/0
100.0.0.0/32 is subnetted, 6 subnets
O IA 100.100.100.4 [110/75] via 23.23.23.2, 00:00:05, FastEthernet0/0
O IA 100.100.100.5 [110/75] via 23.23.23.2, 00:00:05, FastEthernet0/0
O IA 100.100.100.6 [110/75] via 23.23.23.2, 00:00:05, FastEthernet0/0
O IA 100.100.100.1 [110/75] via 23.23.23.2, 00:00:05, FastEthernet0/0
O IA 100.100.100.2 [110/75] via 23.23.23.2, 00:00:05, FastEthernet0/0
O IA 100.100.100.3 [110/75] via 23.23.23.2, 00:00:05, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
O 12.12.12.0 [110/74] via 23.23.23.2, 01:35:31, FastEthernet0/0

Summarsasi diberlakukan pada R1

R1(config)#router ospf 1
R1(config-router)#area 1 range 100.100.100.0 255.255.255.248

VERIKASI sesudah dilakukan sumarisasi

R3#sh ip route
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/75] via 23.23.23.2, 01:37:49, FastEthernet0/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/11] via 23.23.23.2, 01:37:49, FastEthernet0/0
100.0.0.0/29 is subnetted, 1 subnets
O IA 100.100.100.0 [110/75] via 23.23.23.2, 00:00:38, FastEthernet0/0  >> sudah tersummarisasi
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
O 12.12.12.0 [110/74] via 23.23.23.2, 01:37:49, FastEthernet0/0

R1(config-router)#do sh ip route
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
2.0.0.0/32 is subnetted, 1 subnets

O 2.2.2.2 [110/65] via 12.12.12.2, 00:01:28, Serial0/0
100.0.0.0/8 is variably subnetted, 7 subnets, 2 masks
C 100.100.100.4/32 is directly connected, Loopback4
C 100.100.100.5/32 is directly connected, Loopback5
C 100.100.100.6/32 is directly connected, Loopback6
O 100.100.100.0/29 is a summary, 00:01:28, Null0
C 100.100.100.1/32 is directly connected, Loopback1
C 100.100.100.2/32 is directly connected, Loopback2
C 100.100.100.3/32 is directly connected, Loopback3
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/75] via 12.12.12.2, 00:01:28, Serial0/0
23.0.0.0/24 is subnetted, 1 subnets
O 23.23.23.0 [110/74] via 12.12.12.2, 00:01:28, Serial0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, Serial0/0

discard route akan otomatis muncul bila summary route dikonfigurasikan. hal
tersebut untuk menghindari terjadinya adanya forwarding loop. untuk menghilangkannya :

R1(config)#router ospf 1
R1(config-router)#no discard-route internal

R1#sh ip route
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/65] via 12.12.12.2, 00:00:03, Serial0/0
100.0.0.0/32 is subnetted, 6 subnets
C 100.100.100.4 is directly connected, Loopback4
C 100.100.100.5 is directly connected, Loopback5
C 100.100.100.6 is directly connected, Loopback6
C 100.100.100.1 is directly connected, Loopback1
C 100.100.100.2 is directly connected, Loopback2
C 100.100.100.3 is directly connected, Loopback3
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/75] via 12.12.12.2, 00:00:03, Serial0/0
23.0.0.0/24 is subnetted, 1 subnets
O 23.23.23.0 [110/74] via 12.12.12.2, 00:00:05, Serial0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, Serial0/0

Terlihat discard route null sudah tidak tampak

 

Advertisement
Categories: BOOTCAMP, OSPF

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 )

Connecting to %s

Follow

Get every new post delivered to your Inbox.