1 00:00:00,000 --> 00:00:03,304 [AUDIO LOGO] 2 00:00:03,304 --> 00:00:07,090 3 00:00:07,090 --> 00:00:11,470 So in the last video, we saw the showdown between internal 4 00:00:11,470 --> 00:00:13,120 versus internal routes. 5 00:00:13,120 --> 00:00:16,059 But what about external versus external? 6 00:00:16,059 --> 00:00:20,630 Now, externals don't have that same marking, so to speak, 7 00:00:20,630 --> 00:00:24,620 of being either from your own area or from a different area. 8 00:00:24,620 --> 00:00:29,650 However, there are two different types of external routes. 9 00:00:29,650 --> 00:00:34,300 There's external type 1 and external type 2. 10 00:00:34,300 --> 00:00:39,910 Now, generically speaking, what that means is with a type 2, 11 00:00:39,910 --> 00:00:43,700 we're going to not track internal cost. 12 00:00:43,700 --> 00:00:47,710 Now, we'll see in our upcoming videos that in a way, 13 00:00:47,710 --> 00:00:50,500 we still sort of do because there's something 14 00:00:50,500 --> 00:00:52,060 called the forwarding metric. 15 00:00:52,060 --> 00:00:53,900 And we have to look at that. 16 00:00:53,900 --> 00:00:58,180 However, it's not stored right in the metric of the route. 17 00:00:58,180 --> 00:01:02,530 With a type 1 external, the metric for the route 18 00:01:02,530 --> 00:01:06,880 is actually calculated by looking not only at the type 5 19 00:01:06,880 --> 00:01:11,560 LSA but also by looking at the distance or the cost 20 00:01:11,560 --> 00:01:13,000 to the exit. 21 00:01:13,000 --> 00:01:16,240 That is then put together into the metric 22 00:01:16,240 --> 00:01:17,660 in the routing table. 23 00:01:17,660 --> 00:01:20,150 And we'll see this as we go. 24 00:01:20,150 --> 00:01:24,190 But as always, let's start by jumping into our topology, 25 00:01:24,190 --> 00:01:26,320 taking a look at what we're going to build, 26 00:01:26,320 --> 00:01:28,180 and then jumping into the command line 27 00:01:28,180 --> 00:01:31,220 and seeing all of this work. 28 00:01:31,220 --> 00:01:33,590 As we jump into this demonstration, 29 00:01:33,590 --> 00:01:38,480 it is important to note that the previous internal instances 30 00:01:38,480 --> 00:01:42,410 of this route that were on router 8 and router 5 31 00:01:42,410 --> 00:01:44,870 have at this point been removed. 32 00:01:44,870 --> 00:01:48,350 We now just have the one instance on router 10. 33 00:01:48,350 --> 00:01:57,020 Again, this is of the 100.100.100.0/24 network. 34 00:01:57,020 --> 00:02:01,430 This is being redistributed on router 10 into OSPF. 35 00:02:01,430 --> 00:02:03,560 And it's coming in as the default 36 00:02:03,560 --> 00:02:06,740 type of an external type 2. 37 00:02:06,740 --> 00:02:09,710 We're going to start by examining that external route. 38 00:02:09,710 --> 00:02:12,583 As per usual, we'll take a look at it on router 7. 39 00:02:12,583 --> 00:02:14,000 And then what we're going to do is 40 00:02:14,000 --> 00:02:17,270 we're going to create this loopback on router 5 again. 41 00:02:17,270 --> 00:02:20,750 But this time, we're not going to bring it in as internal. 42 00:02:20,750 --> 00:02:23,720 We're going to redistribute this into OSPF 43 00:02:23,720 --> 00:02:28,010 and bring it in as an external type 1. 44 00:02:28,010 --> 00:02:31,130 So we're going to create this type 1 external. 45 00:02:31,130 --> 00:02:34,340 And we're going to give it a high cost. 46 00:02:34,340 --> 00:02:37,400 Again, we're trying to prove the rule 47 00:02:37,400 --> 00:02:40,910 that the E1 will be believed over 48 00:02:40,910 --> 00:02:44,670 the E2 regardless of the cost. 49 00:02:44,670 --> 00:02:46,140 That's the point of this. 50 00:02:46,140 --> 00:02:48,230 So by bringing it in with a high cost, 51 00:02:48,230 --> 00:02:49,910 we'll be able to prove that. 52 00:02:49,910 --> 00:02:53,690 We'll also examine a little bit about that E1, how 53 00:02:53,690 --> 00:02:55,350 the metric looks, and so on. 54 00:02:55,350 --> 00:02:59,480 So we will not only be observing that the type 1 beats the type 55 00:02:59,480 --> 00:03:03,290 2, but we'll also see what the E1 looks 56 00:03:03,290 --> 00:03:05,930 like as far as the metric in both 57 00:03:05,930 --> 00:03:08,820 the LSA and the routing table. 58 00:03:08,820 --> 00:03:11,030 So let's jump in and get started by looking 59 00:03:11,030 --> 00:03:14,840 at that route on router 7. 60 00:03:14,840 --> 00:03:17,630 So if we look at the routing table here on router 7, 61 00:03:17,630 --> 00:03:20,510 right now, it's an external type 2. 62 00:03:20,510 --> 00:03:25,460 And it has a metric of 20 and a forward metric of 2. 63 00:03:25,460 --> 00:03:30,240 Keep these numbers in mind as we go through this demonstration. 64 00:03:30,240 --> 00:03:33,690 Now, one other thing to note, if we look at the database itself, 65 00:03:33,690 --> 00:03:37,250 notice the metric here is also listed as 20. 66 00:03:37,250 --> 00:03:40,370 So one of the fundamental characteristics 67 00:03:40,370 --> 00:03:44,240 of the external type 2 is that the metric shown 68 00:03:44,240 --> 00:03:47,000 in the routing table, in this case 20, 69 00:03:47,000 --> 00:03:51,140 is the same as the metric shown in the database on the type 70 00:03:51,140 --> 00:03:52,400 5 LSA-- 71 00:03:52,400 --> 00:03:54,650 again, in this case a 20. 72 00:03:54,650 --> 00:03:57,140 Now let's bring in a type 1. 73 00:03:57,140 --> 00:04:00,230 So let's go over and do this on router 5. 74 00:04:00,230 --> 00:04:03,590 So on router 5, we'll make our new interface loopback 100 75 00:04:03,590 --> 00:04:04,590 interface. 76 00:04:04,590 --> 00:04:09,170 But this time, instead of actually running OSPF on it, 77 00:04:09,170 --> 00:04:11,930 we're instead going to go into router OSPF 1. 78 00:04:11,930 --> 00:04:15,500 We'll do a redistribute of connected routes. 79 00:04:15,500 --> 00:04:17,029 We'll set the metric type. 80 00:04:17,029 --> 00:04:19,070 And of course, we have our two choices here. 81 00:04:19,070 --> 00:04:22,520 The default is metric type 2 if you don't specify. 82 00:04:22,520 --> 00:04:24,830 We're going to specify a metric type of 1. 83 00:04:24,830 --> 00:04:26,690 And as we mentioned previously, we're 84 00:04:26,690 --> 00:04:29,150 going to set this to a rather high metric. 85 00:04:29,150 --> 00:04:30,680 Let's just set it to 5000. 86 00:04:30,680 --> 00:04:37,040 We can verify this if we do a show ip ospf database external. 87 00:04:37,040 --> 00:04:39,260 And we'll filter it by self originated. 88 00:04:39,260 --> 00:04:41,640 And we see exactly what's going on here. 89 00:04:41,640 --> 00:04:44,120 We see that it is a metric type 1. 90 00:04:44,120 --> 00:04:46,760 And we see that it has that metric of 5000. 91 00:04:46,760 --> 00:04:49,280 So now let's, of course, go back to router 7 92 00:04:49,280 --> 00:04:50,930 and observe what's happening. 93 00:04:50,930 --> 00:04:52,790 First thing we're going to do on router 7 94 00:04:52,790 --> 00:04:54,600 is look at the database again. 95 00:04:54,600 --> 00:04:57,230 So let's again look at that same exact command. 96 00:04:57,230 --> 00:05:01,520 But of course, this time we have this new LSA, 97 00:05:01,520 --> 00:05:06,080 the one from advertising router 10.5.5.5. 98 00:05:06,080 --> 00:05:08,210 Notice the metric. 99 00:05:08,210 --> 00:05:11,850 The metric is still 5000. 100 00:05:11,850 --> 00:05:15,240 Here's the thing with the type 1 external. 101 00:05:15,240 --> 00:05:20,160 It does track internal cost when it puts the route 102 00:05:20,160 --> 00:05:22,050 into the routing table. 103 00:05:22,050 --> 00:05:25,350 But here in the database, notice that it still 104 00:05:25,350 --> 00:05:29,730 has this metric of 5000 through the entire network. 105 00:05:29,730 --> 00:05:34,350 The type 5 LSA itself is never changed. 106 00:05:34,350 --> 00:05:38,550 But what the type 1 external tells the receiving router 107 00:05:38,550 --> 00:05:45,270 to do is to take this metric of 5000 and add it to our cost 108 00:05:45,270 --> 00:05:46,770 to the exit. 109 00:05:46,770 --> 00:05:50,220 Let's take a look at how that's put together. 110 00:05:50,220 --> 00:05:53,210 So if we were to say show ip ospf border, 111 00:05:53,210 --> 00:05:58,190 notice that our cost to get to our advertising router 112 00:05:58,190 --> 00:06:02,990 of 10.5.5.5, it actually has a cost of 3, 113 00:06:02,990 --> 00:06:08,180 which means that if I say show ip route for the 100.100.100.0, 114 00:06:08,180 --> 00:06:12,470 that means that the metric shown in the routing table is 115 00:06:12,470 --> 00:06:15,470 actually 5003. 116 00:06:15,470 --> 00:06:20,290 That's the 5000 coming from the type 5 LSA added to the 3 117 00:06:20,290 --> 00:06:23,090 that it costs me to get to the advertising router. 118 00:06:23,090 --> 00:06:27,320 Now, since I have two equal costs to get to the advertising 119 00:06:27,320 --> 00:06:30,800 router, you can see here we are, in fact, doing load sharing 120 00:06:30,800 --> 00:06:34,880 as well to this new route. 121 00:06:34,880 --> 00:06:37,830 So two big things we saw in this video-- 122 00:06:37,830 --> 00:06:41,030 number one is that that external type 123 00:06:41,030 --> 00:06:46,430 1 beats the external type 2, regardless of the metric. 124 00:06:46,430 --> 00:06:50,090 Once again, we started off with a route with a metric of 20. 125 00:06:50,090 --> 00:06:53,690 Now we have a route with a metric of 5003 126 00:06:53,690 --> 00:06:56,480 just because it's a type 1. 127 00:06:56,480 --> 00:07:01,310 The other thing is when you have that external type 1, 128 00:07:01,310 --> 00:07:05,510 the actual type 5 LSA itself is not 129 00:07:05,510 --> 00:07:08,090 modified, except for the fact that it says 130 00:07:08,090 --> 00:07:09,980 that it's a type 1, of course. 131 00:07:09,980 --> 00:07:14,120 But what that type 1 indicates to the receiving device 132 00:07:14,120 --> 00:07:18,350 is that it should take the metric from the type 5 LSA 133 00:07:18,350 --> 00:07:23,180 and add that to the cost to get to the advertising router 134 00:07:23,180 --> 00:07:27,320 when it puts that route into the routing table itself. 135 00:07:27,320 --> 00:07:31,340 That way, the routing table reflects the total costs 136 00:07:31,340 --> 00:07:33,470 to get to that route. 137 00:07:33,470 --> 00:07:35,600 I hope this has been informative for you, 138 00:07:35,600 --> 00:07:38,680 and I'd like to thank you for viewing. 139 00:07:38,680 --> 00:07:42,000