1 00:00:00,000 --> 00:00:03,952 [AUDIO LOGO] 2 00:00:03,952 --> 00:00:07,910 3 00:00:07,910 --> 00:00:13,280 So finally, let's use BGP as our CEPE. 4 00:00:13,280 --> 00:00:15,380 And one of the things we want to focus on 5 00:00:15,380 --> 00:00:19,460 is we work through this is how little work actually 6 00:00:19,460 --> 00:00:24,680 has to be done on the PE router in order to accomplish this. 7 00:00:24,680 --> 00:00:28,700 Yes, of course, we will have to configure BGP neighborships 8 00:00:28,700 --> 00:00:32,600 for the customer routers, but there's no additional protocols 9 00:00:32,600 --> 00:00:33,350 to run. 10 00:00:33,350 --> 00:00:35,870 There's no redistribution that we have to do. 11 00:00:35,870 --> 00:00:39,290 It really does save a lot of work on the PE 12 00:00:39,290 --> 00:00:42,860 and offloads that work to the CEs. 13 00:00:42,860 --> 00:00:45,380 We're going to be setting this up for customer B 14 00:00:45,380 --> 00:00:50,450 in our environment, and we will explore the one caveat 15 00:00:50,450 --> 00:00:53,240 that we do normally have to work with when 16 00:00:53,240 --> 00:00:56,960 handling BGP as the CEPE. 17 00:00:56,960 --> 00:01:02,810 That's simply that the customers will usually have the same AS 18 00:01:02,810 --> 00:01:05,269 number at multiple sites. 19 00:01:05,269 --> 00:01:09,170 In fact, they may only have one AS number total. 20 00:01:09,170 --> 00:01:13,170 And it may even be a private AS number that we gave them. 21 00:01:13,170 --> 00:01:15,560 And that's something that we'll have to deal with 22 00:01:15,560 --> 00:01:17,550 or the customer will. 23 00:01:17,550 --> 00:01:20,610 So we'll explore some of those options. 24 00:01:20,610 --> 00:01:23,395 So that said, let's take a look at our topology, 25 00:01:23,395 --> 00:01:25,520 so we can see where we're going to be running this. 26 00:01:25,520 --> 00:01:28,220 And then, of course, we'll jump into the command line 27 00:01:28,220 --> 00:01:34,770 and get BGP up and running as our CEPE for customer B. 28 00:01:34,770 --> 00:01:39,300 So as we mentioned, we will be configuring BGP for customer B 29 00:01:39,300 --> 00:01:41,760 down here, between their headquarters 30 00:01:41,760 --> 00:01:43,740 and their remote site. 31 00:01:43,740 --> 00:01:47,520 Now, the first thing we're going to need here for customer B 32 00:01:47,520 --> 00:01:49,900 is going to be an AS number. 33 00:01:49,900 --> 00:01:53,310 So we'll go ahead and configure their AS number 34 00:01:53,310 --> 00:01:58,950 on both sides as 65001. 35 00:01:58,950 --> 00:02:00,930 So we'll use this private AS number 36 00:02:00,930 --> 00:02:03,060 at both of their locations. 37 00:02:03,060 --> 00:02:05,010 And as we mentioned, that's going 38 00:02:05,010 --> 00:02:09,970 to push the redistribution job out here to the CE routers. 39 00:02:09,970 --> 00:02:12,420 Now, since all of the networks are directly 40 00:02:12,420 --> 00:02:16,930 connected to the CEs, we'll just do a redistribute connected. 41 00:02:16,930 --> 00:02:19,470 However, of course, in the real world, 42 00:02:19,470 --> 00:02:22,740 the customer would redistribute whatever core protocol 43 00:02:22,740 --> 00:02:24,340 they happen to be using. 44 00:02:24,340 --> 00:02:27,150 So let's go ahead and jump into the command line. 45 00:02:27,150 --> 00:02:30,780 Let's just start on router 7 and get the customer routers 46 00:02:30,780 --> 00:02:33,970 configured first. 47 00:02:33,970 --> 00:02:38,940 So let's go ahead and begin by configuring router BGP 65001. 48 00:02:38,940 --> 00:02:41,010 Then, we'll configure our neighbor. 49 00:02:41,010 --> 00:02:45,090 Our neighbor here is going to be 192.168.27.2. 50 00:02:45,090 --> 00:02:47,340 That's router 2's address. 51 00:02:47,340 --> 00:02:51,030 And the service provider is remote AS 100. 52 00:02:51,030 --> 00:02:53,730 Then let's do a redistribute connected 53 00:02:53,730 --> 00:02:55,770 and do a configuration. 54 00:02:55,770 --> 00:02:57,450 That's all there is. 55 00:02:57,450 --> 00:03:00,330 Now, obviously, the customer might 56 00:03:00,330 --> 00:03:02,850 want to redistribute something else, but, in this case, 57 00:03:02,850 --> 00:03:04,410 connected will be fine. 58 00:03:04,410 --> 00:03:07,235 We're going to do the same configuration on router 10. 59 00:03:07,235 --> 00:03:08,610 Of course, the neighbor's address 60 00:03:08,610 --> 00:03:13,860 is going to be different here, 192.168.51.5. 61 00:03:13,860 --> 00:03:16,800 It's, of course, in remote AS 100. 62 00:03:16,800 --> 00:03:19,500 And we'll still do redistribute connected. 63 00:03:19,500 --> 00:03:21,420 Now, we'll configure the PEs. 64 00:03:21,420 --> 00:03:23,940 Let's start on router 2. 65 00:03:23,940 --> 00:03:27,300 Let's begin by seeing, if we have any of our BGP route 66 00:03:27,300 --> 00:03:31,920 policies on this router, let's do a show rpo route policy. 67 00:03:31,920 --> 00:03:34,200 And we actually see that we don't have any route 68 00:03:34,200 --> 00:03:35,568 policies on this router. 69 00:03:35,568 --> 00:03:37,110 So that's going to be the first thing 70 00:03:37,110 --> 00:03:38,860 we're going to want to do. 71 00:03:38,860 --> 00:03:40,110 Let's do a route policy. 72 00:03:40,110 --> 00:03:44,220 Let's call it RP_ALL because all we're going to do 73 00:03:44,220 --> 00:03:46,450 is pass all the routes. 74 00:03:46,450 --> 00:03:47,950 So we'll end that policy. 75 00:03:47,950 --> 00:03:52,300 So now, we have a route policy to pass all the routes through. 76 00:03:52,300 --> 00:03:56,610 Now, we're going to router BGP 100 into the VRF for customer 77 00:03:56,610 --> 00:04:01,020 B, into our address family for IPv4 unicast, 78 00:04:01,020 --> 00:04:03,300 and we'll configure our neighbor. 79 00:04:03,300 --> 00:04:05,880 The neighbor here is going to be .7. 80 00:04:05,880 --> 00:04:10,590 That neighbor is a remote AS 65001. 81 00:04:10,590 --> 00:04:14,010 And for the address family, IPv4 here. 82 00:04:14,010 --> 00:04:18,000 We're going to put in our filters, RP_ALL. 83 00:04:18,000 --> 00:04:21,930 We'll use that same filter inbound and outbound 84 00:04:21,930 --> 00:04:23,520 to that neighbor. 85 00:04:23,520 --> 00:04:25,420 Because, at this point, at least, 86 00:04:25,420 --> 00:04:28,830 we want to send and receive all of the customer routes. 87 00:04:28,830 --> 00:04:31,170 We're not trying to do any filtering here. 88 00:04:31,170 --> 00:04:33,120 Let's commit our changes. 89 00:04:33,120 --> 00:04:35,530 And we can exit configuration. 90 00:04:35,530 --> 00:04:38,040 So here on the console, we see that neighborship just 91 00:04:38,040 --> 00:04:40,800 came up, which means that we should actually 92 00:04:40,800 --> 00:04:42,310 have some prefixes. 93 00:04:42,310 --> 00:04:49,530 So let's do show bgp vpnv4 unicast for the VRF customer B. 94 00:04:49,530 --> 00:04:52,290 And we see that we are, in fact, receiving updates 95 00:04:52,290 --> 00:04:54,300 from router 7. 96 00:04:54,300 --> 00:04:57,340 So, so far, this is looking good. 97 00:04:57,340 --> 00:05:00,720 Let's actually jump over and configure router 5 next. 98 00:05:00,720 --> 00:05:05,340 So router 5, we go into router BGP 100, 99 00:05:05,340 --> 00:05:09,150 into the address family ipv4 four unicast for the VRF 100 00:05:09,150 --> 00:05:17,040 customer B, and we configure our neighbor, 192.168.51.10, 101 00:05:17,040 --> 00:05:21,390 which is in remote AS 65001. 102 00:05:21,390 --> 00:05:24,720 We see the BGP neighborship come up, so let's verify. 103 00:05:24,720 --> 00:05:32,160 We'll do a do show bgp vpnv4 unicast for the VRF customer B. 104 00:05:32,160 --> 00:05:35,710 And we see all of the routes being learned through BGP. 105 00:05:35,710 --> 00:05:37,840 So this is looking good. 106 00:05:37,840 --> 00:05:40,860 Let's go ahead and jump out to router 10, 107 00:05:40,860 --> 00:05:43,350 and let's just do a show ip route. 108 00:05:43,350 --> 00:05:45,150 And unfortunately, we see nothing 109 00:05:45,150 --> 00:05:47,970 but local and connected. 110 00:05:47,970 --> 00:05:51,490 Well, we already know what the problem is here, 111 00:05:51,490 --> 00:05:56,940 but let's do a debug ip bgp update and clear 112 00:05:56,940 --> 00:05:59,790 our inbound BGP session. 113 00:05:59,790 --> 00:06:01,620 We'll turn off all the debugging. 114 00:06:01,620 --> 00:06:04,540 And we already see here what the problem is. 115 00:06:04,540 --> 00:06:06,930 We're getting all of these prefixes, 116 00:06:06,930 --> 00:06:11,880 but they're, of course, denied because they contain our AS 117 00:06:11,880 --> 00:06:13,060 number. 118 00:06:13,060 --> 00:06:16,720 Now, there are a few ways we can fix this. 119 00:06:16,720 --> 00:06:18,550 So let's take a look at a couple of them, 120 00:06:18,550 --> 00:06:20,260 and we'll talk about one of them. 121 00:06:20,260 --> 00:06:23,550 So we could simply do this. 122 00:06:23,550 --> 00:06:28,470 We could go back to router 5, go back up to our neighborship 123 00:06:28,470 --> 00:06:33,150 and just change the option and say as override. 124 00:06:33,150 --> 00:06:37,230 Let's go back over to router 10 and clear the updates again. 125 00:06:37,230 --> 00:06:39,420 We won't even leave the debug on this time. 126 00:06:39,420 --> 00:06:41,350 We'll just say what happens. 127 00:06:41,350 --> 00:06:43,170 And we see, just like that, we're 128 00:06:43,170 --> 00:06:45,810 now receiving all of the BGP updates 129 00:06:45,810 --> 00:06:48,850 because the AS is being removed. 130 00:06:48,850 --> 00:06:53,580 If I were to say, show ip bgp, we can see that what's happened 131 00:06:53,580 --> 00:06:57,780 is the 65001 that was put on by router 132 00:06:57,780 --> 00:07:03,150 7 has been removed and replaced with AS 100 133 00:07:03,150 --> 00:07:05,850 from the service provider. 134 00:07:05,850 --> 00:07:09,950 So as you can see, this is a very nice, clean solution, 135 00:07:09,950 --> 00:07:12,500 which is partially why it was created, 136 00:07:12,500 --> 00:07:15,740 that we can use to simply replace the customer's 137 00:07:15,740 --> 00:07:18,660 AS with the service providers. 138 00:07:18,660 --> 00:07:21,860 So now, let's go over and take a look at a different option. 139 00:07:21,860 --> 00:07:25,220 Let's configure this one on router 7 itself. 140 00:07:25,220 --> 00:07:27,440 Because we'll look first, but router 7 141 00:07:27,440 --> 00:07:30,030 is having the same problem. 142 00:07:30,030 --> 00:07:33,200 So again, jumping over to router 7, if I do a show ip route, 143 00:07:33,200 --> 00:07:36,127 we can see we have the exact same issue. 144 00:07:36,127 --> 00:07:38,210 Now, we don't have to do the debugging everything. 145 00:07:38,210 --> 00:07:40,250 We know what the problem is. 146 00:07:40,250 --> 00:07:44,100 However, we could fix it a slightly different way here. 147 00:07:44,100 --> 00:07:48,080 We could simply say, to allow our own AS 148 00:07:48,080 --> 00:07:50,390 in from that neighbor. 149 00:07:50,390 --> 00:07:56,280 If we do that, if we do our show ip route, give it a second. 150 00:07:56,280 --> 00:07:59,000 But here, we come across an interesting problem. 151 00:07:59,000 --> 00:08:03,180 Notice that after several refreshes of the routing table, 152 00:08:03,180 --> 00:08:05,600 and, in fact, I can do it again, we're 153 00:08:05,600 --> 00:08:09,570 still not getting the updates, even though we should be. 154 00:08:09,570 --> 00:08:12,470 So let's turn on our debug and see what's happening. 155 00:08:12,470 --> 00:08:14,750 Let's do our refresh again. 156 00:08:14,750 --> 00:08:16,940 That's a lot of input. 157 00:08:16,940 --> 00:08:20,990 Notice, all these routes-- wait, no, there's no routes. 158 00:08:20,990 --> 00:08:24,500 Let's go up to router 2 and see what's going on here. 159 00:08:24,500 --> 00:08:29,090 Because we're not even receiving the updates here on router 7. 160 00:08:29,090 --> 00:08:32,669 It's not a matter of our own AS being in the AS path. 161 00:08:32,669 --> 00:08:35,980 So let's go up to router 2 and see what's going on. 162 00:08:35,980 --> 00:08:41,419 On router 2, let's do a show BGP for the VRF customer B. 163 00:08:41,419 --> 00:08:44,600 And for our neighbor 7, let's see what routes 164 00:08:44,600 --> 00:08:47,310 are being advertised to it. 165 00:08:47,310 --> 00:08:52,130 We can see that this is a very, very long list of nothing. 166 00:08:52,130 --> 00:08:55,190 This explains a lot of what's going on router 7. 167 00:08:55,190 --> 00:08:57,500 It's not getting any of the updates. 168 00:08:57,500 --> 00:09:02,210 And the reason for this is because of IOS XR's behavior. 169 00:09:02,210 --> 00:09:07,130 It already knows that the path contains 65001, 170 00:09:07,130 --> 00:09:10,880 and it's not going to send those updates to a device 171 00:09:10,880 --> 00:09:14,390 that it knows is in 65001. 172 00:09:14,390 --> 00:09:17,870 So even though allow AS in is possibly 173 00:09:17,870 --> 00:09:20,210 a solution we could use here, it's 174 00:09:20,210 --> 00:09:24,380 not going to save us from having to do AS override here 175 00:09:24,380 --> 00:09:26,000 on router 2. 176 00:09:26,000 --> 00:09:29,660 So let's go back into configuration, back into router 177 00:09:29,660 --> 00:09:33,950 BGP 100, back into customer B. 178 00:09:33,950 --> 00:09:41,210 Then, we're going to configure our neighbor, 192.168.27.7, 179 00:09:41,210 --> 00:09:45,770 into the address family IPv4 unicast for that neighborship, 180 00:09:45,770 --> 00:09:49,250 and we're going to configure AS override. 181 00:09:49,250 --> 00:09:53,430 We'll commit those changes and exit configuration. 182 00:09:53,430 --> 00:09:56,270 Now, if we hop back over to router 7, 183 00:09:56,270 --> 00:09:59,210 we can see, since our debug was still running, 184 00:09:59,210 --> 00:10:01,970 that as soon as we got done configuring router 2, 185 00:10:01,970 --> 00:10:05,300 it went ahead and sent us all of the updates. 186 00:10:05,300 --> 00:10:08,210 Now, we'll turn off the bugs. 187 00:10:08,210 --> 00:10:11,120 We'll do a show ip bgp, and we'll 188 00:10:11,120 --> 00:10:14,910 see that the AS override is, in fact, what's in effect. 189 00:10:14,910 --> 00:10:18,710 So can allow AS in be an appropriate solution? 190 00:10:18,710 --> 00:10:22,370 Yes, but only if the other device is actually 191 00:10:22,370 --> 00:10:24,200 sending us the routes. 192 00:10:24,200 --> 00:10:29,150 Another possibility could be to have the service provider 193 00:10:29,150 --> 00:10:33,320 remove private ASs, assuming that the customers are 194 00:10:33,320 --> 00:10:34,970 using private ASs. 195 00:10:34,970 --> 00:10:38,060 So there could be multiple solutions to this, 196 00:10:38,060 --> 00:10:42,020 but the best one is going to be the AS override. 197 00:10:42,020 --> 00:10:44,180 Just to make sure everything is working, 198 00:10:44,180 --> 00:10:48,020 let's ping 10.10.10.10 and source it from our loopback 199 00:10:48,020 --> 00:10:49,620 zero interface. 200 00:10:49,620 --> 00:10:51,300 We can see that this is working. 201 00:10:51,300 --> 00:10:56,530 So now, we have BGP up and running as our CEPE. 202 00:10:56,530 --> 00:11:02,020 So in this video, we set up BGP as our CEPE. 203 00:11:02,020 --> 00:11:05,530 And as we saw, that was very easy to do. 204 00:11:05,530 --> 00:11:07,150 We configure a few neighborships. 205 00:11:07,150 --> 00:11:09,190 We have the prefixes go right through, 206 00:11:09,190 --> 00:11:11,860 no redistribution, no extra protocols. 207 00:11:11,860 --> 00:11:15,640 The only issue we had was when the neighboring sites 208 00:11:15,640 --> 00:11:17,900 are using the same AS number. 209 00:11:17,900 --> 00:11:21,160 So we had to do AS override or, possibly, 210 00:11:21,160 --> 00:11:23,900 one of the other solutions to fix that. 211 00:11:23,900 --> 00:11:27,710 But AS override is definitely the best solution. 212 00:11:27,710 --> 00:11:29,470 So that covers everything we need 213 00:11:29,470 --> 00:11:32,500 to discuss in this skill, which leaves us 214 00:11:32,500 --> 00:11:35,860 with just a review in the form of a quiz, 215 00:11:35,860 --> 00:11:38,060 and we're going to do that next. 216 00:11:38,060 --> 00:11:41,260 Until then, I hope this has been informative for you, 217 00:11:41,260 --> 00:11:44,220 and I'd like to thank you for viewing. 218 00:11:44,220 --> 00:11:48,000