1 00:00:00,000 --> 00:00:03,297 [AUDIO LOGO] 2 00:00:03,297 --> 00:00:08,020 3 00:00:08,020 --> 00:00:10,420 So now that we have a game plan together, 4 00:00:10,420 --> 00:00:12,520 our first step with configuration 5 00:00:12,520 --> 00:00:18,790 is going to be to configure our iBGP peers in AS 65001 6 00:00:18,790 --> 00:00:21,340 and 65002. 7 00:00:21,340 --> 00:00:23,600 So that's what we're going to be doing in this video. 8 00:00:23,600 --> 00:00:25,780 Let's once again bring up our topology 9 00:00:25,780 --> 00:00:28,390 just as a reminder of what we're going to be building here, 10 00:00:28,390 --> 00:00:30,220 and then we'll jump into the command line 11 00:00:30,220 --> 00:00:34,030 and get these neighborships up and running. 12 00:00:34,030 --> 00:00:37,140 So the part that we'll be setting up in this video 13 00:00:37,140 --> 00:00:42,240 is we'll be neighboring up router 1 to router 2, router 1 14 00:00:42,240 --> 00:00:48,990 to router 5, router 1 to router 4, and router 1 to router 3. 15 00:00:48,990 --> 00:00:52,620 Then we'll jump over to AS 65002, 16 00:00:52,620 --> 00:00:56,040 and we'll set up that neighborship between router 6 17 00:00:56,040 --> 00:00:58,590 and router 7. 18 00:00:58,590 --> 00:01:05,670 Keep in mind with this design of iBGP neighborships in 65001, 19 00:01:05,670 --> 00:01:09,120 we're ultimately going to need router 1 to be a route 20 00:01:09,120 --> 00:01:10,230 reflector. 21 00:01:10,230 --> 00:01:15,330 This, of course, is because of BGP's rule of split horizon 22 00:01:15,330 --> 00:01:19,050 where we can't take an update from an iBGP neighbor 23 00:01:19,050 --> 00:01:22,470 and send it to another iBGP neighbor. 24 00:01:22,470 --> 00:01:27,180 That's of course why iBGP normally has to be a full mesh, 25 00:01:27,180 --> 00:01:30,240 and as we can see here, we're clearly not building 26 00:01:30,240 --> 00:01:33,940 out 65001 as a full mesh. 27 00:01:33,940 --> 00:01:36,970 So we're going to have to do more in that AS 28 00:01:36,970 --> 00:01:39,250 as we go through our design here. 29 00:01:39,250 --> 00:01:42,060 But for now, we want to leave it as it is. 30 00:01:42,060 --> 00:01:44,610 In other words, just building the neighborships 31 00:01:44,610 --> 00:01:46,740 so we can actually see the problems that 32 00:01:46,740 --> 00:01:50,770 come up before we make router 1 a route reflector. 33 00:01:50,770 --> 00:01:52,950 So again that will happen, but it 34 00:01:52,950 --> 00:01:54,820 will happen a little bit later. 35 00:01:54,820 --> 00:02:00,930 Now technically in 65002 we do have a full mesh 36 00:02:00,930 --> 00:02:03,000 because there's only two routers and they're 37 00:02:03,000 --> 00:02:04,600 going to peer with each other. 38 00:02:04,600 --> 00:02:10,470 So 65002 is not going to have a problem, but 65001 will. 39 00:02:10,470 --> 00:02:13,930 Just so we're aware of it going in, we're expecting that, 40 00:02:13,930 --> 00:02:16,360 but we also want to examine it. 41 00:02:16,360 --> 00:02:18,810 So now let's go ahead and jump into the command line 42 00:02:18,810 --> 00:02:20,080 and get started. 43 00:02:20,080 --> 00:02:23,640 We may as well begin on router 1 since clearly it has 44 00:02:23,640 --> 00:02:26,720 the most amount of work to do. 45 00:02:26,720 --> 00:02:29,720 So the first thing we have to do is create our process. 46 00:02:29,720 --> 00:02:32,270 So it's going to be router BGP and, of course, 47 00:02:32,270 --> 00:02:35,560 the AS here is 65001. 48 00:02:35,560 --> 00:02:37,900 We'll set our router ID. 49 00:02:37,900 --> 00:02:39,910 We'll just set it to its loopback address, which 50 00:02:39,910 --> 00:02:43,910 is 10.1.1.1, and then we'll begin configuring our address 51 00:02:43,910 --> 00:02:46,550 family IPv4 unicast. 52 00:02:46,550 --> 00:02:49,640 Since router 1 is actually going to have a significant amount 53 00:02:49,640 --> 00:02:52,070 of configuration here, let's go ahead 54 00:02:52,070 --> 00:02:55,320 and use a neighbor group on router 1. 55 00:02:55,320 --> 00:02:57,960 We'll call it iBGP_PEERS. 56 00:02:57,960 --> 00:03:00,120 And since they're iBGP, that means 57 00:03:00,120 --> 00:03:02,790 that they're going to be in the same remote AS. 58 00:03:02,790 --> 00:03:06,660 We also said we were going to peer using our loopbacks, 59 00:03:06,660 --> 00:03:11,220 so we'll set our update source to loopback 0. 60 00:03:11,220 --> 00:03:14,310 And, of course, we want to activate the address family. 61 00:03:14,310 --> 00:03:16,110 Next, let's configure our neighbors 62 00:03:16,110 --> 00:03:18,220 to actually use this neighbor group. 63 00:03:18,220 --> 00:03:21,760 So first we'll do neighbor 10.2.2.2, 64 00:03:21,760 --> 00:03:23,580 And we'll say use neighbor-group, 65 00:03:23,580 --> 00:03:27,660 and we'll put in our name iBGP_PEERS. 66 00:03:27,660 --> 00:03:30,060 Now we're going to do the same thing for the other three 67 00:03:30,060 --> 00:03:31,180 neighbors. 68 00:03:31,180 --> 00:03:34,320 So let's just go ahead and change the addresses. 69 00:03:34,320 --> 00:03:39,990 It's going to be neighboring up with 3, 4, and 5. 70 00:03:39,990 --> 00:03:44,230 We'll commit our changes, and we'll exit configuration. 71 00:03:44,230 --> 00:03:48,000 So next let's hop over and configure router 2. 72 00:03:48,000 --> 00:03:51,390 Again, this is going to be in 65001. 73 00:03:51,390 --> 00:03:56,220 We'll set its BGP router ID, enable our address family, 74 00:03:56,220 --> 00:03:59,310 and here we'll just configure router 1. 75 00:03:59,310 --> 00:04:02,820 Again, iBGP so it's the same AS number. 76 00:04:02,820 --> 00:04:07,230 We'll set our update source, and activate our address family. 77 00:04:07,230 --> 00:04:09,270 Exit configuration. 78 00:04:09,270 --> 00:04:12,010 And we should see that neighborship come up. 79 00:04:12,010 --> 00:04:14,040 So it got buried in the other console messages 80 00:04:14,040 --> 00:04:16,680 there a little bit, but if we look at this line, 81 00:04:16,680 --> 00:04:18,810 we can see that the neighbor did come up. 82 00:04:18,810 --> 00:04:21,730 To make it easier, we'll do a show BGP summary, 83 00:04:21,730 --> 00:04:24,510 and we can see that the neighborship with router 1 84 00:04:24,510 --> 00:04:26,100 is in fact up. 85 00:04:26,100 --> 00:04:27,930 It's been up for 17 seconds. 86 00:04:27,930 --> 00:04:30,670 It hasn't exchanged any prefixes yet. 87 00:04:30,670 --> 00:04:33,330 However, the fact that that is a number 88 00:04:33,330 --> 00:04:38,160 indicates that it's actually up, even though that number is 0. 89 00:04:38,160 --> 00:04:40,050 Next, we configure routers 3 and 4. 90 00:04:40,050 --> 00:04:43,080 They get an identical configuration to router 2, 91 00:04:43,080 --> 00:04:46,000 so we'll do a little bit of copying and pasting here, 92 00:04:46,000 --> 00:04:48,790 but we will have to change the router ID. 93 00:04:48,790 --> 00:04:52,860 So let's start off putting that configuration in Notepad. 94 00:04:52,860 --> 00:04:55,330 So this is the configuration we're going to be using. 95 00:04:55,330 --> 00:05:00,411 We just need to change our router ID here to be router 3. 96 00:05:00,411 --> 00:05:02,800 Highlight everything and copy it. 97 00:05:02,800 --> 00:05:05,800 And then back on router 3 we simply paste it. 98 00:05:05,800 --> 00:05:07,810 We should see router 1 come up. 99 00:05:07,810 --> 00:05:09,280 It did. 100 00:05:09,280 --> 00:05:12,070 So then we can see that router 1 has been up for 4 seconds, 101 00:05:12,070 --> 00:05:15,290 and now let's grab the config for router 4. 102 00:05:15,290 --> 00:05:18,260 Again, we'll change the 3 to a 4. 103 00:05:18,260 --> 00:05:23,600 Highlight everything, copy it, and paste it on router 4. 104 00:05:23,600 --> 00:05:26,670 And again router 1 is up. 105 00:05:26,670 --> 00:05:31,200 Now we can't exactly copy and paste directly onto router 5 106 00:05:31,200 --> 00:05:34,860 just because it is iOS XE, so it's slightly different. 107 00:05:34,860 --> 00:05:37,510 We'll just do that one manually. 108 00:05:37,510 --> 00:05:40,940 Still, of course, we create the BGP process. 109 00:05:40,940 --> 00:05:44,350 We'll still set the router ID, but here we go directly 110 00:05:44,350 --> 00:05:45,980 to neighbor configuration. 111 00:05:45,980 --> 00:05:47,950 So it's router 1. 112 00:05:47,950 --> 00:05:50,410 And then, of course, the settings for those neighbors 113 00:05:50,410 --> 00:05:54,700 actually go on the neighbor statements in iOS XE. 114 00:05:54,700 --> 00:05:57,730 So we'll set the update source to loopback 0. 115 00:05:57,730 --> 00:05:59,560 So here we can see that router 1 came up, 116 00:05:59,560 --> 00:06:02,600 but we'll still do our show BGP summary. 117 00:06:02,600 --> 00:06:07,120 And we can see that router 1 has been up for 22 seconds. 118 00:06:07,120 --> 00:06:11,670 So that takes care of all of our neighborships in AS 65001. 119 00:06:11,670 --> 00:06:14,550 Now let's go do AS 65002. 120 00:06:14,550 --> 00:06:17,290 We'll just jump into router 6. 121 00:06:17,290 --> 00:06:20,230 Again, this is 65002. 122 00:06:20,230 --> 00:06:23,530 Well, of course, at the BGP router ID still, 123 00:06:23,530 --> 00:06:28,220 and we'll set up router 7 as our neighbor of course 124 00:06:28,220 --> 00:06:31,750 in the same AS since it's iBGP. 125 00:06:31,750 --> 00:06:35,800 Update loopback 0, and we'll exit configuration. 126 00:06:35,800 --> 00:06:39,190 It's going to be a very similar configuration on router 7, 127 00:06:39,190 --> 00:06:43,690 but since we have to mirror 3 out of our 4 commands anyway, 128 00:06:43,690 --> 00:06:47,480 it's not really necessarily worth using Notepad here. 129 00:06:47,480 --> 00:06:49,960 So again, BGP process. 130 00:06:49,960 --> 00:06:56,350 Set the router ID, the remote AS, and set the update source. 131 00:06:56,350 --> 00:07:00,640 Now something to note here, see that our neighborship came up 132 00:07:00,640 --> 00:07:03,610 before I even hit Enter on the update source 133 00:07:03,610 --> 00:07:05,590 loopback 0 command. 134 00:07:05,590 --> 00:07:10,540 The fact of the matter we're only creating a TCP session 135 00:07:10,540 --> 00:07:15,280 to exchange our BGP updates, and that session only 136 00:07:15,280 --> 00:07:19,000 has to happen between one pair of IP addresses. 137 00:07:19,000 --> 00:07:23,350 You don't technically need the update source loopback 0 138 00:07:23,350 --> 00:07:26,890 on both sites in a connection like this. 139 00:07:26,890 --> 00:07:31,630 If you have it, what it'll do is it'll create two TCP sessions 140 00:07:31,630 --> 00:07:35,150 and then tear one of them down, and at the end of the day, 141 00:07:35,150 --> 00:07:37,390 you only have one session left. 142 00:07:37,390 --> 00:07:40,420 Just like when my neighborship came up here, 143 00:07:40,420 --> 00:07:43,480 it had only formed one TCP session. 144 00:07:43,480 --> 00:07:45,400 And we know this because, of course, 145 00:07:45,400 --> 00:07:50,140 BGP will only accept the TCP connection 146 00:07:50,140 --> 00:07:52,720 from the neighboring address that 147 00:07:52,720 --> 00:07:54,920 matches its neighbor statement. 148 00:07:54,920 --> 00:07:58,210 So since router 6 was configured with a neighbor statement 149 00:07:58,210 --> 00:08:03,040 of 10.7.7.7, it would not have accepted our neighborship 150 00:08:03,040 --> 00:08:07,010 until we set the update source here. 151 00:08:07,010 --> 00:08:12,220 However, here on router 7, I set the neighbor as 10.6.6.6 152 00:08:12,220 --> 00:08:17,620 so I accepted its packets on TCP port 179, 153 00:08:17,620 --> 00:08:20,210 and our neighborship was established, 154 00:08:20,210 --> 00:08:21,850 and we came right up. 155 00:08:21,850 --> 00:08:24,940 It only ever established that one TCP session, 156 00:08:24,940 --> 00:08:27,440 but actually that's all we need. 157 00:08:27,440 --> 00:08:29,920 So you might be looking at this and maybe you're 158 00:08:29,920 --> 00:08:31,990 thinking to yourself, well, if we only 159 00:08:31,990 --> 00:08:35,030 need update source loopback 0 on one side, 160 00:08:35,030 --> 00:08:37,429 why do we always put it on both sides? 161 00:08:37,429 --> 00:08:40,870 And the answer is honestly best practice. 162 00:08:40,870 --> 00:08:42,909 It doesn't really have to be on both sides, 163 00:08:42,909 --> 00:08:44,960 but we normally put it there anyway, 164 00:08:44,960 --> 00:08:46,930 I just wanted to point that out so you 165 00:08:46,930 --> 00:08:49,780 can understand why our neighborship came up here 166 00:08:49,780 --> 00:08:54,460 before I even hit Enter on that update source loopback 0. 167 00:08:54,460 --> 00:08:56,380 So after that whole discussion it 168 00:08:56,380 --> 00:08:58,330 might be a little bit of a moot point, 169 00:08:58,330 --> 00:09:01,390 but let's still just do our show BGP summary 170 00:09:01,390 --> 00:09:04,660 just so we can verify that it is in fact up. 171 00:09:04,660 --> 00:09:06,850 And after all that explanation I did, 172 00:09:06,850 --> 00:09:09,580 it's actually been up 3 minutes now. 173 00:09:09,580 --> 00:09:14,560 So now we have our four iBGP neighborships up on router 1, 174 00:09:14,560 --> 00:09:20,050 and our one BGP neighborship up between routers 6 and 7 175 00:09:20,050 --> 00:09:24,850 in AS 65002. 176 00:09:24,850 --> 00:09:28,210 So in this video, we jumped into the command line 177 00:09:28,210 --> 00:09:31,510 and we got our iBGP neighbors set up 178 00:09:31,510 --> 00:09:39,340 in two ASs that need iBGP neighborships, AS 65001 and AS 179 00:09:39,340 --> 00:09:41,830 65002. 180 00:09:41,830 --> 00:09:45,280 Now, of course, we have to start setting up neighborships 181 00:09:45,280 --> 00:09:47,950 between our confederations, and that's 182 00:09:47,950 --> 00:09:50,990 exactly what we're going to do in the next video. 183 00:09:50,990 --> 00:09:52,830 I'll see you there. 184 00:09:52,830 --> 00:09:54,830 I hope this has been informative for you, 185 00:09:54,830 --> 00:09:57,910 and I'd like to thank you for viewing. 186 00:09:57,910 --> 00:10:01,003