OSPF Commands PDF
Document Details
Uploaded by BrilliantBegonia
Tags
Summary
This document lists OSPF commands and their uses. It details different commands to display various aspects of the OSPF routing protocol, helpful for networking or computer science students. The commands focus on displaying routes, neighbors, interface information, and statistics about the OSPF networks.
Full Transcript
Pastebin.com - Printed Paste ID: https://pastebin.com/ https://pastebin.com/print/hH6rXMx7 1. 2. > Diplay Which routes have been added to the IP routing table by OSPF? 3. 4. * show ip route ospf...
Pastebin.com - Printed Paste ID: https://pastebin.com/ https://pastebin.com/print/hH6rXMx7 1. 2. > Diplay Which routes have been added to the IP routing table by OSPF? 3. 4. * show ip route ospf 5. 6. > Diplay All routes in a router’s routing table 7. 8. * show ip route 9. 10. > Diplay The specific route for a single destination address or subnet 11. 12. * show ip route ip-address [mask] 13. 14. > Diplay a List of all routes known to the OSPF process 15. 16. * show ip ospf rib 17. 18. > Diplay A List of all (both static and dynamically discovered) OSPF neighbors 19. 20. * show ip ospf neighbor 21. 22. * show ip ospf neighbor detail 23. 24. > List interfaces on which OSPF has been enabled 25. 26. * show ip ospf interface 27. 28. * show ip ospf interface brief 29. 30. * show ip protocols (if enabled with the ip ospf area interface subcommand) 31. 32. > List the number of OSPF neighbors and fully adjacent neighbors known through aparticular interface 33. 34. * show ip ospf interface 35. 36. * show ip ospf interface brief 37. 38. * show ip ospf interface type number 39. 40. > Diplay The elapsed time since a neighborship was formed 41. 42. * show ip protocols 43. 44. * show ip ospf neighbor [detail] 45. 46. > Display The configured Hello timer for an interface 47. 48. * show ip ospf interface [type number] 49. 50. > Dispay The configured Dead interval timer for an interface 51. 52. * show ip ospf interface [type number] 53. 1 of 4 01/01/2025, 12:23 Pastebin.com - Printed Paste ID: https://pastebin.com/ https://pastebin.com/print/hH6rXMx7 54. > Display the current actual Dead timer for a neighbor 55. 56. * show ip ospf neighbor [detail] 57. 58. > Diplay a router’s RID 59. 60. * show ip ospf 61. 62. * show ip ospf database 63. 64. * show ip ospf statistics 65. 66. > Diplay a List of OSPF passive interfaces 67. 68. * show ip protocols 69. 70. > List traffic statistics about OSPF 71. 72. * show ip ospf statistics 73. 74. > Diplay the name and status of a virtual link 75. 76. * show ip ospf virtual-links 77. 78. * show ip ospf neighbor [detail] 79. 80. > Display a summary of the OSPF database. 81. 82. * show ip ospf database 83. 84. > Display all Type 1 Router LSAs known to a router. 85. 86. * show ip ospf database router 87. 88. > Display the details of a particular Type 1 Router LSA. 89. 90. * show ip ospf database router lsid 91. 92. > Display all Type 2 Network LSAs known to a router. 93. 94. * show ip ospf database network 95. 96. > Display the details of a particular Type 2 Router LSA. 97. 98. * show ip ospf database network lsid 99. 100. > Display all Type 3 Summary LSAs known to a router. 101. 102. * show ip ospf database summary 103. 104. > Display the details of a particular Type 3 Router LSA. 105. 106. * show ip ospf database summary lsid 2 of 4 01/01/2025, 12:23 Pastebin.com - Printed Paste ID: https://pastebin.com/ https://pastebin.com/print/hH6rXMx7 107. 108. > Display a list of OSPF-enabled interfaces on a router. 109. 110. * show ip ospf interface 111. 112. * show ip ospf interface brief 113. 114. * show ip ospf interface type number 115. 116. * show ip protocols 117. 118. > Determine on which interfaces a router has formed at least one OSPF neighborship. 119. 120. * show ip ospf interface 121. 122. * show ip ospf interface brief 123. 124. * show ip ospf interface type number 125. 126. > Determine the number of fully adjacent neighbors on an interface. 127. 128. * show ip ospf interface 129. 130. * show ip ospf interface brief 131. 132. * show ip ospf interface type number 133. 134. * show ip ospf neighbor 135. 136. * show ip ospf neighbor detail 137. 138. > Determine which transit networks connect to a Type 1 LSA. 139. 140. * show ip ospf database router [lsid] 141. 142. > Determine the router that created and flooded a Type 3 LSA. 143. 144. * show ip ospf database 145. 146. * show ip ospf database summary 147. 148. > Determine the router that created and flooded a Type 2 LSA. 149. 150. * show ip ospf database 151. 152. * show ip ospf database network 153. 154. > Determine the router that created and flooded a Type 1 LSA. 155. 156. * show ip ospf database 157. 158. * show ip ospf database router 159. 3 of 4 01/01/2025, 12:23 Pastebin.com - Printed Paste ID: https://pastebin.com/ https://pastebin.com/print/hH6rXMx7 160. > Display the IP address of the current DR and BDR on a LAN. 161. 162. * show ip ospf neighbor [detail] 163. 164. * show ip ospf interface type number 165. 166. > Display the OSPF interface cost (metric). 167. 168. * show ip ospf database router 169. 170. * show ip ospf interface [brief] 171. 172. > Display all OSPF-learned routes. 173. 174. * show ip route ospf 175. 176. > Display statistics about the number of SPF algorithm runs. 177. 178. * show ip ospf [statistics] 4 of 4 01/01/2025, 12:23