1 00:00:00,000 --> 00:00:03,928 [AUDIO LOGO] 2 00:00:03,928 --> 00:00:08,070 3 00:00:08,070 --> 00:00:11,110 Our first step in configuring PIM sparse mode 4 00:00:11,110 --> 00:00:13,780 will be to enable multicast routing 5 00:00:13,780 --> 00:00:15,700 on the devices themselves. 6 00:00:15,700 --> 00:00:19,900 Multicast routing is not enabled on our routers by default. 7 00:00:19,900 --> 00:00:22,300 Just because a lot of companies choose 8 00:00:22,300 --> 00:00:24,850 not to use multicast routing, Cisco 9 00:00:24,850 --> 00:00:28,180 has elected not to enable that feature automatically. 10 00:00:28,180 --> 00:00:32,950 The next thing we have to do is enable PIM in sparse mode 11 00:00:32,950 --> 00:00:35,300 on the appropriate interfaces. 12 00:00:35,300 --> 00:00:37,660 So the first thing we should probably do here 13 00:00:37,660 --> 00:00:40,270 is bring up our topology diagram, 14 00:00:40,270 --> 00:00:43,450 get a look at what we're going to be building overall, 15 00:00:43,450 --> 00:00:47,710 and therefore which routers need multicast routing enabled 16 00:00:47,710 --> 00:00:49,850 and on which interfaces. 17 00:00:49,850 --> 00:00:53,200 So let's go ahead and start with our topology diagram. 18 00:00:53,200 --> 00:00:55,810 Then of course, we're going to jump into the command line 19 00:00:55,810 --> 00:00:58,270 and get PIM sparse mode up and running 20 00:00:58,270 --> 00:01:02,190 on our routers and interfaces. 21 00:01:02,190 --> 00:01:07,190 So for this skill, we are going to be on multicast topology 1. 22 00:01:07,190 --> 00:01:10,700 And in this topology, what we're going to be doing 23 00:01:10,700 --> 00:01:13,370 is we're going to use router 10 up here 24 00:01:13,370 --> 00:01:16,550 is the source for our multicast traffic. 25 00:01:16,550 --> 00:01:19,550 And we're going to use router 8 down here 26 00:01:19,550 --> 00:01:23,130 as the receiver or the client. 27 00:01:23,130 --> 00:01:25,970 So these two routers themselves will not 28 00:01:25,970 --> 00:01:27,890 be running multicast routing. 29 00:01:27,890 --> 00:01:30,950 That means where we do need multicast routing is 30 00:01:30,950 --> 00:01:33,170 going to be on everything else. 31 00:01:33,170 --> 00:01:36,330 Router 9 here is a little bit optional. 32 00:01:36,330 --> 00:01:40,220 We don't necessarily have to run multicast routing on router 9. 33 00:01:40,220 --> 00:01:42,740 We could do it for a redundant path 34 00:01:42,740 --> 00:01:46,170 in case this link were to file or something along those lines. 35 00:01:46,170 --> 00:01:48,830 But we don't really need it on router 9 either. 36 00:01:48,830 --> 00:01:51,170 We're going to be focusing on routers 1 37 00:01:51,170 --> 00:01:54,900 through 7 for our multicast environment. 38 00:01:54,900 --> 00:01:56,900 Now, that means that we're going to want 39 00:01:56,900 --> 00:01:59,690 to turn on multicast routing on all 40 00:01:59,690 --> 00:02:03,100 of the interfaces on these devices. 41 00:02:03,100 --> 00:02:06,180 So that would take care of all of the interfaces facing 42 00:02:06,180 --> 00:02:07,350 other routers. 43 00:02:07,350 --> 00:02:11,050 But don't forget that on the first hop router, 44 00:02:11,050 --> 00:02:14,710 we also need PIM on the interface facing the source. 45 00:02:14,710 --> 00:02:19,150 So we would need this on gigabit 2 on router 6 as well. 46 00:02:19,150 --> 00:02:22,540 And we need the same thing on the receiver side. 47 00:02:22,540 --> 00:02:27,630 So on gigabit 3 on router 7, our last hop router, 48 00:02:27,630 --> 00:02:29,910 we will need PIM enabled there as well. 49 00:02:29,910 --> 00:02:32,430 Because again, a Cisco router will not 50 00:02:32,430 --> 00:02:36,610 forward the traffic if PIM is not enabled on that interface. 51 00:02:36,610 --> 00:02:38,940 So these are the interfaces and routers 52 00:02:38,940 --> 00:02:41,220 that we're going to need to enable PIM on. 53 00:02:41,220 --> 00:02:43,710 Let's go ahead and jump over to the command line 54 00:02:43,710 --> 00:02:46,800 and get that working. 55 00:02:46,800 --> 00:02:48,770 So we'll begin here on router 1. 56 00:02:48,770 --> 00:02:54,320 And on IOS XR, we'll do this by going into multicast routing. 57 00:02:54,320 --> 00:02:57,215 Under the multicast routing configuration mode, 58 00:02:57,215 --> 00:02:59,090 the next thing we're going to want to do here 59 00:02:59,090 --> 00:03:02,370 is go into the appropriate address family. 60 00:03:02,370 --> 00:03:05,780 So we'll simply say address family ipv4. 61 00:03:05,780 --> 00:03:08,910 And then we need to start enabling our interfaces. 62 00:03:08,910 --> 00:03:11,540 So here we'll say interface. 63 00:03:11,540 --> 00:03:14,990 And we'll start with gig 0/0/0/0. 64 00:03:14,990 --> 00:03:16,790 And all we have to do for right now 65 00:03:16,790 --> 00:03:19,620 is simply enable each interface. 66 00:03:19,620 --> 00:03:23,190 So next we'll do gigabit 1. 67 00:03:23,190 --> 00:03:28,440 This router also needs gigabit 2 and gigabit 3. 68 00:03:28,440 --> 00:03:30,750 Now, this does include the interface up 69 00:03:30,750 --> 00:03:33,420 to router 9 just in case we decide 70 00:03:33,420 --> 00:03:35,190 to do that at some point. 71 00:03:35,190 --> 00:03:39,730 We'll commit these changes, exit configuration. 72 00:03:39,730 --> 00:03:42,660 And now if we do a show PIM interface, 73 00:03:42,660 --> 00:03:45,390 we'll see that PIM is now enabled 74 00:03:45,390 --> 00:03:47,610 on all of those interfaces. 75 00:03:47,610 --> 00:03:52,470 The default version of PIM here on IOS XR is PIM version 2. 76 00:03:52,470 --> 00:03:55,350 And we currently see that we don't actually 77 00:03:55,350 --> 00:03:56,922 have any neighbors. 78 00:03:56,922 --> 00:03:58,380 Now, it is a little bit interesting 79 00:03:58,380 --> 00:04:01,860 to note here that it lists the neighbors as 1 80 00:04:01,860 --> 00:04:04,240 because it counts itself. 81 00:04:04,240 --> 00:04:07,235 But once we get neighbors actually up and working, 82 00:04:07,235 --> 00:04:08,610 we'll see that this will actually 83 00:04:08,610 --> 00:04:11,730 change to 2 when it's a point-to-point connection 84 00:04:11,730 --> 00:04:13,540 between two routers. 85 00:04:13,540 --> 00:04:16,200 So keep in mind that that neighbor count of 1 86 00:04:16,200 --> 00:04:19,000 is simply the router referring to itself. 87 00:04:19,000 --> 00:04:23,080 So now let's go do the same configuration on router 2. 88 00:04:23,080 --> 00:04:25,340 Again, this will be almost identical. 89 00:04:25,340 --> 00:04:29,270 However, this does have less interfaces. 90 00:04:29,270 --> 00:04:31,270 So again, we simply go into multicast 91 00:04:31,270 --> 00:04:33,560 routing configuration mode. 92 00:04:33,560 --> 00:04:35,780 And just another quick note, there 93 00:04:35,780 --> 00:04:38,960 is also a router PIM configuration mode 94 00:04:38,960 --> 00:04:42,650 that we will use to configure things about PIM itself. 95 00:04:42,650 --> 00:04:45,150 But just to enable multicast routing, 96 00:04:45,150 --> 00:04:46,700 this is all we have to do. 97 00:04:46,700 --> 00:04:49,280 And this does include actually enabling 98 00:04:49,280 --> 00:04:51,330 PIM on those interfaces. 99 00:04:51,330 --> 00:04:54,750 Now, we can do that in PIM configuration mode as well. 100 00:04:54,750 --> 00:04:57,510 We can also go into interfaces and enable them. 101 00:04:57,510 --> 00:05:00,870 However, we don't have to do that if we enable it here. 102 00:05:00,870 --> 00:05:04,310 But again, there is still that router PIM configuration mode 103 00:05:04,310 --> 00:05:07,310 that we'll use later for configuring specific things 104 00:05:07,310 --> 00:05:09,230 about PIM itself. 105 00:05:09,230 --> 00:05:12,140 Again, the next thing is to go into the address family 106 00:05:12,140 --> 00:05:13,760 and then into the interfaces. 107 00:05:13,760 --> 00:05:19,670 Now, on this router we need gigabit 0, 1, and 2. 108 00:05:19,670 --> 00:05:21,530 Commit the changes. 109 00:05:21,530 --> 00:05:23,730 Exit configuration. 110 00:05:23,730 --> 00:05:26,640 Let's do our show PIM interface again. 111 00:05:26,640 --> 00:05:28,650 So notice two things here. 112 00:05:28,650 --> 00:05:30,680 The first is we do, in fact, have PIM 113 00:05:30,680 --> 00:05:33,900 enabled on the three interfaces that we enabled it on, 114 00:05:33,900 --> 00:05:36,090 our gigabit 0, 1, and 2. 115 00:05:36,090 --> 00:05:41,160 But also note that on gigabit 0, which is the one facing router 116 00:05:41,160 --> 00:05:44,640 1, the neighbor count is now 2. 117 00:05:44,640 --> 00:05:48,990 That's because it actually has a neighborship with router 1. 118 00:05:48,990 --> 00:05:52,470 If we do a show PIM neighbor, we can actually 119 00:05:52,470 --> 00:05:55,950 see how on the gigabit 0 interface, 120 00:05:55,950 --> 00:06:00,390 it's actually listing both neighbors, router 1, which 121 00:06:00,390 --> 00:06:04,380 is the 12.1, and of course, this router, router 2, 122 00:06:04,380 --> 00:06:06,300 which is the 12.2. 123 00:06:06,300 --> 00:06:09,990 So we can see how it's listing itself as well as 124 00:06:09,990 --> 00:06:13,100 the other legitimate neighbor. 125 00:06:13,100 --> 00:06:15,320 Next we'll do router 3. 126 00:06:15,320 --> 00:06:18,535 Now, we've seen IOS XR a few times now. 127 00:06:18,535 --> 00:06:20,660 So we'll just go ahead and paste this configuration 128 00:06:20,660 --> 00:06:22,130 in since we've already seen it. 129 00:06:22,130 --> 00:06:25,880 This router needs interfaces 0, 1, and 3. 130 00:06:25,880 --> 00:06:29,240 We can, of course, verify with the show PIM interface. 131 00:06:29,240 --> 00:06:31,370 We see that this is now enabled. 132 00:06:31,370 --> 00:06:35,300 And we can see here that it has a neighbor count of 2 133 00:06:35,300 --> 00:06:37,950 on the gigabit 0/0/0/1 interface, 134 00:06:37,950 --> 00:06:40,400 which would be the interface up to router 1. 135 00:06:40,400 --> 00:06:43,040 So again, if we do a show PIM neighbor, 136 00:06:43,040 --> 00:06:49,010 we can see that the neighborship on gigabit 0/0/0/1 is in fact 137 00:06:49,010 --> 00:06:51,860 up between router 1 and router 3. 138 00:06:51,860 --> 00:06:53,750 So finally let's do router 4. 139 00:06:53,750 --> 00:06:57,840 Once again, we'll simply paste that configuration. 140 00:06:57,840 --> 00:07:03,360 This is just two interfaces, gigabit 0/0/0/0 and 0/0/0/1. 141 00:07:03,360 --> 00:07:05,940 Just for a final verification, let's just 142 00:07:05,940 --> 00:07:09,090 go ahead and jump right to the show PIM neighbor this time. 143 00:07:09,090 --> 00:07:11,050 Because if the neighbors are up, of course, 144 00:07:11,050 --> 00:07:12,540 the interfaces are enabled. 145 00:07:12,540 --> 00:07:15,600 And we see that on both our gigabit 0 and our gigabit 1 146 00:07:15,600 --> 00:07:18,520 interface, we are listing two routers. 147 00:07:18,520 --> 00:07:20,760 So the first one here on gigabit 0 148 00:07:20,760 --> 00:07:23,400 is the neighborship between routers 3 and 4. 149 00:07:23,400 --> 00:07:26,850 And the second one is between routers 2 and 4. 150 00:07:26,850 --> 00:07:30,960 So this tells us, of course, that router 4 here is in fact 151 00:07:30,960 --> 00:07:33,840 up with routers 2 and 3. 152 00:07:33,840 --> 00:07:36,190 So, so far, everything looks good. 153 00:07:36,190 --> 00:07:39,280 So now let's move on to router 5, which, of course, 154 00:07:39,280 --> 00:07:41,920 is our first IOS XE router. 155 00:07:41,920 --> 00:07:43,930 So this configuration is, of course, 156 00:07:43,930 --> 00:07:45,730 going to be a little bit different. 157 00:07:45,730 --> 00:07:48,780 So we'll, of course, start by going into configuration mode, 158 00:07:48,780 --> 00:07:52,300 and then we have to enable multicast routing globally. 159 00:07:52,300 --> 00:07:56,100 So we say ip multicast-routing. 160 00:07:56,100 --> 00:08:01,420 And just a quick note here, depending on the IOS version, 161 00:08:01,420 --> 00:08:04,450 you might just have to hit Enter right here. 162 00:08:04,450 --> 00:08:08,680 Some versions of IOS XE, however, this version included, 163 00:08:08,680 --> 00:08:12,040 we have to actually add the keyword distributed. 164 00:08:12,040 --> 00:08:13,610 Let's take a look. 165 00:08:13,610 --> 00:08:15,700 Notice that if we hit the question mark, 166 00:08:15,700 --> 00:08:19,030 we can, of course, enable this for a particular VRF. 167 00:08:19,030 --> 00:08:22,120 Or we can say distributed as I just mentioned. 168 00:08:22,120 --> 00:08:25,820 But notice that hitting Enter here is not an option. 169 00:08:25,820 --> 00:08:28,360 It simply tells us it's incomplete. 170 00:08:28,360 --> 00:08:31,520 Even if I were to say vrf, give it, of course, 171 00:08:31,520 --> 00:08:34,460 a name for a VRF, we'll say default, 172 00:08:34,460 --> 00:08:36,760 it still wants the keyword distributed. 173 00:08:36,760 --> 00:08:39,309 So on this particular platform, we 174 00:08:39,309 --> 00:08:43,690 are going to have to say distributed and hit Enter. 175 00:08:43,690 --> 00:08:47,650 So that enables multicast routing for the whole router. 176 00:08:47,650 --> 00:08:51,160 If we were to do a show IP interface, what we'll see 177 00:08:51,160 --> 00:08:53,440 is, of course, that by default, that doesn't 178 00:08:53,440 --> 00:08:55,660 enable PIM on any interfaces. 179 00:08:55,660 --> 00:08:59,080 That's simply enabling multicast routing globally. 180 00:08:59,080 --> 00:09:02,850 So now we have to go into each individual interface. 181 00:09:02,850 --> 00:09:05,910 On router 5, we're going to need interface gigabit 1. 182 00:09:05,910 --> 00:09:09,510 And we enable this by typing ip pim. 183 00:09:09,510 --> 00:09:11,760 And here we can see a lot of different choices. 184 00:09:11,760 --> 00:09:15,760 But what we're looking for right now is to enable sparse mode. 185 00:09:15,760 --> 00:09:18,750 So if we say sparse, notice it's going 186 00:09:18,750 --> 00:09:21,570 to stop here because we could either say sparse mode 187 00:09:21,570 --> 00:09:24,330 or sparse dense mode. 188 00:09:24,330 --> 00:09:26,580 Sparse dense mode is sort of an older 189 00:09:26,580 --> 00:09:29,220 way of supporting Auto RP. 190 00:09:29,220 --> 00:09:31,870 We'll talk more about that a little bit later. 191 00:09:31,870 --> 00:09:34,870 But for now we just want sparse mode. 192 00:09:34,870 --> 00:09:37,780 So we'll say sparse-mode. 193 00:09:37,780 --> 00:09:40,840 Also just a quick note on that as we see our neighbors coming 194 00:09:40,840 --> 00:09:44,380 up here, if you just say sparse, it 195 00:09:44,380 --> 00:09:46,660 will actually default to sparse mode 196 00:09:46,660 --> 00:09:48,470 instead of sparse dense mode. 197 00:09:48,470 --> 00:09:50,530 We'll do that on the other interfaces. 198 00:09:50,530 --> 00:09:53,680 For example, if I said interface gigabit 2, 199 00:09:53,680 --> 00:09:56,230 and then I were to say ip pim sparse 200 00:09:56,230 --> 00:10:00,040 and not actually finish the command, it will take that. 201 00:10:00,040 --> 00:10:02,860 It doesn't take it as an ambiguous command. 202 00:10:02,860 --> 00:10:05,210 We can see the neighbors already coming up. 203 00:10:05,210 --> 00:10:07,180 So that should give us a pretty good indicator 204 00:10:07,180 --> 00:10:08,510 that it enabled it. 205 00:10:08,510 --> 00:10:10,630 But in what mode? 206 00:10:10,630 --> 00:10:16,490 Well, if we say do show run for interface gigabit 2, 207 00:10:16,490 --> 00:10:21,110 we'll see that it actually put it in as IP PIM sparse mode. 208 00:10:21,110 --> 00:10:23,600 So this is sort of a unique little command 209 00:10:23,600 --> 00:10:27,650 that it defaults to sparse mode when there is technically 210 00:10:27,650 --> 00:10:32,900 an ambiguous choice, which would be sparse-dense-mode. 211 00:10:32,900 --> 00:10:34,790 So just an interesting thing to note. 212 00:10:34,790 --> 00:10:37,910 It does, of course, make it easier for us to type it in. 213 00:10:37,910 --> 00:10:40,400 And we rarely need sparse dense mode. 214 00:10:40,400 --> 00:10:42,740 So this is usually fine. 215 00:10:42,740 --> 00:10:45,930 Just keep in mind that if you do need sparse dense mode, 216 00:10:45,930 --> 00:10:47,930 you're going to have to type the whole thing in. 217 00:10:47,930 --> 00:10:50,090 Because otherwise, it will default here 218 00:10:50,090 --> 00:10:53,700 to just sparse mode if all you type is sparse. 219 00:10:53,700 --> 00:10:55,740 So we can exit configuration. 220 00:10:55,740 --> 00:10:58,440 Let's do a show IP PIM interface. 221 00:10:58,440 --> 00:11:00,470 So we see now that our two interfaces 222 00:11:00,470 --> 00:11:02,030 are, in fact, running PIM. 223 00:11:02,030 --> 00:11:04,280 We see that they are in version 2. 224 00:11:04,280 --> 00:11:07,400 The S indicates that they are in sparse mode. 225 00:11:07,400 --> 00:11:09,290 We see that we have two neighbors 226 00:11:09,290 --> 00:11:10,970 on each of these interfaces. 227 00:11:10,970 --> 00:11:12,560 And what's interesting about this 228 00:11:12,560 --> 00:11:16,590 is if we say show IP PIM neighbors, what we'll see 229 00:11:16,590 --> 00:11:21,480 is here on IOS XE, it's only actually listing the neighbors. 230 00:11:21,480 --> 00:11:24,720 It doesn't list ourselves on this output. 231 00:11:24,720 --> 00:11:29,610 Just a minor difference between IOS XR and IOS XE. 232 00:11:29,610 --> 00:11:32,460 So we see here that router 5 is up 233 00:11:32,460 --> 00:11:35,370 with routers 1 and 3 on the gigabit 1 234 00:11:35,370 --> 00:11:36,960 interface as it should be. 235 00:11:36,960 --> 00:11:42,360 And on interface 2, it is up with neighbors 4 and 2. 236 00:11:42,360 --> 00:11:44,710 So this appears to be working correctly. 237 00:11:44,710 --> 00:11:47,040 Let's go ahead and do router 6. 238 00:11:47,040 --> 00:11:50,710 Once again, router 6 is almost an identical configuration. 239 00:11:50,710 --> 00:11:53,400 So we'll just go ahead and paste the configuration in. 240 00:11:53,400 --> 00:11:56,250 This is going to get enabled on two interfaces, 241 00:11:56,250 --> 00:11:58,440 gigabit 1 and gigabit 2. 242 00:11:58,440 --> 00:12:01,620 We can see here that the neighborship with router 1 243 00:12:01,620 --> 00:12:04,360 has already come up as it should. 244 00:12:04,360 --> 00:12:08,500 We can, of course, verify that with a show IP PIM neighbor. 245 00:12:08,500 --> 00:12:10,420 We see that this neighborship is up. 246 00:12:10,420 --> 00:12:12,480 It's been up for 23 seconds. 247 00:12:12,480 --> 00:12:15,060 And it is PIM version 2. 248 00:12:15,060 --> 00:12:18,190 Let's go ahead and configure router 7 as well. 249 00:12:18,190 --> 00:12:20,820 Once again, almost identical configuration, 250 00:12:20,820 --> 00:12:23,460 just two different interfaces as gigabit 2 251 00:12:23,460 --> 00:12:25,650 and gigabit 3 on router 7. 252 00:12:25,650 --> 00:12:27,510 Once again, we see our neighborship 253 00:12:27,510 --> 00:12:30,400 with router 3 this time coming up. 254 00:12:30,400 --> 00:12:32,940 And if we do the show IP PIM neighbor, 255 00:12:32,940 --> 00:12:35,250 we'll see that neighborship is up. 256 00:12:35,250 --> 00:12:37,860 And, again, it's version 2. 257 00:12:37,860 --> 00:12:39,870 So that brings all of our neighborships 258 00:12:39,870 --> 00:12:42,520 up as we need them. 259 00:12:42,520 --> 00:12:47,100 So in this video, we saw how to enable PIM sparse mode 260 00:12:47,100 --> 00:12:51,690 on both IOS XR and IOS XE. 261 00:12:51,690 --> 00:12:55,590 We saw that we had to enable it globally and then also enable 262 00:12:55,590 --> 00:12:57,850 it on each interface. 263 00:12:57,850 --> 00:13:00,660 Now, that, of course, is done a little bit differently 264 00:13:00,660 --> 00:13:03,180 between XR and XE. 265 00:13:03,180 --> 00:13:08,170 But the same basic process had to happen on both platforms. 266 00:13:08,170 --> 00:13:10,230 Now, none of this does us any good, 267 00:13:10,230 --> 00:13:14,220 particularly with sparse mode, until we have a rendezvous 268 00:13:14,220 --> 00:13:15,040 point. 269 00:13:15,040 --> 00:13:17,730 So we need to configure a rendezvous point. 270 00:13:17,730 --> 00:13:20,520 And that's exactly what we're going to do next. 271 00:13:20,520 --> 00:13:23,880 Until then, I hope this has been informative for you. 272 00:13:23,880 --> 00:13:26,990 And I'd like to thank you for viewing. 273 00:13:26,990 --> 00:13:31,000