YouTube2Text

ENSA M2 Single Area OSPFv2 Configuration — Transcript

by Santelmo · 10,606 words · 2,020 segments · language en · Watch on YouTube

Full transcript

  1. 0:04hi
  2. 0:05hello there welcome to single area ospf
  3. 0:08version 2 configuration
  4. 0:11now that you know about single area ospf
  5. 0:13version 2
  6. 0:15you can probably think of all the ways
  7. 0:17it could benefit your own network
  8. 0:20so as a state link protocol ospf
  9. 0:23is designed to not only find the fastest
  10. 0:26available route
  11. 0:27it is designed to create fast
  12. 0:31available route so if you prefer a bit
  13. 0:35of more control over some areas of your
  14. 0:38network
  15. 0:39ospf gives you several ways to manually
  16. 0:42override the drl action process
  17. 0:44and create your own preferred routes
  18. 0:48so with ospf your network can combine
  19. 0:52the automated process with your own
  20. 0:54choices to make a network that you could
  21. 0:56troubleshoot
  22. 0:58in your slip all right so you know
  23. 1:02you want to learn about this so let's
  24. 1:05get it on
  25. 1:08all right so for the module objectives
  26. 1:11so
  27. 1:12this topic or video lecture covers the
  28. 1:14single area ospf version to
  29. 1:16configuration
  30. 1:18so the objective would be at the end of
  31. 1:20this video lecture
  32. 1:21so you should be able to implement a
  33. 1:23single area ospf version 2
  34. 1:26in both point-to-point and broadcast
  35. 1:29multi-access network
  36. 1:31so sub-topics included on this video
  37. 1:34lectures are
  38. 1:35ospf router id the point-to-point ospf
  39. 1:39networks
  40. 1:40the multi-access ospf networks
  41. 1:44modify single area ospf version 2
  42. 1:47the default propagation and verify
  43. 1:51single area ospf version 2.
  44. 1:56all right so let's start with the first
  45. 1:59section
  46. 1:59so let's talk about the ospf router id
  47. 2:06okay so this would be our ospf reference
  48. 2:09topology
  49. 2:10so this will be utilized
  50. 2:13throughout the discussion okay so to get
  51. 2:17you understand not to get started
  52. 2:20this topic discusses the foundation of
  53. 2:22which ospf
  54. 2:24bases its enter process the ospf router
  55. 2:27id
  56. 2:28so the figure here shows the topology
  57. 2:31used
  58. 2:32for configuring ospf version 2 in this
  59. 2:34module
  60. 2:35so the routers in the topology have a
  61. 2:37starting configuration
  62. 2:39including interface addresses there is
  63. 2:42currently no static routing or dynamic
  64. 2:44routing configured on any of these
  65. 2:46routers
  66. 2:47so all interfaces on r1 r2 and r3
  67. 2:51except the loopback on r2 are within the
  68. 2:54ospf backbone
  69. 2:56okay so when you say backbone we're
  70. 3:00talking about
  71. 3:01area 0. so the isp router is used as a
  72. 3:04gateway to the internet
  73. 3:06of the routing domain okay
  74. 3:10so take note that on this topology the
  75. 3:13loopback interface is used
  76. 3:14to simulate a one okay or a one link to
  77. 3:18the internet
  78. 3:19and a line connected to each router so
  79. 3:22this is done to allow this topology to
  80. 3:24be duplicated
  81. 3:25for demonstration purposes and routers
  82. 3:28that only have
  83. 3:29two gigabit ethernet interfaces
  84. 3:35okay so router configuration mode for
  85. 3:39ospf so ospf version 2
  86. 3:43is enabled using the router ospf
  87. 3:46process id global configuration mode
  88. 3:48command
  89. 3:50so as shown in here so this is for r1
  90. 3:54here
  91. 3:54okay so the process id value represents
  92. 3:58the number between one to sixty five
  93. 4:00thousand five hundred thirty five so you
  94. 4:02can use
  95. 4:02any number within that range and is
  96. 4:05selected
  97. 4:06by the network administrator so the
  98. 4:09process id
  99. 4:11is locally significant which means
  100. 4:15that it does not have to be the same
  101. 4:18value
  102. 4:19on the other ospf routers to establish
  103. 4:22adjacencies
  104. 4:23with those neighbors so it is considered
  105. 4:26best practice to use the same process id
  106. 4:30on all the ospf routers okay
  107. 4:33now after entering the router ospf
  108. 4:38process id command as shown here so the
  109. 4:41router enters
  110. 4:42router configuration mode so as
  111. 4:44indicated by
  112. 4:46you've got r1 here config and then
  113. 4:49you've got the router
  114. 4:50okay so this this would be the prompt so
  115. 4:53enter a question mark
  116. 4:55okay so to view all the commands
  117. 4:57available in this mode
  118. 4:59so the list of commands shown here
  119. 5:02has been altered to display only the
  120. 5:04commands that are relevant
  121. 5:06to this module right
  122. 5:10okay so let's talk about the router id
  123. 5:14so an ospf router id is a 32-bit
  124. 5:18represented as an ipv4 address
  125. 5:21so the router id is used to uniquely
  126. 5:23identify an ospf router
  127. 5:26so all ospf packets include
  128. 5:29the router id of the originating router
  129. 5:32so every router requires a router id
  130. 5:36to participate in an ospf domain
  131. 5:39so the router id can be defined by an
  132. 5:42administrator or automatically assigned
  133. 5:45by the router
  134. 5:46so the router id is used by an ospf
  135. 5:49enabled router
  136. 5:51to do the following first participate in
  137. 5:54the synchronization of the ospf
  138. 5:57databases
  139. 5:58so during the exchange state the router
  140. 6:01with the highest router id
  141. 6:03will send their database description
  142. 6:06all right or the database descriptor or
  143. 6:08dvd packets
  144. 6:09first okay so
  145. 6:12next would be participate in the
  146. 6:15election
  147. 6:16of the designated router or dr
  148. 6:19so in a multi-access lan environment
  149. 6:22the router with the highest router id is
  150. 6:25elected the dr
  151. 6:27so the routing device where the second
  152. 6:29highest router id is elected as
  153. 6:32the backup designated router or bdr
  154. 6:36so the router that is not considered
  155. 6:40a dr or bdr is known to be a daughter's
  156. 6:44okay so take note that dr and bdr
  157. 6:47election is discussed in more detail
  158. 6:51later in this module
  159. 6:56okay so how about the router id order of
  160. 6:59precedence
  161. 7:00okay so but how does this router id
  162. 7:03determine
  163. 7:04the router id okay so as illustrated in
  164. 7:07the figure
  165. 7:09okay so cisco routers derived the router
  166. 7:12id
  167. 7:13based on one of the three criteria
  168. 7:16so that is in the following preferential
  169. 7:19order
  170. 7:20so first the router id is explicitly
  171. 7:24configured
  172. 7:25using the ospf router id
  173. 7:29rid router configuration mode command
  174. 7:32so the rid value is any 32-bit
  175. 7:35value expressed as an ipv4 address
  176. 7:40so this is the recommendation method to
  177. 7:42assign a router id
  178. 7:45okay second if the router id
  179. 7:48is not explicitly configured the router
  180. 7:51chooses the highest
  181. 7:53ipv4 address of any configured loopback
  182. 7:57interfaces
  183. 7:59okay so this is the next best
  184. 8:02alternative
  185. 8:03to assigning a router id
  186. 8:06okay so the third one would be if no
  187. 8:09loopback interfaces are configured then
  188. 8:12the router chooses the highest
  189. 8:13active ipv4 address of any of its
  190. 8:17physical interfaces all right
  191. 8:20so this is the least recommended method
  192. 8:24because it makes it more difficult for
  193. 8:27administrators
  194. 8:28to distinguish between specific routers
  195. 8:31now as shown here in the diagram so this
  196. 8:33summarizes what i have discussed
  197. 8:36okay so router id explicitly configured
  198. 8:39if yes
  199. 8:40that would be used as a router id so
  200. 8:43if not then the router will look for the
  201. 8:46loopback
  202. 8:47if the administrator has configured any
  203. 8:49lookback on the router
  204. 8:51and that would be used as the router id
  205. 8:54now assuming
  206. 8:55if you have multiple loopback configured
  207. 8:57in the router so
  208. 8:58the router will choose the highest ip
  209. 9:02address
  210. 9:02assigned to the loopback right
  211. 9:05now if in case you did not defined
  212. 9:09the router id okay nor
  213. 9:12the loopback interfaces then the router
  214. 9:16will choose
  215. 9:17the highest active ip address
  216. 9:20on the interface router okay
  217. 9:23so there is no instance that the router
  218. 9:26won't have error id
  219. 9:30okay next so how do we configure
  220. 9:35a loopback interface as the router id
  221. 9:38so in the reference topology presented
  222. 9:40earlier
  223. 9:41only the physical interfaces are
  224. 9:43configured and active
  225. 9:45so the loopback interfaces have not been
  226. 9:48configured so when ospf routing
  227. 9:52is enabled on the router the routers
  228. 9:54would pick
  229. 9:55the following highest active configured
  230. 9:58ipv4 address
  231. 9:59as the router id okay so
  232. 10:04if you are going to go back to our
  233. 10:06topology we'll have
  234. 10:08r1 r2 and r3 there okay
  235. 10:11so note that ospf does not need to be
  236. 10:15enabled in an interface
  237. 10:17for that interface to be chosen as the
  238. 10:19router id
  239. 10:21okay so instead of relying on a physical
  240. 10:25interface
  241. 10:26the router id can be assigned to a
  242. 10:28loopback interface
  243. 10:30so typically the ipv4
  244. 10:33address of this type of loopback
  245. 10:35interface
  246. 10:36should be configured using a 32-bit
  247. 10:39subnet mask
  248. 10:40okay so that is 255 the 255-255
  249. 10:45that so this effectively creates
  250. 10:49a host route so a 32-bit
  251. 10:52host route would not get advertised
  252. 10:55as a route to other ospf browsers
  253. 10:59okay now the example shows how to
  254. 11:02configure
  255. 11:03a loopback interface on r1 okay so
  256. 11:05interface
  257. 11:06loopback number okay so assuming that
  258. 11:09the router id was not explicitly
  259. 11:11configured
  260. 11:12or previously learned r1 will use the
  261. 11:15ipv4 address
  262. 11:171.1.1.1 as its router id
  263. 11:22all right so assume r1 has not yet
  264. 11:24learned
  265. 11:25a router id right so you can verify
  266. 11:30what the router id is of a router using
  267. 11:33the command show ib
  268. 11:34protocols so in there you can see the
  269. 11:36router id
  270. 11:38and in this case so we did not configure
  271. 11:43manually or explicitly a router id
  272. 11:46then after we configured a loopback that
  273. 11:49would be fetched as a router id
  274. 11:52okay next
  275. 11:56so in the figure
  276. 11:59so the topology has been updated to show
  277. 12:01that our id for each of the router
  278. 12:03so r1 uses 1.1.1
  279. 12:06okay so r2 uses 2.2.2
  280. 12:11and r3 uses 3.3.3
  281. 12:16now we use the router id our id router
  282. 12:18configuration mode command
  283. 12:20to manually assign a router id in this
  284. 12:23example
  285. 12:24the router id 1.1.2.1 is assigned to r1
  286. 12:28so we use the command show iprotocols
  287. 12:31command
  288. 12:32to verify the router id for each of the
  289. 12:35router here
  290. 12:37okay so like what you see here show ivy
  291. 12:40protocols
  292. 12:40so router id is 1.1.1 for r1
  293. 12:45okay so after we explicitly define it as
  294. 12:48a router id
  295. 12:491.1.1 that one
  296. 12:52all right
  297. 12:56okay so how do we modify a router id
  298. 13:00so after a router selects a router id
  299. 13:04an active ospf router does not allow the
  300. 13:07router id to be changed
  301. 13:09until the router is reloaded or the ospf
  302. 13:12process is reset
  303. 13:14okay now in the example here for r1
  304. 13:18the configured router id has been
  305. 13:20removed
  306. 13:21and the router is reloaded
  307. 13:25all right so how do we reload the router
  308. 13:28so you could use the clear ipo spf
  309. 13:30process
  310. 13:30okay reset all spf configurations or
  311. 13:33processes
  312. 13:34yes okay and then that's it
  313. 13:38all right so notice that the current
  314. 13:40router id
  315. 13:41is 10 okay dot
  316. 13:46that 10.1.1 which is the loopback
  317. 13:500 ip address
  318. 13:53all right so the router id should then
  319. 13:56be
  320. 13:571.1.1.1 so therefore r1 is configured
  321. 14:00with the command
  322. 14:01router id okay 1.1.1.1
  323. 14:06now notice how an informational message
  324. 14:09appears
  325. 14:10starting that the ospf process must be
  326. 14:13cleared
  327. 14:14or that the router must be reloaded
  328. 14:19right so the reason is because r1
  329. 14:22already has adjacencies
  330. 14:24with other neighbors using the router id
  331. 14:2810.10.1.1
  332. 14:31so those adjacencies must be
  333. 14:34renegotiated
  334. 14:36using the new router id with 1.1.1.1
  335. 14:41okay so what we're going to do is to use
  336. 14:44the
  337. 14:45clear ip ospf process command to reset
  338. 14:48the adjacencies
  339. 14:49now you can then verify the r1 is using
  340. 14:52the new router id command
  341. 14:54with the show ip protocols command
  342. 14:56pipeline okay
  343. 14:58so that is to simplify the output right
  344. 15:02to display only the router id section
  345. 15:05okay so clearing the ospr process
  346. 15:08is the preferred method to reset that id
  347. 15:12right so take note that the router id
  348. 15:14command is the preferred
  349. 15:16method however some older versions of
  350. 15:19the ios do not recognize the router id
  351. 15:22command
  352. 15:24okay so aside from the clear ipo spf
  353. 15:27process
  354. 15:28okay so after all the clearing of the
  355. 15:31usb
  356. 15:32ospf process and it doesn't take effect
  357. 15:35on the router so maybe you could try uh
  358. 15:38saving your configuration and
  359. 15:40restarting or resetting the router
  360. 15:42itself
  361. 15:46okay now let's move on to the next
  362. 15:48section
  363. 15:49so the next section talks about
  364. 15:51point-to-point ospf
  365. 15:53networks okay
  366. 15:57so let's talk about the network command
  367. 16:00syntax okay so one type of network that
  368. 16:04uses ospf
  369. 16:06is the point-to-point network so you can
  370. 16:09specify the interfaces that belongs to a
  371. 16:11point-to-point network
  372. 16:13by configuring the network command
  373. 16:16so you can also configure ospf directly
  374. 16:19on the interface with the ipo spf
  375. 16:22command as you will see later
  376. 16:26okay so both commands are used to
  377. 16:28determine
  378. 16:30which interfaces participate in the
  379. 16:32routing process
  380. 16:34for an ospf version 2 area so the basic
  381. 16:37syntax
  382. 16:38for the network command is as follows
  383. 16:41okay so you've got router config router
  384. 16:44shift
  385. 16:45network network address
  386. 16:48wildcard mask area and
  387. 16:51the area id okay
  388. 16:55so the network address wildcard mask
  389. 16:58syntax is used to enable
  390. 17:00ospf on interfaces
  391. 17:03any interfaces on the router that match
  392. 17:06the network
  393. 17:07address in the network command are
  394. 17:10enabled to send and receive
  395. 17:11ospf packets so the area area id syntax
  396. 17:16refers to ospf area
  397. 17:18so when configuring a single area osp of
  398. 17:21version 2
  399. 17:22the network command must be configured
  400. 17:25with the same
  401. 17:26area id value on all routers
  402. 17:30okay so although any area id can be used
  403. 17:35it is a good practice to use an area id
  404. 17:38of zero
  405. 17:39with single area or spf version two
  406. 17:43okay so this is in convention okay
  407. 17:46making it easier if the network is
  408. 17:49later altered to support the multi-area
  409. 17:52ospf version
  410. 17:57all right so how about the wildcard mask
  411. 18:01okay so the wildcard mask is typically
  412. 18:04an inverse of the subnet mask configured
  413. 18:06on the interface so in a subnet mask
  414. 18:09binary 1 is equal to a match and binary
  415. 18:120
  416. 18:13is not a match so in a wildcard mask
  417. 18:16the reverse is true as shown here
  418. 18:20all right so if the subnet mask is
  419. 18:24two five five the two five five the two
  420. 18:25five five okay
  421. 18:29so you have to subtract it from
  422. 18:32two five five the two five five the two
  423. 18:34five five the two five five
  424. 18:36okay so the wild card mask would be
  425. 18:40uh 0.0.0.0 it should be zero
  426. 18:45okay so
  427. 18:49so the wildcard mask bit zero matches
  428. 18:52the corresponding bit value
  429. 18:54in the address and the wildcard mask bit
  430. 18:571
  431. 18:57ignores the corresponding bit value in
  432. 18:59the address
  433. 19:01so the easiest method for calculating a
  434. 19:03wildcard mask is to subtract
  435. 19:06the subnet or the network subnet mask
  436. 19:08from 255
  437. 19:09the two five five the two five five the
  438. 19:12two five five
  439. 19:14okay so as shown forced last twenty
  440. 19:16first last 26
  441. 19:17subnet masks in the figure
  442. 19:22all right so we have here some
  443. 19:25[Music]
  444. 19:27uh correction on this powerpoint
  445. 19:29presentation so if it is just last two
  446. 19:31and a six
  447. 19:32okay so subnet mask first last 26 would
  448. 19:36be
  449. 19:37255.255. 255.192
  450. 19:42right so subtracting it from
  451. 19:46255.255.255.255.
  452. 19:49all right so let's do some
  453. 19:52adjustment on this power point here okay
  454. 19:56so take note if it is last 24
  455. 20:00that's two five five the two five five
  456. 20:01the two five five that
  457. 20:04this should be zero here
  458. 20:08all right so subtracting it so therefore
  459. 20:11the wildguard mask
  460. 20:13first last 24 would be 0.0.0.255 there
  461. 20:20all right now first last 26 this should
  462. 20:23be
  463. 20:24192 here
  464. 20:27all right so it should be 192. okay so
  465. 20:30just change that to 192 here
  466. 20:33this last one is six okay so
  467. 20:36that would be okay subtracting it from
  468. 20:39two five five to two five five to two
  469. 20:40five five
  470. 20:41so that would be zero that zero that
  471. 20:43zero okay
  472. 20:45that all right it should be that
  473. 20:4863 okay
  474. 20:54that is first last 26 right
  475. 21:03okay so let's configure ospf using the
  476. 21:06network command
  477. 21:07so within the routing configuration mode
  478. 21:09there are two types
  479. 21:10to identify the interfaces that will
  480. 21:13participate
  481. 21:14in the ospf version 2 routing process so
  482. 21:17the figure shows the reference topology
  483. 21:20here
  484. 21:21okay now in the first example
  485. 21:24the wildcard mask identifies the
  486. 21:27interface
  487. 21:28based on the network address so any
  488. 21:31active interface
  489. 21:32that is configured with an ipv4 address
  490. 21:36belonging to the network will
  491. 21:37participate in the ospf version 2
  492. 21:39routing process
  493. 21:42okay now in here
  494. 21:45referring to these topology or given
  495. 21:47topology
  496. 21:48and our reference is on r1
  497. 21:51right now on r1 so of course
  498. 21:55we need to start with router ospf okay
  499. 21:58so 10
  500. 22:00network 10.10.1.0
  501. 22:050.0.0.255 area 0. so this is area 0 here
  502. 22:09so all of those should be area 0.
  503. 22:13okay now in defining the
  504. 22:16ospf so we care only about the directly
  505. 22:19connected networks
  506. 22:21and if we are going to evaluate r1 okay
  507. 22:23so look at r1 here
  508. 22:25so there are three networks connected to
  509. 22:28it so this would be the first network
  510. 22:30this would be the second network and
  511. 22:32this would be the third network here
  512. 22:34okay so the first network would be
  513. 22:3710.10.1.0
  514. 22:39which is the loopback zero here
  515. 22:42okay next would be 10.1.1.4
  516. 22:46which is the network between r1 and r2
  517. 22:50and 10.1.1.12 which
  518. 22:53is the network between r1 and r3
  519. 22:56alright so take note that
  520. 22:59the loopback network which is 10
  521. 23:021 1 or 10.10.1.0 is last 24 here
  522. 23:07so therefore the wild card mask would be
  523. 23:10a slash 24 so that's two five five that
  524. 23:12two five five the two five five the two
  525. 23:14five five
  526. 23:15minus two five five that two five five
  527. 23:17the two five five dot
  528. 23:19zero so that makes it zero that's zero
  529. 23:23that's zero dot two five pipe here
  530. 23:26right now this two here
  531. 23:29which is between r1 and r2
  532. 23:33right and of course also between r1 and
  533. 23:36r3 here
  534. 23:37these are both last 30 okay
  535. 23:41and that means that would be two five
  536. 23:44five all right so let me just write it
  537. 23:47here
  538. 23:48two five five okay so here with my
  539. 23:54um handwriting there two five five
  540. 23:57okay so i have a hard time using the
  541. 23:59mouse
  542. 24:00that slash 30 so 5 2
  543. 24:05okay so that means when we subtract it
  544. 24:08from 255
  545. 24:10okay that 255
  546. 24:15that 255
  547. 24:18okay that's two five five this will gl
  548. 24:22two of course you've got zero
  549. 24:25that's zero that's zero dot
  550. 24:28three so which are the wildcard masks
  551. 24:32here
  552. 24:34okay so take note that some ios versions
  553. 24:37allow the subnet mask to be entered
  554. 24:40instead of the wildcard mask
  555. 24:42so the ios then converts the subnet mask
  556. 24:45to the wildcard mask format all right
  557. 24:51okay so as an alternative
  558. 24:55okay so the second example shows
  559. 24:59how ospf version 2 can be enabled by
  560. 25:01specifying the exact
  561. 25:03interface ipb4 address using a quad
  562. 25:060 wildcard mask okay so
  563. 25:10entering network 10115
  564. 25:14right so you've got here
  565. 25:180.0.0.0 area 0 on r1
  566. 25:20which tells the router to enable
  567. 25:23interface
  568. 25:24gigabit ethernet 0 0 0
  569. 25:28for the routing process so as a result
  570. 25:31the ospf version 2 process will
  571. 25:33advertise the network
  572. 25:35that is on this interface 10
  573. 25:381 1 4 last 30. all right
  574. 25:43now the advantage of specifying the
  575. 25:46interface is that the wildcard mask
  576. 25:48calculation is not necessary
  577. 25:50so notice that in all cases
  578. 25:53the area argument specifies area zero
  579. 25:57so if you will observe here okay you've
  580. 26:00got one zero there
  581. 26:01so that means it is um
  582. 26:05more specific specifying the exact
  583. 26:07interface ipv4 address
  584. 26:10okay
  585. 26:11[Music]
  586. 26:14all right so next would be configure
  587. 26:17ospf
  588. 26:18using the ipo spf command okay
  589. 26:22now you can also configure ospf directly
  590. 26:25on the interface instead of using the
  591. 26:27network command
  592. 26:28so to configure ospf directly on the
  593. 26:31interface
  594. 26:32we use the ipo spf interface
  595. 26:36configuration mode command okay
  596. 26:39so the syntax is given here all right
  597. 26:44so router okay configure so ipo spf
  598. 26:47process id area and then you've got an
  599. 26:50area id
  600. 26:51now for r1 remove the network commands
  601. 26:54by using the no
  602. 26:55form of the network commands something
  603. 26:58like no network
  604. 26:5910 10 10 or 10 10 1 1
  605. 27:02okay zero zero zero zero area zero no
  606. 27:05network
  607. 27:06then one one five and then no network
  608. 27:08then one one fourteen
  609. 27:11okay and then go to each interface and
  610. 27:14configure ipo spf command
  611. 27:17as shown here so ipo spf 10
  612. 27:21area 0 okay so that is for interface
  613. 27:24gigabit ethernet 000
  614. 27:27interface gigabit 001 so
  615. 27:31in there you configured ipo spf 10 area
  616. 27:340
  617. 27:34but then most of the time we are using
  618. 27:37the network command
  619. 27:38all right so but then it's up to you you
  620. 27:40can use this um
  621. 27:42as an alternative of doing configuration
  622. 27:45okay
  623. 27:46for loopback 0 so ipo spf 10 area
  624. 27:49zero so it has the same effect
  625. 27:52right
  626. 27:57okay next would be let's talk about
  627. 28:00passive interface
  628. 28:02okay so by default ospf messages are
  629. 28:05forwarded out
  630. 28:07all ospf enabled interfaces so however
  631. 28:11these messages really only need to be
  632. 28:14sent out interfaces
  633. 28:16that are connecting to other ospf
  634. 28:18enabled routers
  635. 28:21now refer to the topology in the figure
  636. 28:23presented earlier
  637. 28:24ospf version 2 messages are forwarded
  638. 28:27out
  639. 28:28three loopback interfaces even though no
  640. 28:31ospf version to neighbor exists on this
  641. 28:35simulated lens so in a production
  642. 28:38network
  643. 28:39this loopbox would be physical
  644. 28:41interfaces to networks
  645. 28:43with users and traffic okay sending out
  646. 28:47unneeded messages on the lan affects the
  647. 28:50network in two ways as
  648. 28:52follows okay so first you've got
  649. 28:56an efficient right bandwidth
  650. 28:59so available bandwidth is consumed
  651. 29:01transporting unnecessary messages
  652. 29:05next would be inefficient use of
  653. 29:07resources
  654. 29:11okay so where's my pointer right so this
  655. 29:14is the second one
  656. 29:15inefficient use of resources
  657. 29:19so all devices on the lan must process
  658. 29:22and eventually discard the message
  659. 29:24so next would be increased security or
  660. 29:28risk
  661. 29:29so without additional ospf security
  662. 29:31configurations
  663. 29:33okay so ospf messages can be intercepted
  664. 29:36with packet snipping software so routing
  665. 29:39updates
  666. 29:40can be modified and sent back to the
  667. 29:42router corrupting the routing table
  668. 29:45with false metric that misdirect traffic
  669. 29:52okay
  670. 29:57all right so how do we configure
  671. 30:00a passive interface so we use the
  672. 30:03passive interface
  673. 30:05okay router configuration mode command
  674. 30:07to prevent
  675. 30:08transmission of routering messages
  676. 30:10through a router interface
  677. 30:12so but still allow that network to be
  678. 30:15advertised
  679. 30:16to the other routers so the
  680. 30:18configuration example identifies
  681. 30:20the r1 loopback okay
  682. 30:24the r1 loopback zero as
  683. 30:27passive okay so
  684. 30:30in here so router router ospf 10
  685. 30:34passive interface loopback zero so we
  686. 30:37are going to place
  687. 30:38loopback zero to a passive interface and
  688. 30:41therefore
  689. 30:42it will not receive any updates that is
  690. 30:45intended only
  691. 30:46for devices that is configured with ospf
  692. 30:50okay so usually okay so this passive
  693. 30:54interface command
  694. 30:55is being used if you are connecting a
  695. 30:57switch
  696. 30:58or a computer connected to that port
  697. 31:02but basically if you are connecting
  698. 31:05router okay so to another router we do
  699. 31:08not
  700. 31:09execute passive interface on that
  701. 31:11interface
  702. 31:12because it will not forward or it will
  703. 31:14not ascend or receive
  704. 31:17updates okay so for ospf
  705. 31:20all right now after this you could use
  706. 31:23the command show ip protocols
  707. 31:26okay so this is used to verify that the
  708. 31:29loopback zero interface is listed
  709. 31:32listed as passive here so below here
  710. 31:35so take note that passive interfaces
  711. 31:38they're listed loopback zero
  712. 31:44right
  713. 31:48okay so ospf point-to-point networks
  714. 31:51so by default cisco routers elect a dr
  715. 31:55and bdr on ethernet interfaces
  716. 31:58so even if there is only one other
  717. 32:01device on the link
  718. 32:03so you can verify this with a show ipo
  719. 32:05spf interface command
  720. 32:07so as shown here in the example for g00
  721. 32:11of r1 okay so as you can see here
  722. 32:15so show ipo spf interface g00
  723. 32:180 so network type is broadcast so that
  724. 32:22means
  725. 32:23it is on the multi-access
  726. 32:26network okay or an internet interface
  727. 32:31right so also you can see here the
  728. 32:34designated router id
  729. 32:36is 2.2.2 okay and the backup designated
  730. 32:39router id
  731. 32:40on that network would be 1.1.1
  732. 32:48all right so r1
  733. 32:51is the bdr and r2 is the tr
  734. 32:55okay so that is uh based on the output
  735. 32:57that we have earlier
  736. 32:59now the drbdr election process is
  737. 33:02unnecessary
  738. 33:04as there can only be two routers on the
  739. 33:06point-to-point network between
  740. 33:08r1 and r2 so notice in the output
  741. 33:13that the router has designated the
  742. 33:15network type as
  743. 33:16broadcast okay
  744. 33:20so to change this to a point-to-point
  745. 33:22network
  746. 33:24we use the interface configuration
  747. 33:25command ipo spf network
  748. 33:28point to point on all interfaces where
  749. 33:31you want to disable the drbdr election
  750. 33:33process
  751. 33:35right so the example below or in here
  752. 33:39shows this configuration for r1 so the
  753. 33:42ospf neighbor
  754. 33:44adjacency status will go down for a few
  755. 33:47milliseconds
  756. 33:49all right so as you can see here so ipo
  757. 33:53spf interface gigabit ethernet zero zero
  758. 33:56zero
  759. 33:57right so
  760. 34:00after some time okay after a few
  761. 34:02milliseconds notice that the gigabit
  762. 34:04ethernet zero zero zero interface
  763. 34:06now lists the network as type
  764. 34:09point to point and that there is no dr
  765. 34:13or bdr on the link okay
  766. 34:17so let me reiterate that dr and bddr is
  767. 34:19applicable only
  768. 34:21when you connect your router the switch
  769. 34:24right so we're in multiple routers are
  770. 34:26connected to it
  771. 34:32okay so loopbacks and point-to-point
  772. 34:34networks
  773. 34:35so we use loopbacks to provide
  774. 34:37additional interfaces for a variety of
  775. 34:40purposes
  776. 34:41in this case we are using loopbacks to
  777. 34:43simulate more networks
  778. 34:46than the equipment can support so by
  779. 34:48default
  780. 34:49loopback interfaces are advertised as
  781. 34:52last 32 host routes
  782. 34:55okay slash 32 host routes
  783. 34:59now for example r1 would advertise
  784. 35:0310 that 10 that one that zero class 24
  785. 35:06network as 10 that 10
  786. 35:10that's one that's one slot 32
  787. 35:13both to r2 and r3
  788. 35:17okay now to simulate
  789. 35:20a real lan the loopback zero interface
  790. 35:23is configured as
  791. 35:25point to point network so that r1 will
  792. 35:27advertise
  793. 35:28the full 10 10 1 0 network to r2
  794. 35:32and r3 right
  795. 35:35so if you can see here so interface
  796. 35:38debug 0
  797. 35:39ipo spf network point to point
  798. 35:44okay now r2 receives
  799. 35:47the more accurate simulated network
  800. 35:50address of 10
  801. 35:5110 1 0 24
  802. 35:56right so
  803. 36:00so i put out here so include 10 10 1
  804. 36:04so i'll have here 10 10 1 0 24
  805. 36:08is in there
  806. 36:13all right so next let's go to the next
  807. 36:16section
  808. 36:17multi-access ospf networks
  809. 36:20okay
  810. 36:25all right so on this section
  811. 36:28let's talk about the uspf network types
  812. 36:32so another type of network that uses
  813. 36:34ospf
  814. 36:35is the multi-access ospf network so
  815. 36:38multi-access ospf
  816. 36:40network are unique in that one router
  817. 36:43controls the distribution of lsas
  818. 36:46so the router that is elected for this
  819. 36:49role
  820. 36:50should be determined by the network
  821. 36:51administrator
  822. 36:53through proper configuration so
  823. 36:56ospf may include additional processes
  824. 36:59depending on the type of network
  825. 37:01so the previous topology used
  826. 37:03point-to-point links
  827. 37:05between the routers so however
  828. 37:08routers can be connected to the same
  829. 37:10switch to form a multi-access
  830. 37:13network so as shown here in the figure
  831. 37:16so we have connected
  832. 37:17four routers to a single switch so
  833. 37:21ethernet lands are the most common
  834. 37:23example of broadcast
  835. 37:25multi-access network so in a broadcast
  836. 37:28multi-access network or broadcast
  837. 37:29networks
  838. 37:31all devices on the network see all
  839. 37:33broadcast and multicast
  840. 37:35frame right
  841. 37:42okay so next would be the ospf
  842. 37:46designated router
  843. 37:48so recall that in multi-access network
  844. 37:52ospf elects a dr and bdr as a solution
  845. 37:56to manage the number of adjacencies and
  846. 37:58flooding of
  847. 37:59link state advertisements or lsas
  848. 38:02so the dr is responsible for collecting
  849. 38:05and distributing lsas
  850. 38:07sent and received so the dr uses the
  851. 38:10multicast ipv4 address
  852. 38:12as mentioned in the previous um
  853. 38:16video lecture that would be 224.0.0.5
  854. 38:20which is meant for all the ospf routers
  855. 38:24okay so a bdr is also elected
  856. 38:28in case that the dr fails now the bdr
  857. 38:32listens
  858. 38:33passively and maintains a relationship
  859. 38:35with all the routers
  860. 38:37so if the dr stops producing hello
  861. 38:40packets
  862. 38:41the dr promotes itself and assumes the
  863. 38:43role
  864. 38:44of the designated router or the dr
  865. 38:48now all other routers become a drawer
  866. 38:52so a router that is neither the dr
  867. 38:55nor the bdr so drawers use
  868. 38:59multi-access address 22406
  869. 39:03so all designated routers to send ospf
  870. 39:07packets to the dr and vdr
  871. 39:12so take note only the dr and bdr
  872. 39:16lesion four two two four zero
  873. 39:19zero six
  874. 39:26all right so what is the role of the dr
  875. 39:29or designated router
  876. 39:31so in the figure here r1 r5
  877. 39:35r4 are rotors
  878. 39:38right and the bdr process the lsa
  879. 39:42sent by r1 using multicast ipb4 address
  880. 39:4822406.
  881. 39:50now the drdin sends out the lsa
  882. 39:54okay to all the ospf routers using the
  883. 39:57multicast
  884. 39:58ipv4 address two two four zero zero five
  885. 40:04right so the dr is responsible
  886. 40:07for sending all the lsas to all the
  887. 40:10routers here
  888. 40:12okay so in that sense it eliminated
  889. 40:15the possibility of a flooded network
  890. 40:21okay so ospf
  891. 40:24multi-access reference topology so
  892. 40:28let's use this in a multi-access
  893. 40:30topology shown in the figure
  894. 40:32okay so there are three routers
  895. 40:34interconnected over a common internet
  896. 40:36multi-access network 192
  897. 40:40168 1.0 okay so that
  898. 40:43is slash 24 right
  899. 40:47now each router is configured with the
  900. 40:49indicated ipv4 address
  901. 40:51on the gigabit ethernet zero zero zero
  902. 40:53interface
  903. 40:55because the routers are connected over a
  904. 40:57common multi-access network
  905. 40:59ospf has automatically elected a dr
  906. 41:03and a bdr now in this example
  907. 41:07r3 has been elected as the dr
  908. 41:11why because its router id
  909. 41:14is three the three the three the three
  910. 41:17okay
  911. 41:18so the highest
  912. 41:21uh router id okay so in this case
  913. 41:25so 3.3.3.3 which is the highest in this
  914. 41:28network
  915. 41:29right so it will be chosen as the dr
  916. 41:33okay so r2 is the bdr
  917. 41:36because it has the second highest router
  918. 41:39id
  919. 41:40in the network which is 2.2.2.2
  920. 41:45right and therefore r1 here
  921. 41:48is a drawer
  922. 41:51right
  923. 41:54okay so how do we verify ospf
  924. 41:58router rules so to verify the rules of
  925. 42:01the ospf version 2 router
  926. 42:04we use the command show ipospf
  927. 42:07interface right
  928. 42:12now for instance we have here
  929. 42:15our consideration r1 is the drauder
  930. 42:19right so from the previous slide r1 was
  931. 42:22a droughter so the output generated by
  932. 42:25r1
  933. 42:26confirms that the following
  934. 42:29first r1 is not the dr
  935. 42:33or bdr but it is
  936. 42:37a drawer with a default priority of
  937. 42:40one right so take note
  938. 42:43state daughter priority one
  939. 42:48okay so next would be
  940. 42:51the dr is r3
  941. 42:54okay so take a look at this the
  942. 42:56designated router
  943. 42:58is r3 having a router id of
  944. 43:023.3.3.3 and that is connected via
  945. 43:05interface address 192.168.1.3
  946. 43:09so while the bdr is r2
  947. 43:13okay so with router id 2.2.2.2
  948. 43:16typey address 192.168. 1.2
  949. 43:20okay next r1 has two adjacencies
  950. 43:24one with a bdr and one with the dr
  951. 43:28okay so it's adjacencies take a look at
  952. 43:30this adjacent with neighbor to the two
  953. 43:32to the two which is the bdr and it is
  954. 43:35also adjacent with
  955. 43:373.3.3.3 which is a designated router
  956. 43:41all right so that's how to verify ospf
  957. 43:45router rules
  958. 43:48okay so let's check
  959. 43:51the r2 okay or the router 2 here
  960. 43:55so show ipo spf interface gigabit
  961. 43:57ethernet 0
  962. 43:580 0 here okay now the state here
  963. 44:02is the bdr and the priority is one so
  964. 44:05designated router is 3.3.3 that is
  965. 44:09connected to 192.168.1.3 here
  966. 44:12okay so while r2
  967. 44:15with router id 2.2.2.2 at ip address
  968. 44:20192.168.1.2
  969. 44:22the bdr okay so
  970. 44:25take note that on this line here r2 has
  971. 44:29two adjacencies
  972. 44:30one with the neighbor okay with router
  973. 44:33id
  974. 44:341.1.1.1 which is r1
  975. 44:37and the other with the dr which is
  976. 44:413.3.3.3 okay so again
  977. 44:44to verify the ospf router role we use
  978. 44:48the command
  979. 44:48show ipo spf interface and then you
  980. 44:51could type in the
  981. 44:53specific interface there
  982. 44:56okay now let us evaluate
  983. 44:59the router 3 okay so the output
  984. 45:02generated by r3 confirms that
  985. 45:05r3 is the dr with a default priority of
  986. 45:08one
  987. 45:08so as you can see here so state dr
  988. 45:11priority is one
  989. 45:13okay so designated router is 3.3.3.3
  990. 45:17connected at 192.168.1.3
  991. 45:20well the bdr is r2 with router id
  992. 45:23to the 2.2.2 at ipv4 address 192.168.1.2
  993. 45:29okay so r3 has two adjacencies
  994. 45:33one with neighbor with router id 1.1.1.1
  995. 45:38which is r1 and the other with
  996. 45:41the bdr okay so which is
  997. 45:462.2.2.2
  998. 45:48right so again the command to verify the
  999. 45:50ospf
  1000. 45:51router rule is show ipo spf
  1001. 45:55interface command
  1002. 45:58all right next how do we verify
  1003. 46:02dr and vdr adjacencies so to verify the
  1004. 46:06osp of version to adjacencies
  1005. 46:08we use the command show ip ospf neighbor
  1006. 46:11command
  1007. 46:12okay so as shown here right show ipos pf
  1008. 46:16neighbor command
  1009. 46:20okay so the state of neighbors in a
  1010. 46:23multi-access networks can be as
  1011. 46:25follows it could be a full and then
  1012. 46:27rotor
  1013. 46:28what does it mean so this is a dr
  1014. 46:32or vdr okay
  1015. 46:35so when you have seen on your router
  1016. 46:37that the status or the adjacencies would
  1017. 46:39be full brother
  1018. 46:41this is a dro or video router that is
  1019. 46:44fully adjacent
  1020. 46:45with a non-dr or vdr
  1021. 46:48router these two neighbors can exchange
  1022. 46:52hello packets
  1023. 46:53updates queries replies and
  1024. 46:56acknowledgements
  1025. 46:58okay so the next one would be
  1026. 47:01full dr so the router is actually
  1027. 47:05adjacent
  1028. 47:06with the indicated dr neighbor
  1029. 47:09so these two neighbors can exchange
  1030. 47:11hello packets
  1031. 47:12updates queries replies and
  1032. 47:16acknowledgement also the next one is
  1033. 47:19full bdr so the router is fully adjacent
  1034. 47:23with an
  1035. 47:24indicated bdr neighbor
  1036. 47:27okay so these two routers or neighbors
  1037. 47:31can exchange hello packets updates
  1038. 47:33queries replies and acknowledgement
  1039. 47:36all right so next would be
  1040. 47:40a two-way daughter so the non-dr
  1041. 47:44or bdr router has a neighbor
  1042. 47:46relationship with another non-dr or bdr
  1043. 47:49router
  1044. 47:50so these two neighbors can exchange
  1045. 47:52hello packets
  1046. 47:55okay now the normal state of an ospf
  1047. 47:58router is
  1048. 47:59usually full if a router is
  1049. 48:02stuck in another state it is an
  1050. 48:05indication that there are problems
  1051. 48:08in forming adjacencies so the only
  1052. 48:10exception
  1053. 48:12to this is the two-way state which is
  1054. 48:14normal in a multi-access broadcast
  1055. 48:16network
  1056. 48:17for examples so drawers will form a
  1057. 48:21two-way
  1058. 48:21neighbor adjacency with any daughters
  1059. 48:24that join the network so when this
  1060. 48:28happens
  1061. 48:29the neighbor state displays a two-way
  1062. 48:32rather okay
  1063. 48:41all right so next would be
  1064. 48:44r1 adjacencies so the output generated
  1065. 48:48by r1 confirms
  1066. 48:49that okay r1 has adjacencies with the
  1067. 48:53following routers
  1068. 48:54okay so that would be
  1069. 48:58r2 with router id 2.2.2.2
  1070. 49:01this is in full state and the role of r2
  1071. 49:04is
  1072. 49:05bdr all right next would be
  1073. 49:08with r3 that would be with router id
  1074. 49:113.3.3.3
  1075. 49:13okay so this is in full state
  1076. 49:16and the role of r3 is dr
  1077. 49:20okay now let us evaluate also the
  1078. 49:23adjacencies on r2
  1079. 49:25okay so show ipo spf neighbor as you can
  1080. 49:27see here
  1081. 49:28r1 with router id 1.1.1.1
  1082. 49:32okay is in full state
  1083. 49:36okay and r1 is neither dr
  1084. 49:39or a nor vdr so take note that r1 is a
  1085. 49:42dotter right
  1086. 49:44okay so next r3
  1087. 49:47with router id 3.3.3.3 is in full state
  1088. 49:51okay and the role of r3 is dr
  1089. 49:57all right now let us evaluate also
  1090. 50:00r3 adjacency so show ipo sp of neighbor
  1091. 50:02here
  1092. 50:04okay now the output generated by r3
  1093. 50:07confirms that r3 has adjacencies with
  1094. 50:10the following routers
  1095. 50:12so 1.1.1.1 that's r1 okay r1 router id
  1096. 50:16is in full state
  1097. 50:18okay and r1 is neither
  1098. 50:22the dr nor the bdr r1 is a daughter
  1099. 50:27and then r2 with router id 2.2 to the 2
  1100. 50:30is in full state
  1101. 50:31and the role of r2 sbdr
  1102. 50:35all right
  1103. 50:39okay so let's talk about the dr bddr
  1104. 50:42election process
  1105. 50:44so how do the dr and bdr get elected
  1106. 50:48okay so the ospf dr
  1107. 50:51and bdr election decision is based on
  1108. 50:54the following criteria in sequential
  1109. 50:56order
  1110. 50:57right so first the routers in the
  1111. 51:00network
  1112. 51:01elect the router with the highest
  1113. 51:03interface priority
  1114. 51:05as the dr so the router with the second
  1115. 51:08highest interface priority
  1116. 51:10is elected as a bdr the priority can be
  1117. 51:13configured
  1118. 51:14to be any number between 0 to 255
  1119. 51:18so if the interface priority is set to
  1120. 51:20zero
  1121. 51:22that interface cannot be elected as dr
  1122. 51:25nor bdr so the default priority of the
  1123. 51:29multi-access broadcast interface is
  1124. 51:31one so therefore unless otherwise
  1125. 51:35configured
  1126. 51:36all routers have an equal priority value
  1127. 51:39and must rely on another type breaking
  1128. 51:41method during the dr
  1129. 51:43and vdr election okay
  1130. 51:47now the second one would be if the
  1131. 51:50interface
  1132. 51:52okay priorities are equal then the
  1133. 51:55router with the highest router id
  1134. 51:57is elected as the dr
  1135. 52:00now the router with the second highest
  1136. 52:02router id is the bdr
  1137. 52:04recall that the router id is determined
  1138. 52:06in one of the following three ways
  1139. 52:09right just remember that so the router
  1140. 52:11id can be manually configured
  1141. 52:13okay so if no router id are configured
  1142. 52:18the router id is determined by the
  1143. 52:20highest loopback ipv4 address
  1144. 52:23but then again if there is no loopback
  1145. 52:25interfaces
  1146. 52:26configured the router id is determined
  1147. 52:29by the highest active
  1148. 52:30ipb4 addresses
  1149. 52:34all right
  1150. 52:38okay so let's have the default
  1151. 52:41drbddr election process now
  1152. 52:44in the figure here all ethernet router
  1153. 52:47interfaces
  1154. 52:48have a default priority of one okay
  1155. 52:52so as a result based on the selection
  1156. 52:54criteria listed above
  1157. 52:56the ospf router id is used to elect the
  1158. 52:59dr
  1159. 53:00and vdr so r3 here
  1160. 53:04with the highest router id becomes the
  1161. 53:06dr so take note that the router id here
  1162. 53:08is 3.3.3.3 okay
  1163. 53:12and r2 where the second highest
  1164. 53:15router id becomes a pdr
  1165. 53:19now the dr and bdr election process
  1166. 53:21takes place as soon as the first router
  1167. 53:24with an ospf enabled interface is active
  1168. 53:27on the multi-access network
  1169. 53:30so this can happen when the
  1170. 53:32pre-configured ospf routers are powered
  1171. 53:34on
  1172. 53:35or when the ospf is activated on the
  1173. 53:38interface
  1174. 53:39the election process only takes a few
  1175. 53:42seconds
  1176. 53:43so if all of the routers on the
  1177. 53:46multi-access network have not
  1178. 53:48finished booting it is possible that a
  1179. 53:51router with a lower
  1180. 53:52router id becomes the dr
  1181. 53:56okay now ospf dr
  1182. 53:59and bdr elections are not preemptive
  1183. 54:03if a new router with a higher priority
  1184. 54:06or
  1185. 54:07higher router id is added to the network
  1186. 54:10after the dr and bdr election the newly
  1187. 54:13added router does not take
  1188. 54:15over the dr or bdr role okay so this is
  1189. 54:18because
  1190. 54:19those rules have already been assigned
  1191. 54:22now the addition of the new router
  1192. 54:25does not initiate a new election process
  1193. 54:29all right
  1194. 54:32okay so dr failure
  1195. 54:36and recovery so after the dr is elected
  1196. 54:40it remains the dr until one of the
  1197. 54:43following events occurs
  1198. 54:45right so first dr fails
  1199. 54:49okay the second would be
  1200. 54:52the ospf process on the dr fails or is
  1201. 54:55stopped and then third
  1202. 54:59the multi-access interface on the dr
  1203. 55:01fails or is shutted down
  1204. 55:03so if the dr fails the pdr is
  1205. 55:06automatically promoted
  1206. 55:08to a dr roll this is the case
  1207. 55:11even if another router with a higher
  1208. 55:14priority or router id
  1209. 55:15is added to the network after the
  1210. 55:17initial
  1211. 55:19drpdr election however
  1212. 55:22after a bdr is promoted to a dr
  1213. 55:25a new bdr election occurs and that rotor
  1214. 55:29with the highest priority or
  1215. 55:31router id is elected as the new bdr
  1216. 55:35okay so that's how it goes
  1217. 55:39next so in this example here okay
  1218. 55:42on this illustration okay so
  1219. 55:46r3 fails remember that r3 is our dr
  1220. 55:49right so in this scenario the current dr
  1221. 55:52which is
  1222. 55:52r3 fails so therefore
  1223. 55:55the pre-selected bdr which is r2
  1224. 55:59assumes the role of the dr subsequently
  1225. 56:03okay an election is held to choose a new
  1226. 56:06bdr
  1227. 56:07because r1 is the only drawer it is
  1228. 56:10elected as the bdr
  1229. 56:13all right
  1230. 56:16okay so what will happen if r3
  1231. 56:20rejoins the network now in this scenario
  1232. 56:24r3 has rejoined the network after
  1233. 56:27several minutes of being unavailable
  1234. 56:30okay so because the dr and ddr already
  1235. 56:33exists
  1236. 56:34r3 does not take over either role
  1237. 56:37so instead it becomes a throttle
  1238. 56:41all right
  1239. 56:45okay so next what would be
  1240. 56:48or what would happen if r4 joins the
  1241. 56:51network
  1242. 56:52now in this scenario okay a new router
  1243. 56:55r4
  1244. 56:56with a higher router id is added to the
  1245. 56:58network
  1246. 56:59so r2 which is the dr
  1247. 57:03and r1 which is the bdr
  1248. 57:07retain the dr and the bdr roles so r4
  1249. 57:11automatically becomes a daughter along
  1250. 57:14with
  1251. 57:14r3 here right
  1252. 57:19okay so what if are two fields
  1253. 57:24okay in this scenario r2 has failed
  1254. 57:28the bdr which is r1 automatically
  1255. 57:31becomes
  1256. 57:32the dr and an election process selects
  1257. 57:36r4 as the bdr
  1258. 57:39because it has the higher router
  1259. 57:42id all right
  1260. 57:47okay so how about the ipo spf
  1261. 57:51priority command now if the interface
  1262. 57:54priorities are equal on all
  1263. 57:56routers the router with the highest
  1264. 57:58router id is selected
  1265. 58:00the dr now it is possible to configure
  1266. 58:03the router id
  1267. 58:04to manipulate the drbdr election okay so
  1268. 58:08however
  1269. 58:09this process only works if there is
  1270. 58:13a stringent plan for setting the router
  1271. 58:16id
  1272. 58:17on all the routers so configuring the
  1273. 58:20router id can help control this however
  1274. 58:23in a large networks this can be
  1275. 58:25cumbersome
  1276. 58:27okay now instead of relying on the
  1277. 58:30router id
  1278. 58:31it is better to control the election by
  1279. 58:33setting the interface priorities
  1280. 58:35so this is
  1281. 58:39or this also allows a router to be the
  1282. 58:42dr
  1283. 58:43in one network and a drawer in another
  1284. 58:45network that's possible
  1285. 58:47okay now to set the priority
  1286. 58:51of an interface we use the command ipo
  1287. 58:53spf
  1288. 58:54priority value where value is from zero
  1289. 58:57to two five five
  1290. 58:59okay so a value of zero does not become
  1291. 59:01a d or
  1292. 59:02a pdr a value of 1 to 255 on the
  1293. 59:05interface
  1294. 59:06makes it more likely that the router
  1295. 59:08becomes dr or
  1296. 59:09the bdr
  1297. 59:16okay
  1298. 59:18all right so let us configure the ospf
  1299. 59:21priority
  1300. 59:22so the following example shows how to
  1301. 59:24clear the ospf
  1302. 59:26process on r1 so clear ipo spf process
  1303. 59:30okay command that must be entered on r2
  1304. 59:33and r3 also
  1305. 59:34which is not shown on this diagram here
  1306. 59:37notice the ospf state information
  1307. 59:39that is generated here okay
  1308. 59:42so see this so there are some sort of
  1309. 59:45notifications here
  1310. 59:46adjacencies all right process 10
  1311. 59:50right so from full to down okay
  1312. 59:53interface down or detected
  1313. 59:58all right now how do we configure ospf
  1314. 1:00:01priority so in the topology
  1315. 1:00:04the ipo sp a priority command will be
  1316. 1:00:07used to change the dr
  1317. 1:00:08and bdr as follows okay so r1 should be
  1318. 1:00:12dr and will be configured with a
  1319. 1:00:14priority of two five five so take note
  1320. 1:00:16that we can use
  1321. 1:00:17numbers zero two two five five but then
  1322. 1:00:20zero
  1323. 1:00:22setting it to zero so your router will
  1324. 1:00:24not participate in the election process
  1325. 1:00:26right now setting it to the highest will
  1326. 1:00:28ensure
  1327. 1:00:29that r1 will become the dr
  1328. 1:00:33right so r2 should be the bdr
  1329. 1:00:36and we'll be left with a default
  1330. 1:00:38priority with one and maybe
  1331. 1:00:40on r3 okay r3 should never be a d or bdr
  1332. 1:00:44and will be configured with a priority
  1333. 1:00:46of zero
  1334. 1:00:48okay now change the r1 g00 interface
  1335. 1:00:51priority from one to two five five
  1336. 1:00:54okay and change the r3g00 interface
  1337. 1:00:57priority from one
  1338. 1:00:59to zero all right
  1339. 1:01:07okay so let's go to the next section
  1340. 1:01:11so modifying a single area ospf version
  1341. 1:01:14two
  1342. 1:01:18now in here on this section let's talk
  1343. 1:01:20about
  1344. 1:01:22uh the cisco ospf cost metric
  1345. 1:01:26so recall that a routing protocol uses a
  1346. 1:01:29metric to determine the best path
  1347. 1:01:31okay of a packet across the network so a
  1348. 1:01:34metric gives indication
  1349. 1:01:36of the overhead that is required to send
  1350. 1:01:38packets across
  1351. 1:01:39certain interface so ospf uses cost
  1352. 1:01:43asymmetric
  1353. 1:01:45a lower cost indicates a better pass
  1354. 1:01:47than a higher cost
  1355. 1:01:50the cisc cost of an interface is
  1356. 1:01:52inversely proportional to the bandwidth
  1357. 1:01:55of the interface
  1358. 1:01:56so therefore a higher bandwidth
  1359. 1:01:58indicates a lower cost
  1360. 1:02:00so the formula used to calculate the
  1361. 1:02:02ospf cost
  1362. 1:02:04would be cost reference bandwidth
  1363. 1:02:08divided by the interface bandwidth now
  1364. 1:02:11the default reference bandwidth is 10
  1365. 1:02:13raised to 8
  1366. 1:02:15okay therefore the formula is cost
  1367. 1:02:19okay so which is 10 raised to 8 bps
  1368. 1:02:23divided by the interface bandwidth in
  1369. 1:02:25bps also
  1370. 1:02:27now refer to the table for a breakdown
  1371. 1:02:30of cost calculation
  1372. 1:02:31because the ospf cost value must be an
  1373. 1:02:34integer
  1374. 1:02:35so fast internet gigabit internet and 10
  1375. 1:02:38gig
  1376. 1:02:39ethernet or interfaces share the same
  1377. 1:02:42cost
  1378. 1:02:43so to correct the situation you can
  1379. 1:02:46adjust the reference bandwidth
  1380. 1:02:48with the auto cost reference bandwidth
  1381. 1:02:50command
  1382. 1:02:51on each of the ospf router so manually
  1383. 1:02:54set the ospf cost value
  1384. 1:02:56with an ipo spf cost command on
  1385. 1:02:59necessary interfaces
  1386. 1:03:03all right now this is the table that we
  1387. 1:03:05are pertaining to in the previous slide
  1388. 1:03:07okay so basically you just have to refer
  1389. 1:03:10to this table
  1390. 1:03:11if you are using 10 gbps or 10g ethernet
  1391. 1:03:15the cost is one right
  1392. 1:03:18so also gigabit internet
  1393. 1:03:22pass internet and ethernet okay
  1394. 1:03:25same cost due to reference bandwidth
  1395. 1:03:28okay so which are all
  1396. 1:03:29one all right so you don't have to
  1397. 1:03:33compute just refer to this table here
  1398. 1:03:37okay so adjusting the reference
  1399. 1:03:39bandwidth
  1400. 1:03:40so the cost value must be an integer
  1401. 1:03:44okay if something less than an integer
  1402. 1:03:47is calculated
  1403. 1:03:48ospf rounds up to the nearest integer so
  1404. 1:03:51therefore
  1405. 1:03:52the ospf cost assigned to the gigabit
  1406. 1:03:55ethernet interface with a default
  1407. 1:03:57reference bandwidth
  1408. 1:03:58of 10 raised to 8 bps would equal to
  1409. 1:04:021 because the nearest integer for 0.1 is
  1410. 1:04:050
  1411. 1:04:06instead of 1. right
  1412. 1:04:09so that would be cost 10 raised to 8
  1413. 1:04:13okay divided by the
  1414. 1:04:16bandwidth okay so that would be equals
  1415. 1:04:18to 1.
  1416. 1:04:19so for this reason all interfaces faster
  1417. 1:04:22than fast internet
  1418. 1:04:24will have the same cost value of 1 as a
  1419. 1:04:27fast ethernet interface
  1420. 1:04:29so to assist ospf in making the correct
  1421. 1:04:32path determination
  1422. 1:04:34the reference bandwidth must be changed
  1423. 1:04:36to higher value
  1424. 1:04:37to accommodate networks with links
  1425. 1:04:39faster than
  1426. 1:04:40100 mbps
  1427. 1:04:44okay now changing the reference
  1428. 1:04:47bandwidth does not actually affect the
  1429. 1:04:49bandwidth capacity of the link
  1430. 1:04:51so rather it simply affects the
  1431. 1:04:53calculation used to determine the metric
  1432. 1:04:57so to adjust the reference bandwidth we
  1433. 1:04:59use the command
  1434. 1:05:00auto cost reference bandwidth
  1435. 1:05:03that is an mbps router configuration
  1436. 1:05:06command
  1437. 1:05:07all right so here's the syntax okay
  1438. 1:05:12now this command must be configured on
  1439. 1:05:15every router
  1440. 1:05:16in the ospf domain notice that the value
  1441. 1:05:19is expressed in
  1442. 1:05:20mbps so therefore to adjust the cost
  1443. 1:05:24for gigabit ethernet we use the command
  1444. 1:05:27auto cost reference bandwidth right
  1445. 1:05:301000 for 10 gigabit ethernet
  1446. 1:05:35use the command auto cost reference
  1447. 1:05:37bandwidth 10 000
  1448. 1:05:40all right
  1449. 1:05:44okay so whichever method is used it is
  1450. 1:05:47important to apply the configuration
  1451. 1:05:49to all routers in the ospf routing
  1452. 1:05:51domain so the table
  1453. 1:05:52shows right here the ospf cost
  1454. 1:05:57if the reference bandwidth is adjusted
  1455. 1:05:59to accommodate 10 giga ethernet or
  1456. 1:06:01gigabit ethernet links
  1457. 1:06:03so the reference bandwidth should be
  1458. 1:06:04adjusted anytime
  1459. 1:06:06there are links faster than past
  1460. 1:06:09ethernet or 100 mbps okay
  1461. 1:06:13so in here if you are using 10 10 gbps
  1462. 1:06:15one
  1463. 1:06:16okay same thing with giga internet
  1464. 1:06:19okay so looking at this table stand
  1465. 1:06:23past ethernet is 100 and gigabit
  1466. 1:06:26internet
  1467. 1:06:28or sorry eastern at 10 mbps okay or the
  1468. 1:06:31internet alone
  1469. 1:06:32is 1000
  1470. 1:06:35all right
  1471. 1:06:41okay so ospf accumulates
  1472. 1:06:45cost so the cost of an ospf route is the
  1473. 1:06:49accumulated value from one router
  1474. 1:06:51to the destination network assuming the
  1475. 1:06:54auto cost
  1476. 1:06:55ospf bandwidth okay so 10 000 command
  1477. 1:06:59has been configured on all the three
  1478. 1:07:00routers
  1479. 1:07:01now the cost of the links between each
  1480. 1:07:04router is now
  1481. 1:07:0510 right that cost
  1482. 1:07:09all of those are 10. now the loopback
  1483. 1:07:11interface
  1484. 1:07:12have a default cost of one as shown in
  1485. 1:07:15the figure
  1486. 1:07:18all right
  1487. 1:07:24okay so therefore we can calculate the
  1488. 1:07:27cost
  1489. 1:07:28for each router to reach each network so
  1490. 1:07:30for example
  1491. 1:07:32the total cost for r1 okay
  1492. 1:07:35to reach 10 10 to 0
  1493. 1:07:39which is this one here okay
  1494. 1:07:42is 11 so how did we get 11 right
  1495. 1:07:45so that would be 10 plus 1 that is 11.
  1496. 1:07:50so this is because the link on r2 cost
  1497. 1:07:52okay that's what i'm saying
  1498. 1:07:53is 10 and the loopback default cost is
  1499. 1:07:561. so 10 plus 1 that is
  1500. 1:07:5811.
  1501. 1:08:03all right so the routing table of r1
  1502. 1:08:06here okay in the figure confirms that
  1503. 1:08:08the metric to reach
  1504. 1:08:10r to lan is at cost 11. so see this
  1505. 1:08:13metric 11. so if you if you use the
  1506. 1:08:17show i put out right that's 110 over 11.
  1507. 1:08:20so this pertains to the cost
  1508. 1:08:27okay so can we manually set ospf cost
  1509. 1:08:30value
  1510. 1:08:31yeah so ospf cost values can be
  1511. 1:08:34manipulated to influence the route
  1512. 1:08:36chosen by ospf
  1513. 1:08:38now for example now in the current
  1514. 1:08:41configuration
  1515. 1:08:42r1 is load balancing to 10 118
  1516. 1:08:47slash 30 right so
  1517. 1:08:5010 1 1 8 slash 30
  1518. 1:08:54now in here so how do we know that this
  1519. 1:08:57is load balanced
  1520. 1:08:59right so you have two possible paths to
  1521. 1:09:01get into that network so it's either by
  1522. 1:09:03a 10 113
  1523. 1:09:05and 10 1 1 6. okay
  1524. 1:09:08now it will send some traffic to r2 and
  1525. 1:09:10some traffic to
  1526. 1:09:11r3 okay so because we can see it
  1527. 1:09:15on the routing table right so if we are
  1528. 1:09:17r1 on r1
  1529. 1:09:18so we could forward some traffic here
  1530. 1:09:21and some traffic also in here
  1531. 1:09:23to get to 10 1 1 8 which is
  1532. 1:09:26the network between r2 and r3
  1533. 1:09:34okay so the administrator may want
  1534. 1:09:37traffic to go to r2 and use r3 as a
  1535. 1:09:40backup problem
  1536. 1:09:42that's what we did in static routing
  1537. 1:09:44right so floating static
  1538. 1:09:46route sort of okay in case the link
  1539. 1:09:49r1 and r2 goes down okay
  1540. 1:09:53so another reason to change the cost
  1541. 1:09:55value is because
  1542. 1:09:56other vendors may calculate ospf in a
  1543. 1:10:00different manner
  1544. 1:10:01so by manipulating the cost value the
  1545. 1:10:04administrator can make sure
  1546. 1:10:06the route costs shared between ospf
  1547. 1:10:09multi-vendor routers
  1548. 1:10:10are accurately reflected in the routing
  1549. 1:10:12table
  1550. 1:10:14now to change the cost of value reported
  1551. 1:10:16by the local ospf router to another ospf
  1552. 1:10:19routers
  1553. 1:10:20we use the interface configuration
  1554. 1:10:22command ipo spf
  1555. 1:10:24host value okay
  1556. 1:10:27this is to simulate gigabit ethernet
  1557. 1:10:31speeds so in addition we will change the
  1558. 1:10:34cost of the link
  1559. 1:10:35between r2 okay
  1560. 1:10:39and r3 to 30 so that this link
  1561. 1:10:42is used as a backup link
  1562. 1:10:45all right so in that case she's going to
  1563. 1:10:47have this
  1564. 1:10:48okay so interface g001 ipo spf cost
  1565. 1:10:5330. and then interface loopback 0
  1566. 1:10:57ipo spf cost 10.
  1567. 1:11:01right okay
  1568. 1:11:04now assuming ospf cost for r2
  1569. 1:11:09okay and r3 have been configured to
  1570. 1:11:12match the topology
  1571. 1:11:13in in the figure or on this powerpoint
  1572. 1:11:16here
  1573. 1:11:16okay so the ospf browse for r1 would
  1574. 1:11:20have the following cost values
  1575. 1:11:22so notice that r1 is no longer load
  1576. 1:11:25balancing
  1577. 1:11:26to 10 118 so you only have
  1578. 1:11:29one path here which is via 10116
  1579. 1:11:33okay so in fact
  1580. 1:11:37all routes going to r2 as desired by
  1581. 1:11:41a network administrator okay so also
  1582. 1:11:44note that
  1583. 1:11:45although using the ipo spf cost command
  1584. 1:11:48is the recommended method to manipulate
  1585. 1:11:50the ospf cost values
  1586. 1:11:52an administrator could also do this by
  1587. 1:11:55using the interface configuration
  1588. 1:11:57bandwidth kbps command however
  1589. 1:12:01that would only work if all the routers
  1590. 1:12:04are
  1591. 1:12:04cisco routers okay
  1592. 1:12:09next so test fill over
  1593. 1:12:12to backup route so what happens if the
  1594. 1:12:15link between r1 and r2 goes down
  1595. 1:12:18so we can simulate that by shutting down
  1596. 1:12:21the gigabit ethernet 000
  1597. 1:12:25right and verifying that the routing
  1598. 1:12:28table is updated to use r3 as the next
  1599. 1:12:31top router
  1600. 1:12:32so notice that r1 can now reach the
  1601. 1:12:3510114
  1602. 1:12:36slash 30 network through r3
  1603. 1:12:39with a cost value of 50.
  1604. 1:12:45all right so that's 50 there
  1605. 1:12:52okay so next modifying the single area
  1606. 1:12:56spf version 2 hello packets
  1607. 1:12:58interval so as john in the figure
  1608. 1:13:01ospf version 2 hello packets are
  1609. 1:13:04transmitted
  1610. 1:13:05to multi-cast address 22405
  1611. 1:13:09all spf routers every 10 seconds
  1612. 1:13:12okay now this is the default timer
  1613. 1:13:15on a multi-access and point-to-point
  1614. 1:13:17networks
  1615. 1:13:18take note that hello packets are not
  1616. 1:13:20sent on a simulated lan interfaces
  1617. 1:13:22because
  1618. 1:13:23those interfaces were set to passive by
  1619. 1:13:26router configuration passive interface
  1620. 1:13:28command earlier
  1621. 1:13:30now the dead interval is the period
  1622. 1:13:33that the router waits to receive hello
  1623. 1:13:35packet before declaring that the network
  1624. 1:13:38is down
  1625. 1:13:39now if the dead interval expires
  1626. 1:13:42before the routers receive the hello
  1627. 1:13:45packet
  1628. 1:13:46ospf removes that neighbor from the link
  1629. 1:13:50state database or lsdb
  1630. 1:13:52okay now the router floods the lsdb with
  1631. 1:13:55information about the down neighbor
  1632. 1:13:58out all ospf enabled interfaces
  1633. 1:14:01so cisco uses a default of four times
  1634. 1:14:05the interval or the hello interval so
  1635. 1:14:08this is 40 seconds on a multi-axis
  1636. 1:14:10and point-to-point networks right
  1637. 1:14:14now on a non-broadcast multi-access or
  1638. 1:14:17nvme networks
  1639. 1:14:18the default hello interval is 30 seconds
  1640. 1:14:22and the default dead interval is 120
  1641. 1:14:25seconds
  1642. 1:14:26so nbma networks are beyond the scope of
  1643. 1:14:29this module
  1644. 1:14:31right okay so how do we verify
  1645. 1:14:36hello and dead intervals
  1646. 1:14:40so the ospf hello entered intervals are
  1647. 1:14:42configurable
  1648. 1:14:44on a peer interface basis so the ospf
  1649. 1:14:47interval must match
  1650. 1:14:49or enable adjacency does not occur
  1651. 1:14:52so to verify the currently configured
  1652. 1:14:54ospf version to interface
  1653. 1:14:55intervals we use the command show ipo
  1654. 1:14:58spf
  1655. 1:14:59interface and then the interface
  1656. 1:15:02okay now the gigabit internet 0
  1657. 1:15:060 0 here hello and that intervals are
  1658. 1:15:09set at the default so if you will
  1659. 1:15:11observe here
  1660. 1:15:12it's 10 and 40. so the dead timer
  1661. 1:15:15is four times the hello timer
  1662. 1:15:18right
  1663. 1:15:22now the show ipo spf neighbor command
  1664. 1:15:25okay so we can use also this to see that
  1665. 1:15:28that time
  1666. 1:15:29counting down from 40 seconds as soon in
  1667. 1:15:32the following example
  1668. 1:15:33by default this value is repressed every
  1669. 1:15:3610 seconds
  1670. 1:15:38okay when r1 receives a hello from
  1671. 1:15:41the neighbor
  1672. 1:15:47okay so it may be desirable to change
  1673. 1:15:51the ospf timers
  1674. 1:15:52so that routers detect network failures
  1675. 1:15:55in less time
  1676. 1:15:56now doing this increases traffic but
  1677. 1:15:59sometimes
  1678. 1:16:00the need for quick convergence is more
  1679. 1:16:02important
  1680. 1:16:03than extra traffic it creates okay
  1681. 1:16:06so take note that the hello and that
  1682. 1:16:08intervals are based on the best
  1683. 1:16:10practices
  1684. 1:16:11and should only be altered in a rare
  1685. 1:16:13situation
  1686. 1:16:15okay so ospf version 2 hello and that
  1687. 1:16:18intervals
  1688. 1:16:19can be modified manually using the
  1689. 1:16:22following interface configuration mode
  1690. 1:16:23command so you could use
  1691. 1:16:25no ipo spf hello interval and no ipo spf
  1692. 1:16:30jet interval commands to reset intervals
  1693. 1:16:34to their default which are 10 and 40.
  1694. 1:16:40okay now in the example
  1695. 1:16:43the hello interval of the link between
  1696. 1:16:45r1 and r2
  1697. 1:16:47is changed to five seconds
  1698. 1:16:50okay up there
  1699. 1:16:54so immediately after changing the hello
  1700. 1:16:56interval the cisco ios
  1701. 1:16:58automatically modifies the dead interval
  1702. 1:17:00to four times the hello interval
  1703. 1:17:02however you can document a new the
  1704. 1:17:06interval in the configuration by
  1705. 1:17:07manually setting it to 20 seconds as
  1706. 1:17:09shown
  1707. 1:17:10right so as displayed in the highlighted
  1708. 1:17:13ospf version to adjacency here
  1709. 1:17:16okay when the dead timer on r1 expires
  1710. 1:17:19r1 and r2 lose adjacencies
  1711. 1:17:23so the reason is because r1 and r2 must
  1712. 1:17:26be configured
  1713. 1:17:27with the same hello interval so better
  1714. 1:17:30okay so not configure this or not alter
  1715. 1:17:33the default settings
  1716. 1:17:35now we use the command show ipo spf
  1717. 1:17:37neighbor command on r1
  1718. 1:17:39to verify the neighbor adjacencies so
  1719. 1:17:42notice that
  1720. 1:17:43only neighbor listed is the
  1721. 1:17:463.3.3 here okay
  1722. 1:17:51see that r3 router and that r1 is no
  1723. 1:17:54longer adjacent
  1724. 1:17:56with 2.2.2.2 r2 neighbor
  1725. 1:17:59so beware of changing this timers
  1726. 1:18:03so ensure if you have changed that on
  1727. 1:18:05one end you have to do the same on the
  1728. 1:18:07other end
  1729. 1:18:10okay so to restore adjacencies
  1730. 1:18:14between r1 and r2 the r2 gigabit
  1731. 1:18:17ethernet 000 interface hello interval is
  1732. 1:18:20set to five seconds
  1733. 1:18:23okay so as soon in the following example
  1734. 1:18:25here almost immediately the ios displays
  1735. 1:18:28a message that adjacency has been
  1736. 1:18:30established
  1737. 1:18:31with a state of full
  1738. 1:18:34right so verify the interface intervals
  1739. 1:18:37using the show ip ospf interface command
  1740. 1:18:43okay so notice that the hello time
  1741. 1:18:47is 5 seconds and the dead timer
  1742. 1:18:49automatically set to 20 seconds so
  1743. 1:18:51instead of the default
  1744. 1:18:5340 seconds right
  1745. 1:19:00all right so next section let's talk
  1746. 1:19:02about the default route propagation
  1747. 1:19:08okay so default route propagation
  1748. 1:19:11shall propagate a default static route
  1749. 1:19:14in ospf version 2.
  1750. 1:19:16so your network users will need to send
  1751. 1:19:20packets out of your network
  1752. 1:19:22to a non-ospf network such as the
  1753. 1:19:24internet here
  1754. 1:19:26okay now this is where you will need to
  1755. 1:19:29have a default static route
  1756. 1:19:31that can use or that they can use
  1757. 1:19:34now in the topology okay so r2
  1758. 1:19:37is connected to the internet and should
  1759. 1:19:40propagate a default route
  1760. 1:19:43to r1 and r3
  1761. 1:19:46now the router connected to the internet
  1762. 1:19:48is sometimes called the edge router
  1763. 1:19:51or the gateway router so however
  1764. 1:19:54in ospf terminology the router located
  1765. 1:19:58between the ospf routing domain
  1766. 1:20:00and the nano spf network is called
  1767. 1:20:02autonomous system boundary router
  1768. 1:20:05or the asbr okay
  1769. 1:20:09asbr stands for autonomous
  1770. 1:20:12system boundary router
  1771. 1:20:16okay now how do we propagate a default
  1772. 1:20:18route
  1773. 1:20:20so to propagate the default route the
  1774. 1:20:22edge router
  1775. 1:20:23which is r2 on the previous uh topology
  1776. 1:20:26presented
  1777. 1:20:27must be configured with the following
  1778. 1:20:29okay
  1779. 1:20:30so we could have a default static route
  1780. 1:20:33using the ipad out
  1781. 1:20:350.0.0.0 0.0.0.0 we have the option to
  1782. 1:20:39use
  1783. 1:20:40next hub ip address or the exit
  1784. 1:20:41enterprise command
  1785. 1:20:43like what we did on the static route or
  1786. 1:20:46the static routing
  1787. 1:20:47okay now the default information
  1788. 1:20:49originate
  1789. 1:20:50router configuration command so this
  1790. 1:20:53instructs r2
  1791. 1:20:55to be the source of the default route
  1792. 1:20:57information
  1793. 1:20:58and propagate the default starter route
  1794. 1:21:00in the ospf updates
  1795. 1:21:03now in the following example so r2 is
  1796. 1:21:07configured
  1797. 1:21:09with a loopback to simulate the
  1798. 1:21:11connection to the internet
  1799. 1:21:27in the routing domain okay so the
  1800. 1:21:29command is
  1801. 1:21:31okay so default information originate
  1802. 1:21:35now when configuring a static route best
  1803. 1:21:38practice is to use the nextup ip address
  1804. 1:21:40however
  1805. 1:21:41when simulating a connection to the
  1806. 1:21:43internet there is no next top ip address
  1807. 1:21:45so therefore
  1808. 1:21:47we use the exit interface instead
  1809. 1:21:50all right
  1810. 1:21:53okay so how do we verify the propagated
  1811. 1:21:56default route so you can verify
  1812. 1:22:00the default route settings on r2 using
  1813. 1:22:03the
  1814. 1:22:04show ip route okay so notice that
  1815. 1:22:07the route source on r1 and r3 is
  1816. 1:22:11oe2 right you'll have this oe2
  1817. 1:22:15okay so signifying that it was learned
  1818. 1:22:18using the osp of version 2. now the
  1819. 1:22:21asterisk identifies this is a good
  1820. 1:22:24candidate for the default route
  1821. 1:22:27the e2 designation identifies that it is
  1822. 1:22:30an external
  1823. 1:22:32route okay the meaning of e1 and e2 is
  1824. 1:22:35beyond the scope of this module
  1825. 1:22:38right
  1826. 1:22:42okay so let's go to the next section so
  1827. 1:22:45verify single area
  1828. 1:22:46ospf version 2.
  1829. 1:22:52okay so verify ospf neighbors so if you
  1830. 1:22:55have
  1831. 1:22:55configured a single area osp of version
  1832. 1:22:582
  1833. 1:22:58you will need to verify your
  1834. 1:23:00configurations
  1835. 1:23:01okay this topic details the many
  1836. 1:23:04commands
  1837. 1:23:05that you can use to verify your spf so
  1838. 1:23:08as you know
  1839. 1:23:09the following two commands are
  1840. 1:23:11particularly useful
  1841. 1:23:12for verifying routing so these are of
  1842. 1:23:14course the show i've interface brief
  1843. 1:23:17okay this verifies that the desired
  1844. 1:23:20interfaces are active
  1845. 1:23:21with the correct ip addressing so the
  1846. 1:23:24next one would be show ip route
  1847. 1:23:26this verifies that the routing table
  1848. 1:23:27contains all the expected routes
  1849. 1:23:30now additional commands for determining
  1850. 1:23:33that ospf is operating as expected
  1851. 1:23:35include the following so you can use
  1852. 1:23:37show ipo spf neighbor
  1853. 1:23:39show ip protocol so ipo spf right or the
  1854. 1:23:43show ipo spf interface command
  1855. 1:23:46okay
  1856. 1:23:52okay so how do we verify your spf
  1857. 1:23:54neighbors so we use the command show ip
  1858. 1:23:56usb of neighbor command to verify
  1859. 1:23:58that the router has formed an adjacency
  1860. 1:24:00with its neighboring routers
  1861. 1:24:02now if the router id of the neighboring
  1862. 1:24:05router is not displayed
  1863. 1:24:06or it does not show as being in the
  1864. 1:24:09state of full
  1865. 1:24:10the two routers have not formed an ospf
  1866. 1:24:13version to adjacencies
  1867. 1:24:15okay now if two routers do not establish
  1868. 1:24:18adjacency
  1869. 1:24:19link state information is not exchanged
  1870. 1:24:22so incomplete lsdbs can cause inaccurate
  1871. 1:24:26spf trees and routing tables so routes
  1872. 1:24:30to destination networks may not exist or
  1873. 1:24:34may not be the most optimum path so take
  1874. 1:24:37note that a non-dr
  1875. 1:24:39or bdr router that has a neighbor
  1876. 1:24:41relationship with
  1877. 1:24:42another or video router will display a
  1878. 1:24:45two-way adjacency instead of four
  1879. 1:24:49okay now for each neighbor
  1880. 1:24:52so this command displays the following
  1881. 1:24:54so you've got the neighbor id
  1882. 1:24:56okay so this is the router id
  1883. 1:25:00of the neighboring router you also have
  1884. 1:25:02pry
  1885. 1:25:03okay so this is the ospf version to
  1886. 1:25:05priority on the interface
  1887. 1:25:07so this value is assigned in the dr and
  1888. 1:25:09vdr election
  1889. 1:25:11right so next would be state
  1890. 1:25:14this is the osp of version to state of
  1891. 1:25:17the interface so full state means
  1892. 1:25:20that the router and its neighbor have
  1893. 1:25:21identical osp operation to lsdbs
  1894. 1:25:25now on a multi-axis network such as the
  1895. 1:25:27ethernet
  1896. 1:25:28two routers that are adjacent may have
  1897. 1:25:31their states
  1898. 1:25:32displayed as two-way the dash
  1899. 1:25:35indicates that no dr or bdr is required
  1900. 1:25:38because of the network type right
  1901. 1:25:42so the next one is a dead timer okay
  1902. 1:25:45so what's a dead timer this is the
  1903. 1:25:48amount of time
  1904. 1:25:49remaining that the router waits to
  1905. 1:25:52receive an ospf version to help
  1906. 1:25:54packet from the neighbor okay before
  1907. 1:25:57declaring the neighbor is down now this
  1908. 1:26:00value is reset when the interface
  1909. 1:26:02receives a hello packer
  1910. 1:26:05okay so the next one would be address
  1911. 1:26:07this
  1912. 1:26:08is the ipv4 address of the interface of
  1913. 1:26:11the neighbor
  1914. 1:26:12to which this router is directly
  1915. 1:26:13connected
  1916. 1:26:15and the last one is interface this
  1917. 1:26:18is the interface on which this router
  1918. 1:26:20has formed adjacency
  1919. 1:26:22with the network
  1920. 1:26:26okay so two routers may not form an osp
  1921. 1:26:30of version to adjacency
  1922. 1:26:32if the following occurs so first the
  1923. 1:26:35subnet mask do not match
  1924. 1:26:37okay so causing the routers to be on a
  1925. 1:26:40separate networks
  1926. 1:26:41the ospf version 2 hello and jetted
  1927. 1:26:44timers
  1928. 1:26:45do not match the ospf version 2 network
  1929. 1:26:49types do not match and there is amazing
  1930. 1:26:53or incorrect ospf version 2
  1931. 1:26:55network command
  1932. 1:27:00okay now next would be verify ospf
  1933. 1:27:04protocol settings so we are using the
  1934. 1:27:07command show ib protocols command as
  1935. 1:27:09quickly
  1936. 1:27:09or as a quick way to verify vital ospf
  1937. 1:27:12configuration information
  1938. 1:27:14okay so this includes the ospf
  1939. 1:27:18version to process id router id
  1940. 1:27:21interfaces explicitly configured to
  1941. 1:27:23advertise ospf routes
  1942. 1:27:25the neighbors the router is receiving
  1943. 1:27:27updates from
  1944. 1:27:29and the default administrative distance
  1945. 1:27:32which
  1946. 1:27:32is 110 for ospf
  1947. 1:27:36okay so the show ib protocols command is
  1948. 1:27:39a quick way to verify vital ospf
  1949. 1:27:41configuration information
  1950. 1:27:43so this includes uh ospf
  1951. 1:27:47version two process id router id
  1952. 1:27:50interfaces explicitly configured to
  1953. 1:27:52advertise ospf routes
  1954. 1:27:54the neighbors the router is receiving
  1955. 1:27:55updates from
  1956. 1:27:57and the default administrative distance
  1957. 1:27:59which is 110
  1958. 1:28:00for ospf right
  1959. 1:28:04so the default administrative distance
  1960. 1:28:05for static is
  1961. 1:28:12one
  1962. 1:28:16okay so verify ospf process information
  1963. 1:28:21so the show ipo spf command can also be
  1964. 1:28:24used to examine the ospf version 2
  1965. 1:28:26process id
  1966. 1:28:27and router id so as shown in the
  1967. 1:28:28following command output here
  1968. 1:28:30okay show ipos pf
  1969. 1:28:34okay so you can see there so routing
  1970. 1:28:36process ospf then with router id
  1971. 1:28:38uh one one one one so this command
  1972. 1:28:41displays the ospf version to
  1973. 1:28:43area information and the last time the
  1974. 1:28:46spf algorithm was
  1975. 1:28:48executed okay so you can see here spf
  1976. 1:28:51algorithm
  1977. 1:28:52executed four times
  1978. 1:28:56all right so
  1979. 1:28:59next the show ipo spf interface command
  1980. 1:29:03provides a detailed list of
  1981. 1:29:05every ospf version to enable interface
  1982. 1:29:08okay so i specify an interface to
  1983. 1:29:11display the settings
  1984. 1:29:13of just the interface as shown in the
  1985. 1:29:15following output here for gigabit
  1986. 1:29:16ethernet
  1987. 1:29:18000 okay
  1988. 1:29:21now this command shows the process id
  1989. 1:29:24the router id okay or the local router
  1990. 1:29:27id
  1991. 1:29:29the type of the network which is point
  1992. 1:29:31to point here
  1993. 1:29:32the cost okay next would be
  1994. 1:29:37dr and bd are information on
  1995. 1:29:39multi-access links
  1996. 1:29:40which are not shown and adjacent
  1997. 1:29:43neighbors
  1998. 1:29:47okay now to get a quick summary
  1999. 1:29:50of ospf version to enable interfaces
  2000. 1:29:54okay so use the show ipo spf interface
  2001. 1:29:56brief
  2002. 1:29:58okay so as you see here
  2003. 1:30:01okay so this command is useful for
  2004. 1:30:03seeing the important information
  2005. 1:30:05including the following
  2006. 1:30:06so something like the interface or
  2007. 1:30:08interfaces are participating in ospf
  2008. 1:30:12networks that are being advertised ip
  2009. 1:30:14address k
  2010. 1:30:15mask cost of its link right
  2011. 1:30:19so network state and number of
  2012. 1:30:23neighbors on each link
  2013. 1:30:29okay so we come to an end of this video
  2014. 1:30:32lecture
  2015. 1:30:33it's a very long discussion okay so
  2016. 1:30:35thank you for watching and listening
  2017. 1:30:37have a great day hope you learned
  2018. 1:30:39something from this video lecture today
  2019. 1:30:48[Music]
  2020. 1:30:52you

About this transcript

This page contains the full transcript of ENSA M2 Single Area OSPFv2 Configuration by Santelmo, generated from the public captions YouTube serves with the video. The transcript has 10,606 words across 2,020 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.