OSPF

OSPF (Open Shortest Path First) adalah routing protocol yang secara umum bisa digunakan oleh router lainnya (cisco, juniper, huawei, dll), maksudnya dari keterangan diatas bahwa routing protocol OSPF ini dapat digunakan seluruh router yang ada di dunia ini bukan hanya cisco, tetapi seluruhnya dapat mengadopsi routing protocol OSPF.

OSPF ini termasuk di kategori Link-state routing protocol (sama seperti EIGRP), Link-state routing protocol ini ciri2nya memberikan informasi ke semua router, sehingga setiap router bisa melihat topologinya masing2. Cara updatenya itu secara Triggered update, maksudnya tidak semua informasi yg ada di router akan dikirim seluruhnya ke router2 lainnya, tetapi hanya informasi yang berubah/bertambah/berkurang saja yang akan di kirim ke semua router dalam 1 area, sehingga meng-efektifkan dan meng-efisienkan bandwidth yg ada, lalu convergencenya antar router sangatlah cepat dikarenakan informasi yg berubah/bertambah/berkurang saja yang dikirim ke router2 lainnya. Trus tidak mudah terjadi Routing loops, jika teman2 menggunakan routing protocol OSPF maka dibutuhkan power memory dan proses yang lebih besar, dan OSPF itu susah utk di konfigurasi.
OSPF berdasarkan Open Standard, maksudnya adalah OSPF ini dapat dikembangkan dan diperbaiki oleh vendor2 lainnya.

Hal-hal dasar yang perlu di ketahui ttg OSPF
OSPF dalam menentukan Best Path (Jalur terbaiknya) berdasarkan :

– Cost yang berdasarkan speed dari link (bandwidth)
– Speed dari linknya (bandwidth)
– Cost yang paling kecil dari link OSPF

OSPF mempunyai empat tipe dari network :

– Broadcast Multi-access, ini seperti ethernet
– NonBroadcast Multi-access (NBMA), ini seperti penggunaan pada Frame Relay
– Point-to-point networks
– Point-to-multipoint networks

Pada OSPF memiliki 3 table di dalam router :

1. Routing table
2. Adjecency database
3. Topological database

1. Routing table : Routing table biasa juga dipanggil sebagai Forwarding database. Database ini berisi the lowest cost utk mencapai router2/network2 lainnya. Setiap router mempunyai Routing table yang berbeda-beda.
2. Adjecency database : Database ini berisi semua router tetangganya. Setiap router mempunyai Adjecency database yang berbeda-beda.
3. Topological database : Database ini berisi seluruh informasi tentang router yang berada dalam satu networknya/areanya.

Berikut beberapa lab mengenai OSPF yang berkaitan dengan persoalan-persoalan di dalam dunia CCIE RS walaupun konfigurasinya masih dasar.

 

  • OSPF VIRTUAL LINK

 

 

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
duplex auto
speed auto
!
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
duplex auto
speed auto
!
interface Serial0/0
ip address 23.23.23.2 255.255.255.0
clock rate 2000000
!
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:
!
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface Serial0/0
ip address 23.23.23.3 255.255.255.0
clock rate 2000000
!
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
!
Cek Routing:
R1(config-router)#do sh 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

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:15:34, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, FastEthernet0/0
R1(config-router)#

R2(config-router)#do sh 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

1.0.0.0/32 is subnetted, 1 subnets
O IA 1.1.1.1 [110/11] via 12.12.12.1, 00:02:50, 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/0

R3(config)# do sh ip route

Gateway of last resort is not set

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

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

R2(config)#router ospf 1
R2(config-router)#area 1 virtual-link 2.2.2.2

Cek route table :

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/11] via 12.12.12.2, 00:01:04, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
O IA 23.23.23.0 [110/74] via 12.12.12.2, 00:00:47, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, FastEthernet0/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/11] via 12.12.12.1, 00:01:06, 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/0

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:01:23, 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:02:57, 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:02:57, Serial0/0

Pada R1 tidak ada routing table utk area 3, oleh karena itu kita perlu menambahkan virtual link di R3 dengan area 2 sebagai penghubungnya.

R3:
Router ospf 3
Area 2 virtual-link 2.2.2.2

R2:
Router ospf 2
Area 2 virtual-link 3.3.3.3

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/11] via 12.12.12.2, 00:06:15, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
O IA 3.3.3.3 [110/75] via 12.12.12.2, 00:00:22, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
O IA 23.23.23.0 [110/74] via 12.12.12.2, 00:05:59, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, FastEthernet0/0
R1#

R2(config)#do 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/11] via 12.12.12.1, 00:07:07, FastEthernet0/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 IA 3.3.3.3 [110/65] via 23.23.23.3, 00:01:40, Serial0/0
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
R2(config)#

R3(config)#do sh 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

1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/75] via 23.23.23.2, 00:02:22, 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:02:22, 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:02:22, Serial0/0

cek ping :
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 = 12/43/80 ms
R3#

R1#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 = 28/59/80 ms
R1#

Cek Virtual Link:
R1#sh ip ospf virtual-links
Virtual Link OSPF_VL2 to router 2.2.2.2 is up
Run as demand circuit
DoNotAge LSA allowed.
Transit area 1, via interface FastEthernet0/0, Cost of using 10
Transmit Delay is 1 sec, State POINT_TO_POINT,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:08
Adjacency State FULL (Hello suppressed)
Index 1/2, retransmission queue length 0, number of retransmission 0
First 0×0(0)/0×0(0) Next 0×0(0)/0×0(0)
Last retransmission scan length is 0, maximum is 0
Last retransmission scan time is 0 msec, maximum is 0 msec

R2#sh ip ospf virtual-links
Virtual Link OSPF_VL3 to router 3.3.3.3 is up
Run as demand circuit
DoNotAge LSA allowed.
Transit area 2, via interface Serial0/0, Cost of using 64
Transmit Delay is 1 sec, State POINT_TO_POINT,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:00
Adjacency State FULL (Hello suppressed)
Index 2/4, retransmission queue length 0, number of retransmission 0
First 0×0(0)/0×0(0) Next 0×0(0)/0×0(0)
Last retransmission scan length is 0, maximum is 0
Last retransmission scan time is 0 msec, maximum is 0 msec
Virtual Link OSPF_VL2 to router 1.1.1.1 is up
Run as demand circuit
DoNotAge LSA allowed.
Transit area 1, via interface FastEthernet0/0, Cost of using 10
Transmit Delay is 1 sec, State POINT_TO_POINT,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:09
Adjacency State FULL (Hello suppressed)
Index 1/3, retransmission queue length 0, number of retransmission 1
First 0×0(0)/0×0(0) Next 0×0(0)/0×0(0)
Last retransmission scan length is 1, maximum is 1
Last retransmission scan time is 0 msec, maximum is 0 msec

R3#sh ip ospf virtual-links
Virtual Link OSPF_VL0 to router 2.2.2.2 is up
Run as demand circuit
DoNotAge LSA allowed.
Transit area 2, via interface Serial0/0, Cost of using 64
Transmit Delay is 1 sec, State POINT_TO_POINT,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:08
Adjacency State FULL (Hello suppressed)
Index 1/2, retransmission queue length 0, number of retransmission 0
First 0×0(0)/0×0(0) Next 0×0(0)/0×0(0)
Last retransmission scan length is 0, maximum is 0
Last retransmission scan time is 0 msec, maximum is 0 msec

 

  • OSPF GRE TUNNEL

Topologi yang digunakan sama dengan topologi pada OSPF virtual link.
Hapus konfigurasi virtual link dulu

R1:
interface Tunnel1  Untuk menghubungkan Area 0 dan 2à
ip address 102.102.102.1 255.255.255.0
tunnel source 12.12.12.1
tunnel destination 12.12.12.2
!
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  Untuk menghubungkan Area 0 dan 2à-
ip address 102.102.102.2 255.255.255.0
tunnel source 12.12.12.2
tunnel destination 12.12.12.1
!
interface Tunnel2  Untuk menghubungkan Area 0 dan 3à-
ip address 203.203.203.2 255.255.255.0
tunnel source 23.23.23.2
tunnel destination 23.23.23.3
!

R3:
interface Tunnel1  Untuk menghubungkan Area 0 dan 3à-
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
!
!

R1(config)#do sh ip route
Gateway of last resort is not set

102.0.0.0/24 is subnetted, 1 subnets
C 102.102.102.0 is directly connected, Tunnel1
O 203.203.203.0/24 [110/22222] via 102.102.102.2, 00:01:55, Tunnel1
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:26:12, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
O IA 3.3.3.3 [110/22223] via 102.102.102.2, 00:00:26, Tunnel1
23.0.0.0/24 is subnetted, 1 subnets
O IA 23.23.23.0 [110/11175] via 102.102.102.2, 00:04:45, Tunnel1
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, FastEthernet0/0

R2(config-router)#do sh ip route
Gateway of last resort is not set

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:05:22, 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:01:13, 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

R3(config-router)#do 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:01:29, 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:01:29, Tunnel1
2.0.0.0/32 is subnetted, 1 subnets
O IA 2.2.2.2 [110/11112] via 203.203.203.2, 00:01:29, 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:01:29, Tunnel1

 

  • OSPF Standard Area

 

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 FastEthernet0/0
ip address 12.12.12.1 255.255.255.0
duplex auto
speed auto
!
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
!

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
duplex auto
speed auto
!
interface Serial0/0
ip address 23.23.23.2 255.255.255.0
clock rate 2000000
!
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 Loopback0
ip address 3.3.3.3 255.255.255.255
!
!
interface Serial0/0
ip address 23.23.23.3 255.255.255.0
clock rate 2000000
!!
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
!

Cek route table :
R3(config-router)#do sh 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

1.0.0.0/32 is subnetted, 1 subnets
O IA 1.1.1.1 [110/75] via 23.23.23.2, 00:05:30, Serial0/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/65] via 23.23.23.2, 00:05:30, Serial0/0
100.0.0.0/32 is subnetted, 7 subnets
O E2 100.100.100.4 [110/20] via 23.23.23.2, 00:05:30, Serial0/0
O E2 100.100.100.5 [110/20] via 23.23.23.2, 00:05:30, Serial0/0
O E2 100.100.100.6 [110/20] via 23.23.23.2, 00:05:30, Serial0/0
O E2 100.100.100.7 [110/20] via 23.23.23.2, 00:05:30, Serial0/0
O IA 100.100.100.1 [110/75] via 23.23.23.2, 00:05:30, Serial0/0
O IA 100.100.100.2 [110/75] via 23.23.23.2, 00:05:30, Serial0/0
O IA 100.100.100.3 [110/75] via 23.23.23.2, 00:05:30, 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:05:30, Serial0/0

R3#sh ip ospf datab

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 368 0×80000009 0x008E4B 3
3.3.3.3 3.3.3.3 367 0×80000002 0x00BB1D 3

Summary Net Link States (Area 1)

Link ID ADV Router Age Seq# Checksum
1.1.1.1 2.2.2.2 456 0×80000001 0x008D98
12.12.12.0 2.2.2.2 678 0×80000001 0x00FF07
100.100.100.1 2.2.2.2 456 0×80000001 0×009368
100.100.100.2 2.2.2.2 456 0×80000001 0×008971
100.100.100.3 2.2.2.2 456 0×80000001 0x007F7A

Summary ASB Link States (Area 1)

Link ID ADV Router Age Seq# Checksum
1.1.1.1 2.2.2.2 446 0×80000001 0x0075B0

Type-5 AS External Link States

Link ID ADV Router Age Seq# Checksum Tag
100.100.100.4 1.1.1.1 451 0×80000001 0x0083E7 0
100.100.100.5 1.1.1.1 451 0×80000001 0x0079F0 0
100.100.100.6 1.1.1.1 451 0×80000001 0x006FF9 0
100.100.100.7 1.1.1.1 451 0×80000001 0×006503 0

 

  • OSPF Stub Area

Lab ini menggunakan topologi yang sama dengan yang di OSPF Standard Area.

Cek route table terlebih dahulu

R3(config-router)#do 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:05:30, Serial0/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/65] via 23.23.23.2, 00:05:30, Serial0/0
100.0.0.0/32 is subnetted, 7 subnets
O E2 100.100.100.4 [110/20] via 23.23.23.2, 00:05:30, Serial0/0
O E2 100.100.100.5 [110/20] via 23.23.23.2, 00:05:30, Serial0/0
O E2 100.100.100.6 [110/20] via 23.23.23.2, 00:05:30, Serial0/0
O E2 100.100.100.7 [110/20] via 23.23.23.2, 00:05:30, Serial0/0
O IA 100.100.100.1 [110/75] via 23.23.23.2, 00:05:30, Serial0/0
O IA 100.100.100.2 [110/75] via 23.23.23.2, 00:05:30, Serial0/0
O IA 100.100.100.3 [110/75] via 23.23.23.2, 00:05:30, 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:05:30, Serial0/0

R2(config)#router ospf 2
R2(config-router)#area 1 stub
R2(config-router)#
*Mar 1 00:07:13.019: %OSPF-5-ADJCHG: Process 2, Nbr 3.3.3.3 on Serial0/0 from FULL to DOWN, Neighbor Down: Adjacency forced to reset
*Mar 1 00:07:36.879: %OSPF-5-ADJCHG: Process 2, Nbr 3.3.3.3 on Serial0/0 from LOADING to FULL, Loading Done

R3(config)#router ospf 3
R3(config-router)#area 1 stub
R3(config-router)#
R3(config-router)#
R3(config-router)#
*Mar 1 00:07:27.411: %OSPF-5-ADJCHG: Process 3, Nbr 2.2.2.2 on Serial0/0 from FULL to DOWN, Neighbor Down: Adjacency forced to reset
*Mar 1 00:07:36.519: %OSPF-5-ADJCHG: Process 3, Nbr 2.2.2.2 on Serial0/0 from LOADING to FULL, Loading Done

Setalah Stub area di buat cek route table kembali :

R3#sh 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 23.23.23.2 to network 0.0.0.0

1.0.0.0/32 is subnetted, 1 subnets
O IA 1.1.1.1 [110/75] via 23.23.23.2, 00:00:54, Serial0/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/65] via 23.23.23.2, 00:00:54, Serial0/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:54, Serial0/0
O IA 100.100.100.2 [110/75] via 23.23.23.2, 00:00:54, Serial0/0
O IA 100.100.100.3 [110/75] via 23.23.23.2, 00:00:54, 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:00:55, Serial0/0
O*IA 0.0.0.0/0 [110/65] via 23.23.23.2, 00:00:55, Serial0/0

Routing yang dihapus setelah dikonfig stub area dan di gantikan dengan default route adalah:
O E2 100.100.100.4 [110/20] via 23.23.23.2, 00:05:30, Serial0/0
O E2 100.100.100.5 [110/20] via 23.23.23.2, 00:05:30, Serial0/0
O E2 100.100.100.6 [110/20] via 23.23.23.2, 00:05:30, Serial0/0
O E2 100.100.100.7 [110/20] via 23.23.23.2, 00:05:30, Serial0/0

 

  • OSPF Totally Stub Area

Toplogi masih sama dengan sebelumnya.

R2(config)#router ospf 2

R2(config-router)#no area 1 stub

R2(config-router)#area 1 stub no-summary
*Mar 1 00:15:26.587: %OSPF-5-ADJCHG: Process 2, Nbr 3.3.3.3 on Serial0/0 from DOWN to DOWN, Neighbor Down: Adjacency forced to reset
*Mar 1 00:15:26.979: %OSPF-5-ADJCHG: Process 2, Nbr 3.3.3.3 on Serial0/0 from LOADING to FULL, Loading Done

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/65] via 23.23.23.2, 00:01:11, 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
O*IA 0.0.0.0/0 [110/65] via 23.23.23.2, 00:01:11, Serial0/0

Kalau sebelumnya ada routing berikut :
O IA 100.100.100.1 [110/75] via 23.23.23.2, 00:00:54, Serial0/0
O IA 100.100.100.2 [110/75] via 23.23.23.2, 00:00:54, Serial0/0
O IA 100.100.100.3 [110/75] via 23.23.23.2, 00:00:54, Serial0/0

Maka pada Totally stub routing ini tidak ada lagi dan di gantikan dengan default route

R3#sh ip ospf database

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 186 0×80000006 0x00B22C 3
3.3.3.3 3.3.3.3 185 0×80000006 0x00D105 3

Summary Net Link States (Area 1)

Link ID ADV Router Age Seq# Checksum
0.0.0.0 2.2.2.2 679 0×80000001 0x0075C0

Sekarang sudah tidak lagi terdapat dalam OSPF databasenya.
Link ID ADV Router Age Seq# Checksum
1.1.1.1 2.2.2.2 456 0×80000001 0x008D98
12.12.12.0 2.2.2.2 678 0×80000001 0x00FF07
100.100.100.1 2.2.2.2 456 0×80000001 0×009368
100.100.100.2 2.2.2.2 456 0×80000001 0×008971
100.100.100.3 2.2.2.2 456 0×80000001 0x007F7A

 

  • OSPF Not so Stubby Area

Topologi masih sama dengan yang sebelumnya.

Pada konfigurasi R3, tambahkan dulu routing external RIP yg di redistribute ke OSPF di router R3 area stub.

!
interface Loopback1
ip address 33.33.33.1 255.255.255.255
!
interface Loopback2
ip address 33.33.33.2 255.255.255.255
!
interface Loopback3
ip address 33.33.33.3 255.255.255.255
!
router rip
version 2
network 33.0.0.0
no auto-summary
!
router ospf 3
area 1 nssa

R2:
router ospf 2
area 1 nssa

Cek route table :
R3(config)#do 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:06:55, Serial0/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/65] via 23.23.23.2, 00:06:55, Serial0/0
100.0.0.0/32 is subnetted, 3 subnets
O IA 100.100.100.1 [110/75] via 23.23.23.2, 00:06:55, Serial0/0
O IA 100.100.100.2 [110/75] via 23.23.23.2, 00:06:55, Serial0/0
O IA 100.100.100.3 [110/75] via 23.23.23.2, 00:06:55, Serial0/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, 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:06:56, Serial0/0

Internal area dari OSPF area 1 bisa di terima dengan baik di stub router R3.

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 IA 2.2.2.2 [110/11] via 12.12.12.2, 00:42:02, FastEthernet0/0
100.0.0.0/32 is subnetted, 7 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.7 is directly connected, Loopback7
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
33.0.0.0/32 is subnetted, 3 subnets
O E2 33.33.33.1 [110/20] via 12.12.12.2, 00:07:59, FastEthernet0/0
O E2 33.33.33.3 [110/20] via 12.12.12.2, 00:07:59, FastEthernet0/0
O E2 33.33.33.2 [110/20] via 12.12.12.2, 00:07:59, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
O IA 3.3.3.3 [110/75] via 12.12.12.2, 00:08:04, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
O IA 23.23.23.0 [110/74] via 12.12.12.2, 00:42:03, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, FastEthernet0/0

External route RIP dari router R3 sudah di terima di Router R1.

Namun belum ada default route sehingga R3 belum bisa ping ke Ip 100.100.100.4-7 yang merupakan network EIGRP di R1 yang di redistribute ke OSPF.

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 0 percent (0/5)

konfigurasikan router ABR nya dalam hal ini router R2:

R2(config)#router ospf 2
R2(config-router)#area 1 nssa de
R2(config-router)#area 1 nssa default-information-originate

Cek Lagi di R3:
R3#sh ip route

Gateway of last resort is 23.23.23.2 to network 0.0.0.0

1.0.0.0/32 is subnetted, 1 subnets
O IA 1.1.1.1 [110/75] via 23.23.23.2, 00:13:55, Serial0/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/65] via 23.23.23.2, 00:13:55, Serial0/0
100.0.0.0/32 is subnetted, 3 subnets
O IA 100.100.100.1 [110/75] via 23.23.23.2, 00:13:55, Serial0/0
O IA 100.100.100.2 [110/75] via 23.23.23.2, 00:13:55, Serial0/0
O IA 100.100.100.3 [110/75] via 23.23.23.2, 00:13:55, Serial0/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, 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:13:56, Serial0/0
O*N2 0.0.0.0/0 [110/1] via 23.23.23.2, 00:00:59, Serial0/0

Cek Ping:
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 = 12/24/44 ms

Kalau kemudian diinginkan internal route OSPF area lain tidak di tampilkan dalam database namun masih tetap mengirimkan External Route RIP nya maka tambahkan no-summary pada router ABR R2

R2(config)#router os 2
R2(config-router)#area 1 nssa 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/65] via 23.23.23.2, 00:19:09, Serial0/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, Serial0/0
O*IA 0.0.0.0/0 [110/65] via 23.23.23.2, 00:02:31, Serial0/0

Pastikan di R1 bisa menerima external RIP dari R3.
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 IA 2.2.2.2 [110/11] via 12.12.12.2, 00:54:05, FastEthernet0/0
100.0.0.0/32 is subnetted, 7 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.7 is directly connected, Loopback7
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
33.0.0.0/32 is subnetted, 3 subnets
O E2 33.33.33.1 [110/20] via 12.12.12.2, 00:20:03, FastEthernet0/0
O E2 33.33.33.3 [110/20] via 12.12.12.2, 00:20:03, FastEthernet0/0
O E2 33.33.33.2 [110/20] via 12.12.12.2, 00:20:03, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
O IA 3.3.3.3 [110/75] via 12.12.12.2, 00:20:08, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
O IA 23.23.23.0 [110/74] via 12.12.12.2, 00:54:06, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, FastEthernet0/0

 

  • OSPF Network Non Broadcast

 

 

Konfigurasi semua router dengan router ospf standard

R1

Interface Loopback0

ip address 1.1.1.1 255.255.255.255

interface Serial0/0

ip ospf priority 255

ip address 123.123.123.1 255.255.255.0

encapsulation frame-relay

clock rate 2000000

router ospf 1

log-adjacency-changes

network 1.1.1.1 0.0.0.0 area 0

network 123.123.123.1 0.0.0.0 area 0

neighbor 123.123.123.2

neighbor 123.123.123.3

R2

router ospf 2

log-adjacency-changes

network 2.2.2.2 0.0.0.0 area 0

network 123.123.123.2 0.0.0.0 area 0

!

interface Loopback0

ip address 2.2.2.2 255.255.255.255

!

interface FastEthernet0/0

no ip address

shutdown

duplex auto

speed auto

!

interface Serial0/0

ip address 123.123.123.2 255.255.255.0

R3

interface Loopback0

ip address 3.3.3.3 255.255.255.255

interface Serial0/0

ip address 123.123.123.3 255.255.255.0

encapsulation frame-relay

clock rate 2000000

router ospf 3

log-adjacency-changes

network 3.3.3.3 0.0.0.0 area 0

network 123.123.123.3 0.0.0.0 area 0

 

  • OSPF Network Broadcast

Topologi sama dengan lab sebelumnya.

Konfigurasi  ospf semua router dengan type interface adalah  type broadcast

Konfigurasi

R1

R1(config-if)#ip ospf network broadcast

R2

R2(config-if)#ip ospf network broadcast

R3

R3(config-if)#ip ospf network broadcast

 

 

  • OSPF Network Point to point

Topologi masih sama dengan lab sebelumnya.

Konfigurasi

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

interface Loopback0

ip address 1.1.1.1 255.255.255.255

interface Serial0/0.12 point-to-point

ip address 12.12.12.1 255.255.255.0

snmp trap link-status

frame-relay interface-dlci 102

!

interface Serial0/0.13 point-to-point

ip address 13.13.13.1 255.255.255.0

snmp trap link-status

frame-relay interface-dlci 103

R2

Router ospf 2

Router-id  1.1.1.1

Network 2.2.2.2  0.0.0.0 area 0

Network 12.12.12.2 0.0.0.0 area 0

interface Loopback0

ip address 2.2.2.2 255.255.255.255

!

interface Serial0/0

no ip address

encapsulation frame-relay

ip ospf network broadcast

ip ospf priority 0

clock rate 2000000

!

interface Serial0/0.12 point-to-point

ip address 12.12.12.2 255.255.255.0

snmp trap link-status

frame-relay interface-dlci 201

!

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

interface Loopback0

ip address 3.3.3.3 255.255.255.255

!

interface Serial0/0

no ip address

encapsulation frame-relay

ip ospf network broadcast

ip ospf priority 0

clock rate 2000000

!

interface Serial0/0.13 point-to-point

ip address 13.13.13.3 255.255.255.0

snmp trap link-status

frame-relay interface-dlci 301

!

R3#sh 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

1.0.0.0/32 is subnetted, 1 subnets

O       1.1.1.1 [110/65] via 13.13.13.1, 00:07:21, 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:04:20, 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:07:21, Serial0/0.13

13.0.0.0/24 is subnetted, 1 subnets

C       13.13.13.0 is directly connected, Serial0/0.13

 

  • OSPF Network Point to multipoint

Masih menggunakan topologi lab sebelumnya.

konfigurasi

R1

router ospf 1

router-id 1.1.1.1

log-adjacency-changes

network 0.0.0.0 255.255.255.255 area 0

Network 12.0.0.0

interface Serial0/0

ip address 123.123.123.1 255.255.255.0

encapsulation frame-relay

ip ospf network point-to-multipoint

ip ospf priority 255

clock rate 2000000

frame-relay map ip 123.123.123.3 103 broadcast

frame-relay map ip 123.123.123.2 102 broadcast

no frame-relay inverse-arp

R1#sh ip ospf neighbor

Neighbor ID     Pri   State           Dead Time   Address         Interface

3.3.3.3           0   FULL/  –        00:01:36    123.123.123.3   Serial0/0

2.2.2.2           0   FULL/  –        00:01:32    123.123.123.2   Serial0/0

R2

interface Serial0/0

ip address 123.123.123.2 255.255.255.0

encapsulation frame-relay

ip ospf network point-to-multipoint

ip ospf priority 0

clock rate 2000000

frame-relay map ip 123.123.123.3 201

frame-relay map ip 123.123.123.1 201 broadcast

router ospf 1

router-id 1.1.1.1

log-adjacency-changes

network 0.0.0.0 255.255.255.255 area 0

R2#sh ip ospf neighbor

Neighbor ID     Pri   State           Dead Time   Address         Interface

1.1.1.1           0   FULL/  –        00:01:48    123.123.123.1   Serial0/0

R3

interface Serial0/0

ip address 123.123.123.3 255.255.255.0

encapsulation frame-relay

ip ospf network point-to-multipoint

ip ospf priority 0

clock rate 2000000

frame-relay map ip 123.123.123.2 301

frame-relay map ip 123.123.123.1 301 broadcast

no frame-relay inverse-arp

interface Serial0/0

ip address 123.123.123.3 255.255.255.0

encapsulation frame-relay

ip ospf network point-to-multipoint

ip ospf priority 0

clock rate 2000000

frame-relay map ip 123.123.123.2 301

frame-relay map ip 123.123.123.1 301 broadcast

no frame-relay inverse-arp

R3#sh ip ospf neighbor

Neighbor ID     Pri   State           Dead Time   Address         Interface

1.1.1.1           0   FULL/  –        00:01:38    123.123.123.1   Serial0/0

R3#sh 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

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

O       2.2.2.2 [110/129] via 123.123.123.1, 00:07:40, 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: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

 

  • OSPF Network Point to multipoint Non Broadcast

Topologi  yang digunakan juga masih sama dengan yang digunakan pada lab sebelumnya.

Konfigurasi

R1

interface Serial0/0

ip address 123.123.123.1 255.255.255.0

encapsulation frame-relay

ip ospf network point-to-multipoint non-broadcast

ip ospf priority 255

clock rate 2000000

!

router ospf 1

router-id 1.1.1.1

log-adjacency-changes

network 0.0.0.0 255.255.255.255 area 0

neighbor 123.123.123.3

neighbor 123.123.123.2

R1#sh ip ospf neighbor

Neighbor ID     Pri   State           Dead Time   Address         Interface

3.3.3.3           0   FULL/  –        00:01:39    123.123.123.3   Serial0/0

2.2.2.2           0   FULL/  –        00:01:39    123.123.123.2   Serial0/0

R2

interface Serial0/0

ip address 123.123.123.2 255.255.255.0

encapsulation frame-relay

ip ospf network point-to-multipoint non-broadcast

ip ospf priority 0

clock rate 2000000

!

router ospf 2

router-id 2.2.2.2

log-adjacency-changes

network 0.0.0.0 255.255.255.255 area 0

R2#sh ip ospf neighbor

Neighbor ID     Pri   State           Dead Time   Address         Interface

1.1.1.1           0   FULL/  –        00:01:53    123.123.123.1   Serial0/0

R3

interface Serial0/0

ip address 123.123.123.3 255.255.255.0

encapsulation frame-relay

ip ospf network point-to-multipoint non-broadcast

ip ospf priority 0

router ospf 3

router-id 3.3.3.3

log-adjacency-changes

network 3.3.3.3 0.0.0.0 area 0

network 13.13.13.3 0.0.0.0 area 0

network 0.0.0.0 255.255.255.255 area 0

R3#sh ip ospf neighbor

Neighbor ID     Pri   State           Dead Time   Address         Interface

1.1.1.1           0   FULL/  –        00:01:52    123.123.123.1   Serial0/0

 

  • OSPF Network Point to multipoint Non Broadcast

Masih dengan topologi sebelumnya.

Konfigurasi

R2

R2(config)#ip route 0.0.0.0 0.0.0.0 23.23.23.3

R2(config)#router rip

R2(config-router)#redistribute static

R1

Gateway of last resort is 12.12.12.2 to network 0.0.0.0

1.0.0.0/32 is subnetted, 1 subnets

C       1.1.1.1 is directly connected, Loopback0

R    2.0.0.0/8 [120/1] via 12.12.12.2, 00:00:21, Serial0/0

R    3.0.0.0/8 [120/1] via 12.12.12.2, 00:00:21, Serial0/0

R    23.0.0.0/8 [120/1] via 12.12.12.2, 00:00:21, Serial0/0

12.0.0.0/24 is subnetted, 1 subnets

C       12.12.12.0 is directly connected, Serial0/0

R*   0.0.0.0/0 [120/1] via 12.12.12.2, 00:00:18, Serial0/0  class FREEK

 

  • OSPF Filtering – Distribute list

 

Tambahkan konfig  di R2 :

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

R1(config)#access-list 1 permit  0.0.0.1 255.255.255.254

R1(config)#router ospf 1

R1(config-router)#distribute-list 1 in

R1(config-router)#distribute-list 1 out

Verifikasi

R1#sh 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

1.0.0.0/32 is subnetted, 1 subnets

C       1.1.1.1 is directly connected, Loopback0

100.0.0.0/32 is subnetted, 3 subnets

O       100.100.100.5 [110/65] via 123.123.123.2, 00:01:41, Serial0/0

O       100.100.100.1 [110/65] via 123.123.123.2, 00:01:41, Serial0/0

O       100.100.100.3 [110/65] via 123.123.123.2, 00:01:41, Serial0/0

3.0.0.0/32 is subnetted, 1 subnets

O       3.3.3.3 [110/65] via 123.123.123.3, 00:01:41, Serial0/0

123.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

O       123.123.123.3/32 [110/64] via 123.123.123.3, 00:01:43, Serial0/0

C       123.123.123.0/24 is directly connected, Serial0/0

R3#sh 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

1.0.0.0/32 is subnetted, 1 subnets

O       1.1.1.1 [110/65] via 123.123.123.1, 00:14:10, Serial0/0

2.0.0.0/32 is subnetted, 1 subnets

O       2.2.2.2 [110/129] via 123.123.123.1, 00:13:42, Serial0/0

100.0.0.0/32 is subnetted, 6 subnets

O       100.100.100.4 [110/129] via 123.123.123.1, 00:02:29, Serial0/0

O       100.100.100.5 [110/129] via 123.123.123.1, 00:02:29, Serial0/0

O       100.100.100.6 [110/129] via 123.123.123.1, 00:12:00, Serial0/0

O       100.100.100.1 [110/129] via 123.123.123.1, 00:02:29, Serial0/0

O       100.100.100.2 [110/129] via 123.123.123.1, 00:02:31, Serial0/0

O       100.100.100.3 [110/129] via 123.123.123.1, 00:02:31, 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:13:45, Serial0/0

O       123.123.123.1/32 [110/64] via 123.123.123.1, 00:14:13, Serial0/0

C       123.123.123.0/24 is directly connected, Serial0/0

About survivalccie

Sy hanya seorang manusia biasa, yang tidak mengenal rasa putus asa. Semuanya mungkin. Itu adalah prinsip sy yang pertama. Yang kedua adalah nothing to lose. That's why here i come CCIEEEEEE.......

Posted on Desember 9, 2011, in EIGRP dan OSPF. Bookmark the permalink. Tinggalkan komentar.

Tinggalkan komentar