Friday, April 11, 2014

Cisco OSPF Routing

Setelah sebelumnya coba config RIP, sekarang mau coba config OSPF di cisco packet tracer.
Apa itu OSPF? monggo main-main kesini :D

Oke, mari kita lanjut ke topologi. Masih sama kok seperti topologi pada RIP sebelumnya, hanya beda di routing nya aja... hehe..



  • Configure IP pada R1



  • Configure IP pada R2

  • Configure IP pada R3

  • Configure OSPF pada R1

  • Configure OSPF pada R2 


  • Configure OSPF pada R3 


Pada OSPF ini yang kita gunakan bukanlah subnet mask, tetapi wildcard mask...
Apa itu wildcard mask? monggo main kesini .. (efek males ngetik..) :p
  • Test ping PC 1

  • Test ping PC 2
  • Test pign PC 3

Sekarang kita lihat route pada masing-masing router:


R1#sh ip route


Codes: L - local, 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, E - EGP
       i - IS-IS, 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

     10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C       10.10.10.0/24 is directly connected, GigabitEthernet0/0
L       10.10.10.1/32 is directly connected, GigabitEthernet0/0
     172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks
C       172.16.0.0/30 is directly connected, Serial0/0/1
L       172.16.0.1/32 is directly connected, Serial0/0/1
C       172.16.1.0/30 is directly connected, Serial0/0/0
L       172.16.1.1/32 is directly connected, Serial0/0/0
O    192.168.10.0/24 [110/65] via 172.16.1.2, 00:04:45, Serial0/0/0
O    192.168.20.0/24 [110/65] via 172.16.0.2, 00:02:58, Serial0/0/1

R2#sh ip route
Codes: L - local, 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, E - EGP
       i - IS-IS, 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

     10.0.0.0/24 is subnetted, 1 subnets
O       10.10.10.0/24 [110/65] via 172.16.1.1, 00:12:26, Serial0/0/0
     172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
O       172.16.0.0/30 [110/128] via 172.16.1.1, 00:12:26, Serial0/0/0
C       172.16.1.0/30 is directly connected, Serial0/0/0
L       172.16.1.2/32 is directly connected, Serial0/0/0
     192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks
C       192.168.10.0/24 is directly connected, GigabitEthernet0/0
L       192.168.10.1/32 is directly connected, GigabitEthernet0/0
O    192.168.20.0/24 [110/129] via 172.16.1.1, 00:10:04, Serial0/0/0

R3#sh ip route
Codes: L - local, 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, E - EGP
       i - IS-IS, 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

     10.0.0.0/24 is subnetted, 1 subnets
O       10.10.10.0/24 [110/65] via 172.16.0.1, 00:11:18, Serial0/0/0
     172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
C       172.16.0.0/30 is directly connected, Serial0/0/0
L       172.16.0.2/32 is directly connected, Serial0/0/0
O       172.16.1.0/30 [110/128] via 172.16.0.1, 00:11:18, Serial0/0/0
O    192.168.10.0/24 [110/129] via 172.16.0.1, 00:11:18, Serial0/0/0
     192.168.20.0/24 is variably subnetted, 2 subnets, 2 masks
C       192.168.20.0/24 is directly connected, GigabitEthernet0/0
L       192.168.20.1/32 is directly connected, GigabitEthernet0/0

Ket [110/128], [110/129], [110/65]  :
- 110 = Administrative Distance
- 128,129, 65 = Cost

Yap, Selesai sudah...

Kalau ada yang salah mohon dikoreksi...

1 comment: