1 00:00:00,000 --> 00:00:03,920 [AUDIO LOGO] 2 00:00:03,920 --> 00:00:08,050 3 00:00:08,050 --> 00:00:11,150 So now it's time to jump onto the command line 4 00:00:11,150 --> 00:00:13,790 and actually implement bidirectional 5 00:00:13,790 --> 00:00:16,260 PIM in our environment. 6 00:00:16,260 --> 00:00:19,490 However, before we can do that, we 7 00:00:19,490 --> 00:00:21,620 are going to have to make a change 8 00:00:21,620 --> 00:00:23,750 to our current environment. 9 00:00:23,750 --> 00:00:28,220 Right now, we are using anycast RP. 10 00:00:28,220 --> 00:00:32,090 And of course, the main idea behind anycast RP 11 00:00:32,090 --> 00:00:36,560 is the rendezvous points are essentially acting 12 00:00:36,560 --> 00:00:38,900 in an active-active role. 13 00:00:38,900 --> 00:00:43,550 This is why we had to have MSDP to cluster 14 00:00:43,550 --> 00:00:46,850 or synchronize the rendezvous points so that they 15 00:00:46,850 --> 00:00:48,980 would know all the information. 16 00:00:48,980 --> 00:00:52,340 That's fine for the control plane. 17 00:00:52,340 --> 00:00:54,210 That's no problem. 18 00:00:54,210 --> 00:01:00,500 But we can't have multiple active RPs in the data plane. 19 00:01:00,500 --> 00:01:02,660 That simply doesn't work. 20 00:01:02,660 --> 00:01:08,840 Now, with bidir PIM, can we still have redundant RPs? 21 00:01:08,840 --> 00:01:10,830 Yes, of course we can. 22 00:01:10,830 --> 00:01:15,020 But it has to be an active-standby scenario, 23 00:01:15,020 --> 00:01:20,240 sort of like what we can do with auto-RP or BSR, 24 00:01:20,240 --> 00:01:22,130 changing priorities. 25 00:01:22,130 --> 00:01:25,710 However, we can't have them active-active. 26 00:01:25,710 --> 00:01:27,410 So the first thing we're going to do 27 00:01:27,410 --> 00:01:32,100 is disable anycast RP in the environment. 28 00:01:32,100 --> 00:01:36,210 Then we'll change our tree over to be bidirectional. 29 00:01:36,210 --> 00:01:39,920 We will have to stop our current traffic flow to allow 30 00:01:39,920 --> 00:01:41,990 the current route to time out. 31 00:01:41,990 --> 00:01:45,830 That way, it can get rebuilt as a bidirectional tree. 32 00:01:45,830 --> 00:01:48,080 So let's take a look at our topology 33 00:01:48,080 --> 00:01:51,110 just real quickly so we know exactly what we're doing. 34 00:01:51,110 --> 00:01:53,360 And then we'll jump into the command line 35 00:01:53,360 --> 00:01:55,085 and make all of this happen. 36 00:01:55,085 --> 00:01:57,600 37 00:01:57,600 --> 00:01:59,840 So for this demonstration, we will still 38 00:01:59,840 --> 00:02:02,940 be on Multicast Topology 2. 39 00:02:02,940 --> 00:02:06,320 Just as a reminder, that means all of our routers 40 00:02:06,320 --> 00:02:08,300 are running IOS XE. 41 00:02:08,300 --> 00:02:11,850 And what we're going to be doing is configuring our environment 42 00:02:11,850 --> 00:02:15,890 so that only router 2 is the RP. 43 00:02:15,890 --> 00:02:19,190 Now, we'll go ahead and keep the current address 44 00:02:19,190 --> 00:02:23,090 we have on there of the 100.1.1.1, 45 00:02:23,090 --> 00:02:25,980 using its loopback 100 interface. 46 00:02:25,980 --> 00:02:29,030 However, we will be unconfiguring 47 00:02:29,030 --> 00:02:32,330 all of that information on router 4 48 00:02:32,330 --> 00:02:37,400 as well as taking down the MSDP peering between router 2 49 00:02:37,400 --> 00:02:38,810 and router 4. 50 00:02:38,810 --> 00:02:42,800 Once that's done, we will verify that our environment is still 51 00:02:42,800 --> 00:02:43,490 working. 52 00:02:43,490 --> 00:02:46,940 And then we'll convert everything over to bidir 53 00:02:46,940 --> 00:02:50,720 and take a look at what that changes in the environment 54 00:02:50,720 --> 00:02:53,990 as far as which devices are actually 55 00:02:53,990 --> 00:02:55,620 in the forwarding path. 56 00:02:55,620 --> 00:02:57,580 So let's go ahead and get started. 57 00:02:57,580 --> 00:03:02,100 We'll begin by reconfiguring router 4. 58 00:03:02,100 --> 00:03:04,710 So the first thing we want to do here on router 4 59 00:03:04,710 --> 00:03:08,640 is configure it not to be an RP candidate. 60 00:03:08,640 --> 00:03:13,020 So we'll start with the no ip pim rp-candidate 61 00:03:13,020 --> 00:03:15,510 on the loopback 100 interface. 62 00:03:15,510 --> 00:03:18,220 Since we're not using loopback 100 anymore, 63 00:03:18,220 --> 00:03:21,240 we can also say no interface loopback 100. 64 00:03:21,240 --> 00:03:23,200 That's no longer needed. 65 00:03:23,200 --> 00:03:27,840 And we want to take down the MSDP peering with router 2 66 00:03:27,840 --> 00:03:28,750 as well. 67 00:03:28,750 --> 00:03:35,250 So we'll simply say no ip msdp peer 10.2.2.2. 68 00:03:35,250 --> 00:03:37,650 We can exit configuration. 69 00:03:37,650 --> 00:03:40,980 And then we'll go make our modifications on router 2 70 00:03:40,980 --> 00:03:42,010 as well. 71 00:03:42,010 --> 00:03:46,380 So we see that router 2 knows that the MSDP peering 72 00:03:46,380 --> 00:03:49,000 session is already going down. 73 00:03:49,000 --> 00:03:51,120 So all we really need to do on this side 74 00:03:51,120 --> 00:03:53,160 is remove that configuration. 75 00:03:53,160 --> 00:03:58,680 We'll simply say, no ip msdp peer 10.4.4.4. 76 00:03:58,680 --> 00:04:01,410 Everything else on router 2 can stay the same 77 00:04:01,410 --> 00:04:04,300 because as it's still going to be an RP. 78 00:04:04,300 --> 00:04:07,510 And it's still going to use its loopback 100 interface. 79 00:04:07,510 --> 00:04:10,240 Let's go over to the BSR. 80 00:04:10,240 --> 00:04:14,170 And let's do a show ip pim rp map. 81 00:04:14,170 --> 00:04:19,329 And we see that we still know the RP as 100.1.1.1. 82 00:04:19,329 --> 00:04:24,070 And we're learning that information from 100.1.1.1. 83 00:04:24,070 --> 00:04:27,400 Problem is since that was an anycast address, 84 00:04:27,400 --> 00:04:31,720 there's no real way to verify that that's router 2 and not 85 00:04:31,720 --> 00:04:35,470 still router 4, except for the uptime. 86 00:04:35,470 --> 00:04:39,470 Notice the uptime on this is only 42 seconds. 87 00:04:39,470 --> 00:04:42,760 So it's a pretty good indicator that this information 88 00:04:42,760 --> 00:04:45,560 is coming strictly from router 2 at this point. 89 00:04:45,560 --> 00:04:48,020 And this is new information. 90 00:04:48,020 --> 00:04:53,230 So that said, let's go ahead and verify that our environment is 91 00:04:53,230 --> 00:04:56,140 still functional before we switch this over 92 00:04:56,140 --> 00:04:57,700 to bidirectional. 93 00:04:57,700 --> 00:05:01,510 To do that, let's go ahead and start our ping on router 10. 94 00:05:01,510 --> 00:05:04,930 And we'll verify that that traffic is actually 95 00:05:04,930 --> 00:05:07,420 getting to router 8. 96 00:05:07,420 --> 00:05:12,070 We'll do that, of course, by verifying router 7. 97 00:05:12,070 --> 00:05:14,530 We'll start with a show ip mroute. 98 00:05:14,530 --> 00:05:17,090 It should have the S comma G entry. 99 00:05:17,090 --> 00:05:18,880 We can see here that it does. 100 00:05:18,880 --> 00:05:21,500 If it didn't have the S comma G entry, of course, 101 00:05:21,500 --> 00:05:25,000 that pretty much indicates that the first packet didn't even 102 00:05:25,000 --> 00:05:27,415 get to router 7, but it has. 103 00:05:27,415 --> 00:05:32,460 104 00:05:32,460 --> 00:05:35,180 So if we do our show ip mroute count, 105 00:05:35,180 --> 00:05:39,380 we can see that it's currently forwarded 19 packets 106 00:05:39,380 --> 00:05:41,510 down the source-based tree. 107 00:05:41,510 --> 00:05:43,670 And again, we give it a few seconds. 108 00:05:43,670 --> 00:05:45,270 Look at it again. 109 00:05:45,270 --> 00:05:50,030 And we can see that now it has forwarded 24. 110 00:05:50,030 --> 00:05:54,530 So clearly, it is forwarding packets, and it is working. 111 00:05:54,530 --> 00:05:58,310 Now, what we don't want is all of this information 112 00:05:58,310 --> 00:06:02,120 to stay here as we switch over to bidir. 113 00:06:02,120 --> 00:06:04,130 So there's two things we have to do 114 00:06:04,130 --> 00:06:07,520 to allow all these routing entries to time out. 115 00:06:07,520 --> 00:06:11,190 First, we're, of course, going to have to stop the source. 116 00:06:11,190 --> 00:06:15,170 So let's go back over to router 10 and shut this down. 117 00:06:15,170 --> 00:06:18,780 And we want the star comma G to time out as well. 118 00:06:18,780 --> 00:06:22,550 So now let's go over to router 8, go into its gigabit 119 00:06:22,550 --> 00:06:24,050 1 interface. 120 00:06:24,050 --> 00:06:29,720 And say, no ip igmp join 224.1.1.1. 121 00:06:29,720 --> 00:06:32,330 We want to take this out of the group. 122 00:06:32,330 --> 00:06:34,880 At this point, we want to let all 123 00:06:34,880 --> 00:06:38,180 of the multicast routes on all of the devices time 124 00:06:38,180 --> 00:06:41,550 out or go around and clear all the tables. 125 00:06:41,550 --> 00:06:47,570 So at this point, we'll just forward until they time out. 126 00:06:47,570 --> 00:06:49,120 So now we've given it a moment. 127 00:06:49,120 --> 00:06:51,250 Let's hop over here to router 2. 128 00:06:51,250 --> 00:06:53,590 And let's do a show ip mroute. 129 00:06:53,590 --> 00:06:55,630 And what we see is all that's left 130 00:06:55,630 --> 00:07:00,020 is that default auto-RP group, which is perfectly fine. 131 00:07:00,020 --> 00:07:03,520 So now what we need to do is configure everything 132 00:07:03,520 --> 00:07:05,320 for bidirectional PIM. 133 00:07:05,320 --> 00:07:08,470 So the first thing we need to do is enable the feature 134 00:07:08,470 --> 00:07:10,150 on all the routers. 135 00:07:10,150 --> 00:07:13,700 The way we do this is we simply go into configuration mode. 136 00:07:13,700 --> 00:07:18,970 We type ip pim bidir-enable. 137 00:07:18,970 --> 00:07:20,870 That's all we have to do. 138 00:07:20,870 --> 00:07:24,100 So we'll go ahead and paste that in here on router 1. 139 00:07:24,100 --> 00:07:32,980 We just did router 2, router 3, router 4, router 5, router 6, 140 00:07:32,980 --> 00:07:36,520 and last but not least, router 7. 141 00:07:36,520 --> 00:07:40,300 So now all of our devices have been enabled 142 00:07:40,300 --> 00:07:43,210 to support bidirectional PIM. 143 00:07:43,210 --> 00:07:47,870 The next thing we have to do is configure the RP so 144 00:07:47,870 --> 00:07:53,510 router 2 to advertise itself as a bidir RP. 145 00:07:53,510 --> 00:07:57,560 So on the ip pim rp-candidate line, 146 00:07:57,560 --> 00:08:00,470 where we're advertising our loopback 100, 147 00:08:00,470 --> 00:08:05,150 we simply have to add bidir to the end of this statement. 148 00:08:05,150 --> 00:08:07,250 We'll go ahead and hit Enter. 149 00:08:07,250 --> 00:08:09,620 We can exit configuration. 150 00:08:09,620 --> 00:08:12,560 We'll give this just a few seconds to propagate. 151 00:08:12,560 --> 00:08:15,410 And then all of the devices should then 152 00:08:15,410 --> 00:08:21,540 be aware that router 2 is a bidir-capable rendezvous point. 153 00:08:21,540 --> 00:08:24,050 So let's use our chat window here. 154 00:08:24,050 --> 00:08:27,930 We'll do a show ip pim rp map. 155 00:08:27,930 --> 00:08:31,230 Notice that here on router 2, it's now 156 00:08:31,230 --> 00:08:35,559 added bidir to the end of the RP statement. 157 00:08:35,559 --> 00:08:38,530 All of the other routers should know this as well. 158 00:08:38,530 --> 00:08:40,740 Let's hop over to router 1. 159 00:08:40,740 --> 00:08:44,410 We see router 1 also has the bidir statement. 160 00:08:44,410 --> 00:08:47,280 So let's just verify all of them quickly. 161 00:08:47,280 --> 00:08:49,170 Router 3 has it. 162 00:08:49,170 --> 00:08:51,250 Router 4 has it. 163 00:08:51,250 --> 00:08:56,520 So does router 5, router 6, and router 7. 164 00:08:56,520 --> 00:08:59,640 So all of our PIM-enabled routers 165 00:08:59,640 --> 00:09:03,750 are aware that the RP is 100.1.1.1 166 00:09:03,750 --> 00:09:07,300 and it is bidir capable. 167 00:09:07,300 --> 00:09:10,460 Just a quick note here on the bidir statement-- 168 00:09:10,460 --> 00:09:15,340 this can also be put on the line, advertising a candidate 169 00:09:15,340 --> 00:09:18,580 RP into auto-RP as well. 170 00:09:18,580 --> 00:09:23,650 Or if we are doing static RP assignment, on the static RP 171 00:09:23,650 --> 00:09:27,250 line, there is also a place to put bidir. 172 00:09:27,250 --> 00:09:31,660 So regardless of how we're learning about the RP, 173 00:09:31,660 --> 00:09:36,070 there is a choice to configure bidir on every option. 174 00:09:36,070 --> 00:09:41,750 We just happen to be using BSR right now in our demonstration. 175 00:09:41,750 --> 00:09:43,630 So now that all of the routers are 176 00:09:43,630 --> 00:09:46,480 aware of the bidir-capable RP, let's 177 00:09:46,480 --> 00:09:50,780 go back over to router 8 and rejoin our group. 178 00:09:50,780 --> 00:09:53,350 So we'll simply take the "no" off the beginning here. 179 00:09:53,350 --> 00:09:55,030 Join the group again. 180 00:09:55,030 --> 00:09:57,460 We can exit configuration. 181 00:09:57,460 --> 00:10:00,770 Let's go back to router 10 and start our ping again 182 00:10:00,770 --> 00:10:02,170 so we have a source. 183 00:10:02,170 --> 00:10:05,680 And as usual, let's go back over to router 7 184 00:10:05,680 --> 00:10:08,660 and see if we're getting the S comma G entry. 185 00:10:08,660 --> 00:10:12,160 So if we do our show ip mroute, notice 186 00:10:12,160 --> 00:10:16,960 there's no S comma G entry, because this is bidir PIM. 187 00:10:16,960 --> 00:10:19,210 We shouldn't have one. 188 00:10:19,210 --> 00:10:26,230 Remember, in bidir, everything is going to be a shared tree. 189 00:10:26,230 --> 00:10:29,830 So notice, instead, what we have is 190 00:10:29,830 --> 00:10:32,230 first we have a flag on there, which 191 00:10:32,230 --> 00:10:37,150 is the capital B, indicating that this is a bidir group. 192 00:10:37,150 --> 00:10:40,780 We can also see that we have a bidir upstream, which 193 00:10:40,780 --> 00:10:44,170 is sort of like the incoming interface, so to speak, 194 00:10:44,170 --> 00:10:47,080 except with bidir, of course, we see 195 00:10:47,080 --> 00:10:49,730 that the same interface, gigabit 2, 196 00:10:49,730 --> 00:10:55,130 can be both bidir upstream as well as an outgoing interface. 197 00:10:55,130 --> 00:10:59,000 But the upstream is always going to be towards the rendezvous 198 00:10:59,000 --> 00:10:59,660 point. 199 00:10:59,660 --> 00:11:03,060 That's what the RPF check is going to be for here. 200 00:11:03,060 --> 00:11:05,600 So we see that the bidir upstream 201 00:11:05,600 --> 00:11:08,270 is gigabit 2 towards router 3. 202 00:11:08,270 --> 00:11:13,190 And then the outgoing interfaces are both interfaces 203 00:11:13,190 --> 00:11:17,210 gigabit 3 and gigabit 2 because we can, of course, 204 00:11:17,210 --> 00:11:21,180 forward traffic in both directions. 205 00:11:21,180 --> 00:11:24,690 If we do a show ip mroute count, notice 206 00:11:24,690 --> 00:11:28,710 that again, there's no source tree listed here anymore. 207 00:11:28,710 --> 00:11:31,150 It's just the RP tree. 208 00:11:31,150 --> 00:11:34,530 It has forwarded 59 packets so far. 209 00:11:34,530 --> 00:11:38,280 And if we hit Up, we can see that it's now 64. 210 00:11:38,280 --> 00:11:41,310 So once again, the environment is working, 211 00:11:41,310 --> 00:11:43,660 and we are forwarding traffic. 212 00:11:43,660 --> 00:11:46,140 However, let's take a look at this tree 213 00:11:46,140 --> 00:11:47,800 just a little bit more. 214 00:11:47,800 --> 00:11:52,660 So let's, for example, look at the rendezvous point, router 2. 215 00:11:52,660 --> 00:11:56,760 Let's do a show ip mroute here. 216 00:11:56,760 --> 00:11:58,960 Once again, what do we see? 217 00:11:58,960 --> 00:12:01,350 Well there's no S comma Gs. 218 00:12:01,350 --> 00:12:04,290 We see that our group has the B flag on it. 219 00:12:04,290 --> 00:12:08,970 We see that the bidir upstream is null because remember, 220 00:12:08,970 --> 00:12:12,690 the incoming interface on the rendezvous point 221 00:12:12,690 --> 00:12:14,430 is always null. 222 00:12:14,430 --> 00:12:17,400 But notice, on the outgoing interface list, 223 00:12:17,400 --> 00:12:20,460 we right now just have gigabit 2. 224 00:12:20,460 --> 00:12:22,560 That's currently the only direction 225 00:12:22,560 --> 00:12:25,050 that we've received the join from. 226 00:12:25,050 --> 00:12:28,210 Let's also take a look at the first-hop router. 227 00:12:28,210 --> 00:12:29,595 So let's look at router 6. 228 00:12:29,595 --> 00:12:34,550 229 00:12:34,550 --> 00:12:36,950 So notice, on the first-hop router, 230 00:12:36,950 --> 00:12:40,550 it is, of course, still flagged as bidirectional. 231 00:12:40,550 --> 00:12:44,450 But notice, it's not even for our specific group, 232 00:12:44,450 --> 00:12:47,900 because that join hasn't actually come here. 233 00:12:47,900 --> 00:12:53,480 We haven't gotten a star comma G join for that particular group, 234 00:12:53,480 --> 00:12:56,150 224.1.1.1. 235 00:12:56,150 --> 00:12:58,880 What it has done is it has received 236 00:12:58,880 --> 00:13:03,170 the traffic going to 224.1.1.1. 237 00:13:03,170 --> 00:13:07,220 It did a show ip pim rp map. 238 00:13:07,220 --> 00:13:08,870 And what did it find out? 239 00:13:08,870 --> 00:13:12,950 For that group, the RP is 100.1.1.1. 240 00:13:12,950 --> 00:13:18,360 So it did the RPF check that says to go to router 1, 241 00:13:18,360 --> 00:13:22,130 50.0.16.1, as the RPF neighbor. 242 00:13:22,130 --> 00:13:27,620 And it forwards up the tree using the bidir upstream, 243 00:13:27,620 --> 00:13:30,860 gigabit 1, towards router 1. 244 00:13:30,860 --> 00:13:34,740 So that's how this works on both sides of the tree 245 00:13:34,740 --> 00:13:38,290 as well as on the rendezvous point. 246 00:13:38,290 --> 00:13:43,170 So in this video, we set up and configured bidir PIM. 247 00:13:43,170 --> 00:13:45,690 And as we saw, a lot of the battle 248 00:13:45,690 --> 00:13:49,170 here was just getting everything cleared out, 249 00:13:49,170 --> 00:13:54,000 then enabling bidir PIM on all of the routers, 250 00:13:54,000 --> 00:13:58,050 setting bidir on the RP announcement. 251 00:13:58,050 --> 00:14:02,850 And again, that can be done either through BSR, auto-RP, 252 00:14:02,850 --> 00:14:04,890 or static RP assignment. 253 00:14:04,890 --> 00:14:08,220 We just have to add bidir to the end. 254 00:14:08,220 --> 00:14:10,260 What's interesting, by the way, is 255 00:14:10,260 --> 00:14:13,620 if you have not enabled bidir on that router 256 00:14:13,620 --> 00:14:16,960 yet, that command doesn't even show up. 257 00:14:16,960 --> 00:14:19,950 So you'll actually think you're looking in the wrong place. 258 00:14:19,950 --> 00:14:23,340 You have to enable bidir on the router first. 259 00:14:23,340 --> 00:14:27,750 Then you get that option on the RP announcement line. 260 00:14:27,750 --> 00:14:31,740 Now, once everybody knew about the bidir RP, 261 00:14:31,740 --> 00:14:33,540 we started up our source. 262 00:14:33,540 --> 00:14:35,370 We started up our receiver. 263 00:14:35,370 --> 00:14:39,070 And the traffic flowed through just as it normally would, 264 00:14:39,070 --> 00:14:43,010 except there was no SPT switchover. 265 00:14:43,010 --> 00:14:47,160 Everything flowed through the rendezvous point. 266 00:14:47,160 --> 00:14:51,710 We had no S comma G entries in any of our routing tables. 267 00:14:51,710 --> 00:14:55,490 Everything was star comma G. And also remember 268 00:14:55,490 --> 00:14:58,220 that on the upstream side of our tree, 269 00:14:58,220 --> 00:15:01,010 it didn't even go to the specific group. 270 00:15:01,010 --> 00:15:04,610 It just used the general RP mapping 271 00:15:04,610 --> 00:15:09,870 to know which way to send the traffic up the shared tree. 272 00:15:09,870 --> 00:15:12,710 So all of this is pretty cool. 273 00:15:12,710 --> 00:15:15,935 But we have another cool feature we have to look at-- 274 00:15:15,935 --> 00:15:18,350 source-specific multicast. 275 00:15:18,350 --> 00:15:24,380 And in a way, it's almost the opposite of bidir PIM, 276 00:15:24,380 --> 00:15:26,210 but not exactly. 277 00:15:26,210 --> 00:15:27,920 We're going to cover that next. 278 00:15:27,920 --> 00:15:31,460 Until then, I hope this has been informative for you, 279 00:15:31,460 --> 00:15:34,600 and I'd like to thank you for viewing. 280 00:15:34,600 --> 00:15:38,000