1 00:00:00,000 --> 00:00:07,080 2 00:00:07,080 --> 00:00:10,590 So in the last video while we were looking at the area range 3 00:00:10,590 --> 00:00:13,380 command, you might have noticed that there was 4 00:00:13,380 --> 00:00:16,800 an option there not advertise. 5 00:00:16,800 --> 00:00:19,680 And this gives us an interesting opportunity 6 00:00:19,680 --> 00:00:24,630 to do sort of an unusual form of filtering in OSPF. 7 00:00:24,630 --> 00:00:29,100 We can actually use the area range command to filter routes 8 00:00:29,100 --> 00:00:31,450 from going into a certain area. 9 00:00:31,450 --> 00:00:35,220 Now, is this something that's very commonly done? 10 00:00:35,220 --> 00:00:37,860 Not particularly because we do have 11 00:00:37,860 --> 00:00:40,720 other ways of filtering routes between areas. 12 00:00:40,720 --> 00:00:43,240 However, it is an interesting feature 13 00:00:43,240 --> 00:00:45,000 so we should at least take a moment here 14 00:00:45,000 --> 00:00:48,120 to take a look at it and see how it works. 15 00:00:48,120 --> 00:00:51,120 Now we're going to be working with those same routes coming 16 00:00:51,120 --> 00:00:52,705 from router 10. 17 00:00:52,705 --> 00:00:54,330 So I don't think we need to necessarily 18 00:00:54,330 --> 00:00:56,082 look at the topology here, we're just 19 00:00:56,082 --> 00:00:57,540 going to be looking at those routes 20 00:00:57,540 --> 00:00:59,220 that we summarized before. 21 00:00:59,220 --> 00:01:01,710 We'll be taking out the summarization that we already 22 00:01:01,710 --> 00:01:05,610 put in there to the /16, and then we'll be doing some 23 00:01:05,610 --> 00:01:08,920 filtering to filter out some of the /24s. 24 00:01:08,920 --> 00:01:11,550 So let's just start by jumping right into the command line 25 00:01:11,550 --> 00:01:12,870 on router 7. 26 00:01:12,870 --> 00:01:14,910 We'll take a look at what we already have, 27 00:01:14,910 --> 00:01:18,390 and then we'll make our changes over on router 6 28 00:01:18,390 --> 00:01:21,780 and take a look at how the not advertised option works 29 00:01:21,780 --> 00:01:23,520 on the area range command. 30 00:01:23,520 --> 00:01:26,610 Let's get started. 31 00:01:26,610 --> 00:01:30,230 So if we do a show IP route here on router 7, 32 00:01:30,230 --> 00:01:37,070 what we're going to be looking for is that 100.100..0.0/16 33 00:01:37,070 --> 00:01:39,770 which is the summary that we have left over from 34 00:01:39,770 --> 00:01:41,400 our previous video. 35 00:01:41,400 --> 00:01:43,432 Now if we're going to use this for filtering, 36 00:01:43,432 --> 00:01:45,140 the first thing we're going to have to do 37 00:01:45,140 --> 00:01:47,160 is get rid of that summary. 38 00:01:47,160 --> 00:01:48,230 So let's do that. 39 00:01:48,230 --> 00:01:51,790 Hopping over to router 6, well simply go 40 00:01:51,790 --> 00:01:56,510 into configuration mode for router OSPF 1. 41 00:01:56,510 --> 00:02:02,370 And we'll do a no area 200 range 100.100.0.0, 42 00:02:02,370 --> 00:02:03,920 and we'll put in the mask. 43 00:02:03,920 --> 00:02:07,040 This should cause the removal of that summary. 44 00:02:07,040 --> 00:02:08,600 Let's make sure by hopping back over 45 00:02:08,600 --> 00:02:11,250 to router 7 we'll simply look at our routes again. 46 00:02:11,250 --> 00:02:15,210 And we see that we have all of the 100.100 routes back again. 47 00:02:15,210 --> 00:02:17,460 So we have all four subnets. 48 00:02:17,460 --> 00:02:20,750 So now let's get rid of one of these subnets using the area 49 00:02:20,750 --> 00:02:23,270 range not advertised command. 50 00:02:23,270 --> 00:02:29,438 We'll go ahead and pick on this route, the 100.100.110.0. 51 00:02:29,438 --> 00:02:32,640 So back over to router 6. 52 00:02:32,640 --> 00:02:39,760 And we'll say area 200 range, 100.100.110.0 with its mask. 53 00:02:39,760 --> 00:02:43,330 And we'll say not advertise. 54 00:02:43,330 --> 00:02:45,700 Now an interesting thing to note here, 55 00:02:45,700 --> 00:02:48,490 we're not even actually summarizing. 56 00:02:48,490 --> 00:02:55,970 This is already a /24, and we're summarizing it to a /24. 57 00:02:55,970 --> 00:02:59,470 So we're not really even summarizing it, are we? 58 00:02:59,470 --> 00:03:03,100 Instead what we're doing is just matching on an existing route, 59 00:03:03,100 --> 00:03:05,200 and saying not advertise. 60 00:03:05,200 --> 00:03:08,750 Now, understand this feature will work either way. 61 00:03:08,750 --> 00:03:13,900 So we could put a range here, and it would not advertise 62 00:03:13,900 --> 00:03:15,520 everything in that range. 63 00:03:15,520 --> 00:03:18,730 In this case, we're just picking on that one particular route, 64 00:03:18,730 --> 00:03:21,850 but just be aware that you don't actually 65 00:03:21,850 --> 00:03:25,450 have to do summarization in order for this process 66 00:03:25,450 --> 00:03:26,960 to kick in. 67 00:03:26,960 --> 00:03:29,260 So if we jump back over to router 7 now 68 00:03:29,260 --> 00:03:32,920 and we look at our routes again, we see that as expected, 69 00:03:32,920 --> 00:03:34,820 we have the other three subnets. 70 00:03:34,820 --> 00:03:38,110 We have the 100, the 120, and the 130. 71 00:03:38,110 --> 00:03:40,870 But the 110 is, in fact, missing. 72 00:03:40,870 --> 00:03:43,690 It is now being filtered out by the area 73 00:03:43,690 --> 00:03:46,160 range not advertise command. 74 00:03:46,160 --> 00:03:48,100 So let's go back over to router 6. 75 00:03:48,100 --> 00:03:49,510 The first thing we'll do is let's 76 00:03:49,510 --> 00:03:51,230 take that command back out. 77 00:03:51,230 --> 00:03:53,935 So if we verify on 7 again, they should all be back. 78 00:03:53,935 --> 00:03:56,450 79 00:03:56,450 --> 00:03:58,930 And we can see that they are. 80 00:03:58,930 --> 00:04:02,140 And now let's demonstrate what I was talking about about 81 00:04:02,140 --> 00:04:03,980 doing it as an actual range. 82 00:04:03,980 --> 00:04:06,100 So, again, if we go back to 6 here, 83 00:04:06,100 --> 00:04:10,010 but now we change this back to the range like we did before, 84 00:04:10,010 --> 00:04:15,070 we'll do the /16 again, this will prevent all the routes 85 00:04:15,070 --> 00:04:17,560 in that range from being advertise. 86 00:04:17,560 --> 00:04:20,589 Once, again, we'll go back over to seven, look at our routes 87 00:04:20,589 --> 00:04:21,380 again. 88 00:04:21,380 --> 00:04:26,140 And we see that now we're missing all of the 100.100 89 00:04:26,140 --> 00:04:27,500 subnets. 90 00:04:27,500 --> 00:04:30,370 So, again, this can be used on a single route 91 00:04:30,370 --> 00:04:33,310 or a range of routes just like a normal summary. 92 00:04:33,310 --> 00:04:37,430 So this allows us to see how we can use this for filtering. 93 00:04:37,430 --> 00:04:40,300 So now let's change this back to the original summary again. 94 00:04:40,300 --> 00:04:43,390 To do this we would have to go back to router 6. 95 00:04:43,390 --> 00:04:46,300 We'll take out the existing area range command. 96 00:04:46,300 --> 00:04:48,070 This should put all the routes back. 97 00:04:48,070 --> 00:04:51,260 98 00:04:51,260 --> 00:04:54,120 We can see here that it has. 99 00:04:54,120 --> 00:04:58,030 Then we'll put the summary back in as it originally was. 100 00:04:58,030 --> 00:05:00,790 So it had a cost of 100, and, of course, 101 00:05:00,790 --> 00:05:01,980 we take the no off of it. 102 00:05:01,980 --> 00:05:04,620 We'll verify it one last time over on router 7, 103 00:05:04,620 --> 00:05:10,800 and we can see that we're now back to the 100.100.0.0/16 with 104 00:05:10,800 --> 00:05:14,360 a cost of 101. 105 00:05:14,360 --> 00:05:17,300 So in this video, we just took a look 106 00:05:17,300 --> 00:05:19,940 how we can use the area range command, 107 00:05:19,940 --> 00:05:22,910 along with the not advertise option 108 00:05:22,910 --> 00:05:28,700 as an actual way of filtering routes between areas in OSPF. 109 00:05:28,700 --> 00:05:31,880 Now keep in mind one big limitation 110 00:05:31,880 --> 00:05:34,850 to filtering routes this way in OSPF 111 00:05:34,850 --> 00:05:37,550 is, first, we can only do it on the ABR, 112 00:05:37,550 --> 00:05:40,490 but that's OK because that's the only place that we 113 00:05:40,490 --> 00:05:43,130 can filter in OSPF anyway. 114 00:05:43,130 --> 00:05:47,600 But we can only do this on the originating ABR. 115 00:05:47,600 --> 00:05:51,920 So the ABR that would normally be doing the summarization, 116 00:05:51,920 --> 00:05:55,790 but rather in this case we're doing filtering. 117 00:05:55,790 --> 00:05:57,950 I hope this has been informative for you, 118 00:05:57,950 --> 00:06:01,030 and I'd like to thank you for viewing. 119 00:06:01,030 --> 00:06:04,000