1 00:00:00,000 --> 00:00:02,892 [AUDIO LOGO] 2 00:00:02,892 --> 00:00:07,230 3 00:00:07,230 --> 00:00:10,860 Next, let's talk about prefix suppression. 4 00:00:10,860 --> 00:00:13,440 The idea behind prefix suppression 5 00:00:13,440 --> 00:00:18,150 is we want to take the networks or prefixes on the transit 6 00:00:18,150 --> 00:00:21,420 links between our routers and keep them out 7 00:00:21,420 --> 00:00:23,190 of the routing table. 8 00:00:23,190 --> 00:00:27,210 The reason for this is in most environmental environments, 9 00:00:27,210 --> 00:00:31,860 all we care about is getting to end-device networks-- 10 00:00:31,860 --> 00:00:36,750 in other words, where our hosts are or printers or servers. 11 00:00:36,750 --> 00:00:39,720 Those are the destinations we care about. 12 00:00:39,720 --> 00:00:44,220 Traffic is not destined to a link between two routers. 13 00:00:44,220 --> 00:00:46,710 That's never a destination. 14 00:00:46,710 --> 00:00:48,840 That's just a transit link. 15 00:00:48,840 --> 00:00:52,500 So there's really no need for all those transit links 16 00:00:52,500 --> 00:00:54,850 to be in our routing table. 17 00:00:54,850 --> 00:00:58,170 Now, that said, there is a little bit 18 00:00:58,170 --> 00:01:01,020 of a debate on this topic among engineers. 19 00:01:01,020 --> 00:01:04,170 Some engineers actually like to have the transit 20 00:01:04,170 --> 00:01:05,940 links in their routing table. 21 00:01:05,940 --> 00:01:09,000 They think it makes the traces and stuff like that 22 00:01:09,000 --> 00:01:10,360 easier to read. 23 00:01:10,360 --> 00:01:12,970 And if that's what you prefer, then certainly, 24 00:01:12,970 --> 00:01:15,910 there's no need to turn on this feature. 25 00:01:15,910 --> 00:01:19,650 However, if you prefer to keep those prefixes out 26 00:01:19,650 --> 00:01:23,580 of your routing table, this is an easy way to do it. 27 00:01:23,580 --> 00:01:27,910 Now, keep in mind, a future skill in this course 28 00:01:27,910 --> 00:01:30,310 is going to cover filtering. 29 00:01:30,310 --> 00:01:34,950 And we can, of course, filter all these routes out manually 30 00:01:34,950 --> 00:01:36,370 if we wanted to. 31 00:01:36,370 --> 00:01:40,650 But that would be a massive administrative overhead 32 00:01:40,650 --> 00:01:41,970 nightmare. 33 00:01:41,970 --> 00:01:46,150 This allows us to do it very quick, very easy. 34 00:01:46,150 --> 00:01:48,780 All we have to do is know the rules. 35 00:01:48,780 --> 00:01:52,000 And that's what we're going to be talking about in this video. 36 00:01:52,000 --> 00:01:53,880 What does it suppress? 37 00:01:53,880 --> 00:01:55,870 What gets advertised? 38 00:01:55,870 --> 00:01:57,780 So we'll take a look at those rules. 39 00:01:57,780 --> 00:01:59,070 They're fairly simple. 40 00:01:59,070 --> 00:02:01,110 And then we'll jump into the command line 41 00:02:01,110 --> 00:02:04,210 and actually see prefix suppression in action. 42 00:02:04,210 --> 00:02:07,020 So again, let's take a quick look at those rules 43 00:02:07,020 --> 00:02:10,580 and then jump into the CLI. 44 00:02:10,580 --> 00:02:13,080 So although we may not have said it directly, 45 00:02:13,080 --> 00:02:18,080 I think we pretty much implied that prefix suppression is used 46 00:02:18,080 --> 00:02:22,130 to reduce the size of both the link-state database 47 00:02:22,130 --> 00:02:26,180 and the routing table in our core network. 48 00:02:26,180 --> 00:02:28,700 And again, the way this functions 49 00:02:28,700 --> 00:02:34,040 is by automatically suppressing transit links. 50 00:02:34,040 --> 00:02:37,370 However, it still allows the advertisement 51 00:02:37,370 --> 00:02:42,590 of things like edge networks, things like BGP next hops, 52 00:02:42,590 --> 00:02:46,830 which are quite commonly loopback interfaces. 53 00:02:46,830 --> 00:02:49,550 So we as administrators are going 54 00:02:49,550 --> 00:02:54,740 to control which prefixes get advertised and which ones get 55 00:02:54,740 --> 00:02:55,730 suppressed. 56 00:02:55,730 --> 00:02:58,940 But we're going to do it in a very easy way, 57 00:02:58,940 --> 00:03:01,490 not creating prefix lists and matching 58 00:03:01,490 --> 00:03:03,680 on actual prefixes and such. 59 00:03:03,680 --> 00:03:07,670 We're going to do it based on the interface. 60 00:03:07,670 --> 00:03:11,370 This is either done under the interface itself or, of course, 61 00:03:11,370 --> 00:03:12,980 under the routing process. 62 00:03:12,980 --> 00:03:18,840 But either way, it's configured per interface, not per prefix. 63 00:03:18,840 --> 00:03:20,690 So let's take a look at our topology 64 00:03:20,690 --> 00:03:23,150 and get an idea on what we're going 65 00:03:23,150 --> 00:03:26,870 to expect to see suppressed once we start enabling this feature 66 00:03:26,870 --> 00:03:29,280 and configuring it. 67 00:03:29,280 --> 00:03:33,330 So again, we're still on IS-IS Topology 1. 68 00:03:33,330 --> 00:03:35,790 And here's what we'll be looking for. 69 00:03:35,790 --> 00:03:38,430 If we go to any of these routers right now 70 00:03:38,430 --> 00:03:41,700 and we just do a show ip route isis, 71 00:03:41,700 --> 00:03:45,420 we're going to see all of these transit networks 72 00:03:45,420 --> 00:03:47,190 in our routing table. 73 00:03:47,190 --> 00:03:48,540 We have 50's. 74 00:03:48,540 --> 00:03:50,940 We have 172.16's. 75 00:03:50,940 --> 00:03:52,470 They're all over. 76 00:03:52,470 --> 00:03:53,970 And what we're going to be expecting 77 00:03:53,970 --> 00:03:57,300 to see is when we turn on prefix suppression, 78 00:03:57,300 --> 00:04:01,447 these will disappear out of our routing tables. 79 00:04:01,447 --> 00:04:03,030 And ultimately, what we're going to be 80 00:04:03,030 --> 00:04:07,320 looking for is just the loopback interfaces 81 00:04:07,320 --> 00:04:09,210 in our routing tables. 82 00:04:09,210 --> 00:04:12,580 That's going to be our goal in this section. 83 00:04:12,580 --> 00:04:15,750 So now let's jump over to the command line and configure 84 00:04:15,750 --> 00:04:18,399 prefix suppression. 85 00:04:18,399 --> 00:04:22,000 So let's just start off here on router 7 with a show ip 86 00:04:22,000 --> 00:04:23,950 route isis. 87 00:04:23,950 --> 00:04:26,500 And what we see is that we currently 88 00:04:26,500 --> 00:04:30,820 have all the device's loopbacks as well as some transit links. 89 00:04:30,820 --> 00:04:32,080 We see some 50's. 90 00:04:32,080 --> 00:04:34,360 We see some 172.16's. 91 00:04:34,360 --> 00:04:39,970 So what we want to do is remove these with prefix suppression. 92 00:04:39,970 --> 00:04:43,900 So let's start by doing this on router 1. 93 00:04:43,900 --> 00:04:47,650 And we can see how this is done on IOS XR. 94 00:04:47,650 --> 00:04:50,230 So configuring this feature is fairly easy. 95 00:04:50,230 --> 00:04:52,000 That's one of its advantages. 96 00:04:52,000 --> 00:04:53,710 If it was complicated, we wouldn't really 97 00:04:53,710 --> 00:04:55,520 have a need for the feature. 98 00:04:55,520 --> 00:04:58,510 So we go into address Family ipv4. 99 00:04:58,510 --> 00:05:04,870 And all we have to say is advertise passive-only. 100 00:05:04,870 --> 00:05:07,450 As the name implies, that means that we're 101 00:05:07,450 --> 00:05:11,840 going to be only advertising passive interfaces. 102 00:05:11,840 --> 00:05:14,650 So we'll go ahead and commit our configuration. 103 00:05:14,650 --> 00:05:16,960 And then let's go back over to router 7 104 00:05:16,960 --> 00:05:19,100 and see what's happened. 105 00:05:19,100 --> 00:05:22,790 So if we go to router 7 and we look at the exact same thing, 106 00:05:22,790 --> 00:05:26,410 we're going to notice that not much changed at this point, 107 00:05:26,410 --> 00:05:30,100 because, well, honestly, all the other routers are still 108 00:05:30,100 --> 00:05:32,230 advertising transit links. 109 00:05:32,230 --> 00:05:36,910 But something actually sort of important did happen. 110 00:05:36,910 --> 00:05:41,650 Router 1's loopback is no longer here in our routing table. 111 00:05:41,650 --> 00:05:44,770 And this is because we do not currently 112 00:05:44,770 --> 00:05:47,770 have our passive interfaces configured. 113 00:05:47,770 --> 00:05:51,220 Notice that the feature here is actually called 114 00:05:51,220 --> 00:05:54,100 advertise passive-only. 115 00:05:54,100 --> 00:05:57,010 It's not exactly called prefix suppression, 116 00:05:57,010 --> 00:05:59,140 although if you look through the documentation, 117 00:05:59,140 --> 00:06:01,930 that is what they call this feature. 118 00:06:01,930 --> 00:06:06,460 I want to compare and contrast this with OSPF in case 119 00:06:06,460 --> 00:06:08,210 you're used to that feature. 120 00:06:08,210 --> 00:06:13,480 So just for a reference here, OSPF prefix suppression 121 00:06:13,480 --> 00:06:15,650 sort of does the same thing. 122 00:06:15,650 --> 00:06:17,710 But here's where it's different. 123 00:06:17,710 --> 00:06:24,070 In OSPF, prefix suppression will still advertise passive 124 00:06:24,070 --> 00:06:30,250 interfaces, /32 host routes, usually because it's a loopback 125 00:06:30,250 --> 00:06:36,490 interface, and secondary addresses on interfaces. 126 00:06:36,490 --> 00:06:41,900 As you can see here, IS-IS does not behave the same way. 127 00:06:41,900 --> 00:06:45,610 We've lost the loopback on router 1 because it's not 128 00:06:45,610 --> 00:06:49,810 passive, even though it may be a /32. 129 00:06:49,810 --> 00:06:54,220 So in IS-IS, we do have to configure the interfaces 130 00:06:54,220 --> 00:06:59,120 properly to be passive, or we'll lose them. 131 00:06:59,120 --> 00:07:00,670 So clearly, we need to go back over 132 00:07:00,670 --> 00:07:03,350 to router 1 and fix this issue. 133 00:07:03,350 --> 00:07:05,380 So all we have to do-- 134 00:07:05,380 --> 00:07:07,660 go back into isis. 135 00:07:07,660 --> 00:07:10,300 Go back into our address family. 136 00:07:10,300 --> 00:07:13,250 Go into our interface loopback 0. 137 00:07:13,250 --> 00:07:15,380 And set it to passive. 138 00:07:15,380 --> 00:07:20,450 If we commit this change and again go back to router 7, 139 00:07:20,450 --> 00:07:22,220 once again, look at our routing table, 140 00:07:22,220 --> 00:07:27,110 of course, what we see is that router 1's loopback is right 141 00:07:27,110 --> 00:07:28,670 back here where it belongs. 142 00:07:28,670 --> 00:07:30,870 This is what we're looking for. 143 00:07:30,870 --> 00:07:34,040 Now, again, we're not going to see a massive change here 144 00:07:34,040 --> 00:07:37,020 until we configure the rest of the routers. 145 00:07:37,020 --> 00:07:41,270 So let's begin by going through the rest of our IOS XR routers. 146 00:07:41,270 --> 00:07:43,550 Since they're going to be configured exactly the same 147 00:07:43,550 --> 00:07:45,800 as router 1, we just need to turn 148 00:07:45,800 --> 00:07:51,080 on the advertise passive-only and turn on passive 149 00:07:51,080 --> 00:07:52,620 on the loopback. 150 00:07:52,620 --> 00:07:54,750 So since these are all going to be the same, 151 00:07:54,750 --> 00:07:58,080 we will simply copy and paste the configuration. 152 00:07:58,080 --> 00:08:00,530 So first, on router 2, we'll simply 153 00:08:00,530 --> 00:08:02,150 paste the configuration in. 154 00:08:02,150 --> 00:08:04,190 As you can see, all we're doing is 155 00:08:04,190 --> 00:08:06,560 turning on the advertise passive-only, 156 00:08:06,560 --> 00:08:09,770 going into the loopback, and setting it to be passive. 157 00:08:09,770 --> 00:08:12,260 We'll do the same thing on router 3. 158 00:08:12,260 --> 00:08:14,560 So we'll just paste it in here. 159 00:08:14,560 --> 00:08:15,925 That takes care of router 3. 160 00:08:15,925 --> 00:08:18,250 And finally, router 4. 161 00:08:18,250 --> 00:08:20,870 And router 4 is configured as well. 162 00:08:20,870 --> 00:08:25,240 So now let's go ahead and see how to do this on IOS XE. 163 00:08:25,240 --> 00:08:28,850 So let's move on to router 5. 164 00:08:28,850 --> 00:08:32,720 And to be honest, this is almost the same configuration. 165 00:08:32,720 --> 00:08:35,630 We still go into router isis. 166 00:08:35,630 --> 00:08:37,970 Now, we don't have to go into the address family here, 167 00:08:37,970 --> 00:08:41,250 since IPv4 is the default address family. 168 00:08:41,250 --> 00:08:46,250 So we can just, right here, say advertise passive-only. 169 00:08:46,250 --> 00:08:48,710 Then we can say to pass loopback 0. 170 00:08:48,710 --> 00:08:51,270 Again, this doesn't get configured under the interface, 171 00:08:51,270 --> 00:08:52,380 so to speak here. 172 00:08:52,380 --> 00:08:54,680 It's just under the process. 173 00:08:54,680 --> 00:08:57,260 And we can exit configuration. 174 00:08:57,260 --> 00:08:59,570 Once again, this will be exactly the same 175 00:08:59,570 --> 00:09:01,260 on all the other routers. 176 00:09:01,260 --> 00:09:04,320 So we'll just go ahead and paste this in. 177 00:09:04,320 --> 00:09:11,150 So router 6, router 7, router 8, and router 9. 178 00:09:11,150 --> 00:09:13,280 Router 10 is not running IS-IS. 179 00:09:13,280 --> 00:09:15,870 So it doesn't need the command. 180 00:09:15,870 --> 00:09:20,240 Now that this is configured on all the routers, now 181 00:09:20,240 --> 00:09:22,640 we can see what it actually does. 182 00:09:22,640 --> 00:09:25,262 Let's go back over here to router 7, 183 00:09:25,262 --> 00:09:26,720 since this is what we've been using 184 00:09:26,720 --> 00:09:28,610 as our looking-glass router. 185 00:09:28,610 --> 00:09:30,890 And once again, we'll just hit Up 186 00:09:30,890 --> 00:09:34,400 here, look at the routing table for isis. 187 00:09:34,400 --> 00:09:37,820 And as we can see, exactly what we wanted, 188 00:09:37,820 --> 00:09:43,060 only the loopback interfaces are now being advertised. 189 00:09:43,060 --> 00:09:47,920 As a quick note here, notice that router 5 and router 190 00:09:47,920 --> 00:09:53,590 8's loopback interfaces are both showing up here as /24's. 191 00:09:53,590 --> 00:09:57,010 Now, this is simply because we summarized them 192 00:09:57,010 --> 00:09:59,000 in a previous skill. 193 00:09:59,000 --> 00:10:01,990 However, note that that's not having anything 194 00:10:01,990 --> 00:10:06,310 to do with prefix suppression here in IS-IS. 195 00:10:06,310 --> 00:10:10,640 As long as that interface is passive, well, it's good to go. 196 00:10:10,640 --> 00:10:14,270 And IS-IS will then advertise it. 197 00:10:14,270 --> 00:10:18,340 So in this video, we took a look at prefix suppression 198 00:10:18,340 --> 00:10:23,650 in IS-IS, how we can use it to remove transit networks 199 00:10:23,650 --> 00:10:25,400 from our routing table. 200 00:10:25,400 --> 00:10:28,930 And again, sometimes this is preferable. 201 00:10:28,930 --> 00:10:31,420 Some people don't like this feature. 202 00:10:31,420 --> 00:10:35,240 It really is a personal choice as far as your environment, 203 00:10:35,240 --> 00:10:39,080 whether you want these routes in your routing table or not. 204 00:10:39,080 --> 00:10:42,970 But if you don't want them, this is a nice, quick, easy way 205 00:10:42,970 --> 00:10:44,260 to get rid of them. 206 00:10:44,260 --> 00:10:47,860 As you can see, with some very, very minor configuration, 207 00:10:47,860 --> 00:10:52,850 all of those transit links are gone out of our routing table. 208 00:10:52,850 --> 00:10:54,940 I hope this has been informative for you, 209 00:10:54,940 --> 00:10:58,050 and I'd like to thank you for viewing. 210 00:10:58,050 --> 00:11:01,000