OSPF Dynamic Routing :
- this dynamic routing protocol is inserteed in Link State category, where the best route has calculated by the number of routers that pass or track bandwidth calculation. to configuring OSRF routing protocol enough to register the network address that is connected directly with the wildcard mask and will be in exchange routing tables to neighbors to update / introduce network address.
- The Software that i use is cisco packet tracer v.5.3
- Step by step Routers Configuration :
R1 :
R1>en
R1#conf t
R1(config)#router ospf 10
R1(config-router)#network 192.168.1.0 0.0.0.255 area 0
R1(config-router)#network 10.1.1.0 0.0.0.3 area 0
R1(config-router)#network 10.1.1.8 0.0.0.3 area 0
R2 :
R2>en
R2#conf t
R2(config)#router ospf 5
R2(config-router)#network 192.168.2.0 0.0.0.255 area 0
R2(config-router)#network 10.1.1.0 0.0.0.3 area 0
R2(config-router)#network 10.1.1.4 0.0.0.3 area 0
R3 :
R3>en
R3#conf t
R3(config)#router ospf 15
R3(config-router)#network 192.168.3.0 0.0.0.255 area 0
R3(config-router)#network 10.1.1.4 0.0.0.3 area 0
R3(config-router)#network 10.1.1.8 0.0.0.3 area 0
Routing table
R1 :
R1#sh ip route
Codes: C - connected, S - static, I - IGRP, 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/30 is subnetted, 3 subnets
C 10.1.1.0 is directly connected, Serial2/0
O 10.1.1.4 [110/1562] via 10.1.1.2, 00:05:37, Serial2/0
[110/1562] via 10.1.1.9, 00:00:36, Serial3/0
C 10.1.1.8 is directly connected, Serial3/0
C 192.168.1.0/24 is directly connected, FastEthernet0/0
O 192.168.2.0/24 [110/782] via 10.1.1.2, 00:05:37, Serial2/0
O 192.168.3.0/24 [110/782] via 10.1.1.9, 00:00:36, Serial3/0
R2 :
R2#sh ip route
Codes: C - connected, S - static, I - IGRP, 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/30 is subnetted, 3 subnets
C 10.1.1.0 is directly connected, Serial2/0
C 10.1.1.4 is directly connected, Serial3/0
O 10.1.1.8 [110/1562] via 10.1.1.1, 00:06:12, Serial2/0
[110/1562] via 10.1.1.6, 00:01:06, Serial3/0
O 192.168.1.0/24 [110/782] via 10.1.1.1, 00:06:12, Serial2/0
C 192.168.2.0/24 is directly connected, FastEthernet0/0
O 192.168.3.0/24 [110/782] via 10.1.1.6, 00:01:16, Serial3/0
R3 :
R3#sh ip route
Codes: C - connected, S - static, I - IGRP, 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/30 is subnetted, 3 subnets
O 10.1.1.0 [110/1562] via 10.1.1.5, 00:01:43, Serial3/0
[110/1562] via 10.1.1.10, 00:01:33, Serial2/0
C 10.1.1.4 is directly connected, Serial3/0
C 10.1.1.8 is directly connected, Serial2/0
O 192.168.1.0/24 [110/782] via 10.1.1.10, 00:01:33, Serial2/0
O 192.168.2.0/24 [110/782] via 10.1.1.5, 00:01:43, Serial3/0
C 192.168.3.0/24 is directly connected, FastEthernet0/0
R2 default route configuration :
R2#conf t
R2(config)#ip route 0.0.0.0 0.0.0.0 222.124.22.17
Distribusikan default route ke semua router via R2 (Routing OSPF) :
R2(config)#router ospf 5
R2(config-router)#default-information originate
Routing table + default route :
R1:
R1#sh ip route
Codes: C - connected, S - static, I - IGRP, 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 10.1.1.2 to network 0.0.0.0
10.0.0.0/30 is subnetted, 3 subnets
C 10.1.1.0 is directly connected, Serial2/0
O 10.1.1.4 [110/1562] via 10.1.1.2, 01:27:59, Serial2/0
[110/1562] via 10.1.1.9, 01:27:59, Serial3/0
C 10.1.1.8 is directly connected, Serial3/0
C 192.168.1.0/24 is directly connected, FastEthernet0/0
O 192.168.2.0/24 [110/782] via 10.1.1.2, 01:27:59, Serial2/0
O 192.168.3.0/24 [110/782] via 10.1.1.9, 01:27:59, Serial3/0
O*E2 0.0.0.0/0 [110/1] via 10.1.1.2, 00:00:06, Serial2/0
R2 :
R2#sh ip route
Codes: C - connected, S - static, I - IGRP, 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 222.124.22.17 to network 0.0.0.0
10.0.0.0/30 is subnetted, 3 subnets
C 10.1.1.0 is directly connected, Serial2/0
C 10.1.1.4 is directly connected, Serial3/0
O 10.1.1.8 [110/1562] via 10.1.1.6, 01:39:47, Serial3/0
[110/1562] via 10.1.1.1, 01:39:47, Serial2/0
O 192.168.1.0/24 [110/782] via 10.1.1.1, 01:39:47, Serial2/0
C 192.168.2.0/24 is directly connected, FastEthernet0/0
O 192.168.3.0/24 [110/782] via 10.1.1.6, 01:39:47, Serial3/0
222.124.22.0/28 is subnetted, 1 subnets
C 222.124.22.16 is directly connected, Serial6/0
S* 0.0.0.0/0 [1/0] via 222.124.22.17
R3 :
R3#sh ip route
Codes: C - connected, S - static, I - IGRP, 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 10.1.1.5 to network 0.0.0.0
10.0.0.0/30 is subnetted, 3 subnets
O 10.1.1.0 [110/1562] via 10.1.1.10, 01:40:58, Serial2/0
[110/1562] via 10.1.1.5, 01:40:58, Serial3/0
C 10.1.1.4 is directly connected, Serial3/0
C 10.1.1.8 is directly connected, Serial2/0
O 192.168.1.0/24 [110/782] via 10.1.1.10, 01:40:58, Serial2/0
O 192.168.2.0/24 [110/782] via 10.1.1.5, 01:40:58, Serial3/0
C 192.168.3.0/24 is directly connected, FastEthernet0/0
O*E2 0.0.0.0/0 [110/1] via 10.1.1.5, 00:12:54, Serial3/0
Connection testing (PING) Tothe cloud IP (server)
R1 :
R1#ping 172.17.10.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.17.10.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 47/68/93 ms
R2 :
R2#ping 172.17.10.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.17.10.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 17/31/47 ms
R3 :
R3#ping 172.17.10.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.17.10.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 62/84/94 ms