http://www.acit.in OSPF (Open Shortest Path First)
http://www.acit.in <ul><li>Open standard protocol </li></ul><ul><li>Successor of RIP </li></ul><ul><li>Classless routing p...
http://www.acit.in/ <ul><li>Hello packets are sent every 10 seconds </li></ul><ul><li>Faster Convergence  </li></ul><ul><l...
http://www.acit.in <ul><li>It maintains three tables : </li></ul><ul><li>Neighbor Table </li></ul><ul><li>Neighbor table c...
http://www.acit.in/ OSPF - Network Diagram LAN - 192.168.1.0/24 LAN – 192.168.2.0/24 LAN - 192.168.3.0/24 AREA 0 E0  192.1...
OSPF Packet Types <ul><li>Hello </li></ul><ul><li>DBD (Database Descriptor) </li></ul><ul><li>LSR (Link State Request) </l...
OSPF States <ul><li>DOWN </li></ul><ul><li>Init </li></ul><ul><li>2-Way </li></ul><ul><li>Ex-Start </li></ul><ul><li>Excha...
How OSPF Works http://www.acit.in HYD CHE 10.0.0.1/8 SO 10.0.0.2/8 S1 Ex-Start STATE Exchange State No, I will start excha...
http://www.acit.in/ <ul><li>Consumes More Memory and CPU processing </li></ul>Disadvantages of OSPF
http://www.acit.in/
Naveen Patel exit Hyderabad(config-if)# Hyderabad(config)# telnet 192.168.1.1 ================================ Welcome to ...
Naveen Patel Hyderabad(config)# router ospf 1 Hyderabad(config-router)# Hyderabad(config-router)# network 192.168.1.0 0.0....
Naveen Patel show ip route Hyderabad# Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, ...
Naveen Patel show ip ospf database Hyderabad# OSPF Router with ID (192.168.1.1) (Process ID 1) Router Link States (Area 0)...
Naveen Patel Chennai(config-if)# Chennai(config-if)# ================================ Welcome to Chennai Router ==========...
Naveen Patel Chennai(config)# router ospf 2 Chennai(config-router)# Chennai(config-router)# network 192.168.2.0 0.0.0.255 ...
Naveen Patel show ip route Chennai# Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX...
Naveen Patel show ip ospf database Chennai# OSPF Router with ID (192.168.2.1) (Process ID 2) Router Link States (Area 0) L...
Naveen Patel exit Banglore(config-if)# Banglore(config)# ================================ Welcome to Banglore Router =====...
Naveen Patel Banglore(config)# router ospf 1 Banglore(config-router)# Banglore(config-router)# network 192.168.3.0 0.0.0.2...
Naveen Patel show ip route Banglore# Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, E...
Naveen Patel show ip ospf database Banglore# OSPF Router with ID (192.168.3.1) (Process ID 1) Router Link States (Area 0) ...
Naveen Patel ping 192.168.3.10 Hyderabad# Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.3.10, t...
Naveen Patel ping 192.168.1.10 Chennai# Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.10, tim...
Naveen Patel ping 192.168.1.10 Banglore# Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.10, ti...
Upcoming SlideShare
Loading in …5
×

acit mumbai - ospf rouitng

1,272 views
1,123 views

Published on

Acit offer various certification courses like CCNA, CCNA SECURITY, CCNA VOICE, CCNP, CCIP, CCSP, CCVP, CCIE RS, CCIE SP, CCIE SEC, CHECKPOINT, MCITP, AND MORE

Published in: Technology, Travel
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,272
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
96
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

acit mumbai - ospf rouitng

  1. 1. http://www.acit.in OSPF (Open Shortest Path First)
  2. 2. http://www.acit.in <ul><li>Open standard protocol </li></ul><ul><li>Successor of RIP </li></ul><ul><li>Classless routing protocol </li></ul><ul><li>Uses Shortest Path First (SPF) Algorithm </li></ul><ul><li>Updates are sent through Multicast IP address 224.0.0.5 </li></ul><ul><li>Administrative distance is 110 </li></ul><ul><li>Metric = Cost =10 8 /Bandwidth in bps (CISCO) </li></ul>Open Shortest Path First
  3. 3. http://www.acit.in/ <ul><li>Hello packets are sent every 10 seconds </li></ul><ul><li>Faster Convergence </li></ul><ul><li>Hierarchical design with Multiple Areas </li></ul><ul><li>Area 0 is called the backbone area </li></ul><ul><li>Router ID </li></ul><ul><li>The highest IP address of the active physical interface of the router is elected as Router ID. </li></ul><ul><li>If logical interface is configured, the highest IP address of the logical interface is elected as Router ID </li></ul>OSPF (contd..)
  4. 4. http://www.acit.in <ul><li>It maintains three tables : </li></ul><ul><li>Neighbor Table </li></ul><ul><li>Neighbor table contains information about the directly connected OSPF neighbors forming adjacency. </li></ul><ul><li>Database table </li></ul><ul><li>Database table contains information about the entire view of the topology with respect to each router. </li></ul><ul><li>Routing information Table </li></ul><ul><li>Routing table contains information about the best path calculated by the shortest path first algorithm in the database table. </li></ul>OSPF Tables
  5. 5. http://www.acit.in/ OSPF - Network Diagram LAN - 192.168.1.0/24 LAN – 192.168.2.0/24 LAN - 192.168.3.0/24 AREA 0 E0 192.168.1.1/24 E0 192.168.2.1/24 E0 192.168.3.1/24 10.0.0.1/8 S0 S1 10.0.0.2/8 11.0.0.1/8 S0 S1 11.0.0.2/8 CHE HYD BAN
  6. 6. OSPF Packet Types <ul><li>Hello </li></ul><ul><li>DBD (Database Descriptor) </li></ul><ul><li>LSR (Link State Request) </li></ul><ul><li>LSU (Link State Update) </li></ul><ul><li>LSAck (Link State Acknowledge) </li></ul>http://www.acit.in/
  7. 7. OSPF States <ul><li>DOWN </li></ul><ul><li>Init </li></ul><ul><li>2-Way </li></ul><ul><li>Ex-Start </li></ul><ul><li>Exchange </li></ul><ul><li>Loading </li></ul><ul><li>Full </li></ul>http://www.acit.in/
  8. 8. How OSPF Works http://www.acit.in HYD CHE 10.0.0.1/8 SO 10.0.0.2/8 S1 Ex-Start STATE Exchange State No, I will start exchange because I have a higher router ID I will start exchange because I have router ID 172.16.0.1 Here is a summary of my link-state database Here is a summary of my link-state database
  9. 9. http://www.acit.in/ <ul><li>Consumes More Memory and CPU processing </li></ul>Disadvantages of OSPF
  10. 10. http://www.acit.in/
  11. 11. Naveen Patel exit Hyderabad(config-if)# Hyderabad(config)# telnet 192.168.1.1 ================================ Welcome to Hyderabad Router ================================ User Access Verification password : **** **** enable configure terminal interface serial 0 ip address 10.0.0.1 255.0.0.0 no shut clockrate 64000 encapsulation hdlc Hyderabad> password : Hyderabad# Enter configuration commands, one per line. End with CNTL/Z. Hyderabad(config)# Hyderabad(config-if)# Hyderabad(config-if)# Hyderabad(config-if)# Hyderabad(config-if)# Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. C:> Connecting ..... Directly Connected Networks on HYDERABAD Router 192.168.1.0 10.0.0.0
  12. 12. Naveen Patel Hyderabad(config)# router ospf 1 Hyderabad(config-router)# Hyderabad(config-router)# network 192.168.1.0 0.0.0.255 area 0 Hyderabad(config-router)# network 10.0.0.0 0.255.255.255 area 0 no ip routing Hyderabad(config)# Hyderabad(config)# ip routing Configuring OSPF Router(config)# router ospf <pid> Router(config-router)# network <Network ID> <wildcard mask> area <area id>
  13. 13. Naveen Patel show ip route Hyderabad# 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,*- candidate default U - per-user static route, o - ODR Gateway of last resort is not set C 10.0.0.0/8 is directly connected, Serial0 O 11.0.0.0/8 [110/128] via 10.0.0.2, 00:00:36, Serial0 C 192.168.1.0/24 is directly connected, Ethernet0 O 192.168.2.0/24 [110/74] via 10.0.0.2, 00:00:36, Serial0 O 192.168.3.0/24 [110/138] via 10.0.0.2, 00:00:36, Serial0 Hyderabad# ^ Z O – for OSPF routes 110 is nothing but Administrative Distance Metric of OSPF Cost Hyderabad(config)# router ospf 1 Hyderabad(config-router)# Hyderabad(config-router)# network 192.168.1.0 0.0.0.255 area 0 Hyderabad(config-router)# network 10.0.0.0 0.255.255.255 area 0 no ip routing Hyderabad(config)# Hyderabad(config)# ip routing
  14. 14. Naveen Patel show ip ospf database Hyderabad# OSPF Router with ID (192.168.1.1) (Process ID 1) Router Link States (Area 0) Link ID ADV Router Age Seq# Checksum Link 192.168.1.1 192.168.1.1 790 0x80000003 0x897B 3 192.168.2.1 192.168.2.1 234 0x80000005 0x542 5 192.168.3.1 192.168.3.1 232 0x80000003 0xD328 3 Hyderabad# show ip ospf neighbor Neighbor ID Pri State Dead Time Address 192.168.2.1 1 FULL/ - 00:00:36 10.0.0.2 Hyderabad#
  15. 15. Naveen Patel Chennai(config-if)# Chennai(config-if)# ================================ Welcome to Chennai Router ================================ User Access Verification password : **** **** enable configure terminal ip address 10.0.0.2 255.0.0.0 no shut encapsulation hdlc interface serial 0 Chennai> password : Chennai# Enter configuration commands, one per line. End with CNTL/Z. Chennai(config)# Chennai(config-if)# Chennai(config-if)# Chennai(config-if)# Chennai(config-if)# Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. C:> Connecting ..... Chennai(config-if)# telnet 192.168.2.1 interface serial 1 ip address 11.0.0.1 255.0.0.0 no shut encapsulation hdlc Directly Connected Networks on CHENNAI Router 192.168.2.0 10.0.0.0 11.0.0.0
  16. 16. Naveen Patel Chennai(config)# router ospf 2 Chennai(config-router)# Chennai(config-router)# network 192.168.2.0 0.0.0.255 area 0 Chennai(config-router)# network 10.0.0.0 0.255.255.255 area 0 no ip routing Chennai(config)# Chennai(config)# ip routing network 11.0.0.0 0.255.255.255 area 0 Chennai(config-router)# Configuring OSPF Router(config)# router ospf <pid> Router(config-router)# network <Network ID> <wildcard mask> area <area id>
  17. 17. Naveen Patel show ip route Chennai# 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,*- candidate default U - per-user static route, o - ODR Gateway of last resort is not set C 10.0.0.0/8 is directly connected, Serial1 C 11.0.0.0/8 is directly connected, Serial0 O 192.168.1.0/24 [110/74] via 10.0.0.1, 00:01:33, Serial1 C 192.168.2.0/24 is directly connected, Ethernet0 O 192.168.3.0/24 [110/74] via 11.0.0.2, 00:01:33, Serial0 Chennai# ^ Z O – for OSPF routes 110 is nothing but Administrative Distance Metric of OSPF Cost Chennai(config)# router ospf 2 Chennai(config-router)# Chennai(config-router)# network 192.168.2.0 0.0.0.255 area 0 Chennai(config-router)# network 10.0.0.0 0.255.255.255 area 0 no ip routing Chennai(config)# Chennai(config)# ip routing network 11.0.0.0 0.255.255.255 area 0 Chennai(config-router)#
  18. 18. Naveen Patel show ip ospf database Chennai# OSPF Router with ID (192.168.2.1) (Process ID 2) Router Link States (Area 0) Link ID ADV Router Age Seq# Checksum Link 192.168.1.1 192.168.1.1 1253 0x80000003 0x897B 3 192.168.2.1 192.168.2.1 695 0x80000005 0x542 5 192.168.3.1 192.168.3.1 693 0x80000003 0xD328 3 Chennai # show ip ospf neighbor Neighbor ID Pri State Dead Time Address 192.168.3.1 1 FULL/ - 00:00:35 11.0.0.2 192.168.1.1 1 FULL/ - 00:00:32 10.0.0.1 Chennai#
  19. 19. Naveen Patel exit Banglore(config-if)# Banglore(config)# ================================ Welcome to Banglore Router ================================ User Access Verification password : **** **** enable configure terminal ip address 11.0.0.2 255.0.0.0 no shut clockrate 64000 encapsulation hdlc Banglore> password : Banglore# Enter configuration commands, one per line. End with CNTL/Z. Banglore(config)# Banglore(config-if)# Banglore(config-if)# Banglore(config-if)# Banglore(config-if)# Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. C:> Connecting ..... telnet 192.168.3.1 interface serial 1 Directly Connected Networks on Banglore Router 192.168.3.0 11.0.0.0
  20. 20. Naveen Patel Banglore(config)# router ospf 1 Banglore(config-router)# Banglore(config-router)# network 192.168.3.0 0.0.0.255 area 0 Banglore(config-router)# no ip routing Banglore(config)# Banglore(config)# ip routing network 11.0.0.0 0.255.255.255 area 0 Configuring OSPF Router(config)# router ospf <pid> Router(config-router)# network <Network ID> <wildcard mask> area <area id>
  21. 21. Naveen Patel show ip route Banglore# 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,*- candidate default U - per-user static route, o - ODR Gateway of last resort is not set O 10.0.0.0/8 [110/128] via 11.0.0.1, 00:02:09, Serial1 C 11.0.0.0/8 is directly connected, Serial1 O 192.168.1.0/24 [110/138] via 11.0.0.1, 00:02:09, Serial1 O 192.168.2.0/24 [110/74] via 11.0.0.1, 00:02:09, Serial1 C 192.168.3.0/24 is directly connected, Ethernet0 Banglore# ^ Z O – for OSPF routes 110 is nothing but Administrative Distance Metric of OSPF Cost Banglore(config)# router ospf 1 Banglore(config-router)# Banglore(config-router)# network 192.168.3.0 0.0.0.255 area 0 Banglore(config-router)# no ip routing Banglore(config)# Banglore(config)# ip routing network 11.0.0.0 0.255.255.255 area 0
  22. 22. Naveen Patel show ip ospf database Banglore# OSPF Router with ID (192.168.3.1) (Process ID 1) Router Link States (Area 0) Link ID ADV Router Age Seq# Checksum Link 192.168.1.1 192.168.1.1 1506 0x80000003 0x897B 3 192.168.2.1 192.168.2.1 948 0x80000005 0x542 5 192.168.3.1 192.168.3.1 944 0x80000003 0xD328 3 Banglore# show ip ospf neighbor Neighbor ID Pri State Dead Time Address 192.168.2.1 1 FULL/ - 00:00:37 11.0.0.1 Banglore#
  23. 23. Naveen Patel ping 192.168.3.10 Hyderabad# Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.3.10, timeout is 2 seconds: Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms Hyderabad# !!!!! ping 192.168.2.10 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.2.10, timeout is 2 seconds: Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms Hyderabad# !!!!!
  24. 24. Naveen Patel ping 192.168.1.10 Chennai# Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.10, timeout is 2 seconds: Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms Chennai# !!!!! ping 192.168.3.10 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.3.10, timeout is 2 seconds: Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms Chennai# !!!!!
  25. 25. Naveen Patel ping 192.168.1.10 Banglore# Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.10, timeout is 2 seconds: Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms Banglore# !!!!! ping 192.168.2.10 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.2.10, timeout is 2 seconds: Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms Banglore# !!!!!

×