1 00:00:00,000 --> 00:00:07,290 [MUSIC PLAYING] 2 00:00:07,290 --> 00:00:12,120 In this video, let's jump in and take a look at that first rule 3 00:00:12,120 --> 00:00:15,960 that we prefer internal over external routes. 4 00:00:15,960 --> 00:00:19,140 This is going to be a fairly easy rule to prove. 5 00:00:19,140 --> 00:00:22,440 So we'll start off by looking at our topology, 6 00:00:22,440 --> 00:00:24,730 just to talk about what we're going to be building. 7 00:00:24,730 --> 00:00:27,150 And then we're going to jump onto the command line 8 00:00:27,150 --> 00:00:29,610 and see this first rule in action. 9 00:00:29,610 --> 00:00:31,930 Let's get started. 10 00:00:31,930 --> 00:00:35,640 So in order to compare our internal to external routes, 11 00:00:35,640 --> 00:00:39,810 what we're going to do is, first we will take a look at this 12 00:00:39,810 --> 00:00:44,280 external route which we're going to be focusing on a loopback 13 00:00:44,280 --> 00:00:48,180 that's currently on router 10 that has an address 14 00:00:48,180 --> 00:00:53,310 of 100.100.100.0. 15 00:00:53,310 --> 00:00:56,560 And this is a /24. 16 00:00:56,560 --> 00:00:59,790 So this is going to be the main route we're going to focus on. 17 00:00:59,790 --> 00:01:02,940 We're going to start by looking at this on router 7. 18 00:01:02,940 --> 00:01:06,510 And then we're going to create an internal version 19 00:01:06,510 --> 00:01:08,040 of that same route. 20 00:01:08,040 --> 00:01:10,810 But we're going to put a high cost on it. 21 00:01:10,810 --> 00:01:12,760 So in other words, we're going to make it 22 00:01:12,760 --> 00:01:17,610 so the external route should be chosen, theoretically, if it 23 00:01:17,610 --> 00:01:19,440 was going to come down to cost. 24 00:01:19,440 --> 00:01:23,220 That way, we can make sure that it's not coming down to cost. 25 00:01:23,220 --> 00:01:27,090 We will create that new loopback on router 8. 26 00:01:27,090 --> 00:01:30,420 And we'll then bring that into OSPF area zero 27 00:01:30,420 --> 00:01:32,310 so that it's an internal route. 28 00:01:32,310 --> 00:01:36,180 And we will of course, see what that does as far as our path 29 00:01:36,180 --> 00:01:36,970 selection. 30 00:01:36,970 --> 00:01:38,610 So let's go ahead and get started. 31 00:01:38,610 --> 00:01:42,660 Again, we'll start on router 7 just examining and making 32 00:01:42,660 --> 00:01:47,610 sure we have that external route from router 10. 33 00:01:47,610 --> 00:01:51,540 So we'll start by looking at that prefix to 100.100.100.0. 34 00:01:51,540 --> 00:01:53,450 /24. 35 00:01:53,450 --> 00:01:56,780 And what we see is we are, in fact, learning this 36 00:01:56,780 --> 00:01:59,570 from an external type 2. 37 00:01:59,570 --> 00:02:02,240 Its current metric is 20. 38 00:02:02,240 --> 00:02:08,330 And it is in fact using a next hop of 50.1.167.6, 39 00:02:08,330 --> 00:02:10,949 which it learned from router 10. 40 00:02:10,949 --> 00:02:14,180 So this is clearly using that external route 41 00:02:14,180 --> 00:02:19,010 from router 10 coming through the ABR of router 6. 42 00:02:19,010 --> 00:02:21,530 So now let's see what happens if we bring this 43 00:02:21,530 --> 00:02:23,390 in as an internal route. 44 00:02:23,390 --> 00:02:26,060 We'll do that on router 8. 45 00:02:26,060 --> 00:02:29,270 So here, we'll simply make an interface loopback 100. 46 00:02:29,270 --> 00:02:34,280 We'll give it an IP address on the 100.100.100.0/24. 47 00:02:34,280 --> 00:02:35,600 We'll make this a .8. 48 00:02:35,600 --> 00:02:37,820 Again, it's a /24. 49 00:02:37,820 --> 00:02:41,990 Now we do have to make this OSPF network type point-to-point 50 00:02:41,990 --> 00:02:44,510 because the default for a loopback, 51 00:02:44,510 --> 00:02:46,910 is, well, type loopback. 52 00:02:46,910 --> 00:02:50,330 And that would make it advertise it as a /32. 53 00:02:50,330 --> 00:02:53,660 In order for this to be identical to that external 54 00:02:53,660 --> 00:02:57,150 route, it's going to have to be a /24. 55 00:02:57,150 --> 00:03:00,110 So we'll change this here to point-to-point. 56 00:03:00,110 --> 00:03:02,300 We'll bring it into our area 0. 57 00:03:02,300 --> 00:03:04,680 And we'll give it a very high cost, 58 00:03:04,680 --> 00:03:08,150 which means that this, theoretically if it was just 59 00:03:08,150 --> 00:03:11,150 lowest cost wins, this would in no way 60 00:03:11,150 --> 00:03:13,880 beat out that external with a metric of 20. 61 00:03:13,880 --> 00:03:16,850 But let's go see what's happening over on router 7. 62 00:03:16,850 --> 00:03:20,640 If we come back here to router 7, we look at our route again. 63 00:03:20,640 --> 00:03:24,830 And what we see is we now have an intra area, clearly 64 00:03:24,830 --> 00:03:28,850 internal, and it's still using that really high metric 65 00:03:28,850 --> 00:03:30,440 of 1001. 66 00:03:30,440 --> 00:03:34,850 So even though clearly the metric of 20 on our external 67 00:03:34,850 --> 00:03:38,510 would have been a lower cost, we see that that's not 68 00:03:38,510 --> 00:03:40,100 what made the decision here. 69 00:03:40,100 --> 00:03:45,810 The decision came down to internal beats external. 70 00:03:45,810 --> 00:03:49,710 In this video, we just did a quick demonstration 71 00:03:49,710 --> 00:03:53,040 that regardless of lowest cost, it 72 00:03:53,040 --> 00:03:57,840 doesn't matter if one route is internal and one is external. 73 00:03:57,840 --> 00:04:01,210 That internal route will always win. 74 00:04:01,210 --> 00:04:03,300 I hope this has been informative for you. 75 00:04:03,300 --> 00:04:06,500 And I'd like to thank you for viewing. 76 00:04:06,500 --> 00:04:10,000