1 00:00:00,000 --> 00:00:00,790 2 00:00:00,790 --> 00:00:04,960 Won't you please, won't you be my router? 3 00:00:04,960 --> 00:00:07,810 You know, a router's really only as good as its, first of all, 4 00:00:07,810 --> 00:00:09,970 knowledge of how to forward a packet 5 00:00:09,970 --> 00:00:14,480 and know where networks are and, secondly, its ability to do so. 6 00:00:14,480 --> 00:00:17,481 So for this discussion, I'd like to use this topology right 7 00:00:17,481 --> 00:00:17,980 here. 8 00:00:17,980 --> 00:00:22,120 This represents right here, for example, a VLAN, a network. 9 00:00:22,120 --> 00:00:23,990 And associated with that network, 10 00:00:23,990 --> 00:00:25,420 we've got a network address. 11 00:00:25,420 --> 00:00:26,830 And let's use 10.1.0. 12 00:00:26,830 --> 00:00:29,320 And we'll use, in this example, the first three 13 00:00:29,320 --> 00:00:32,590 numbers in the IP address to represent the network numbers. 14 00:00:32,590 --> 00:00:34,720 So down here, we have the 10.2.0 network. 15 00:00:34,720 --> 00:00:37,920 Between routers 1 and 2, we have the 10.3.0 network. 16 00:00:37,920 --> 00:00:40,810 Up here, we have the 10.4.0 network, and down here, 17 00:00:40,810 --> 00:00:42,970 the 10.5.0 network. 18 00:00:42,970 --> 00:00:46,960 Also, I've assigned IP addresses to each of the interfaces 19 00:00:46,960 --> 00:00:47,890 on the routers. 20 00:00:47,890 --> 00:00:50,020 And each of the interfaces on router 1 21 00:00:50,020 --> 00:00:53,140 ends in .1, just to make it really easy from a learning 22 00:00:53,140 --> 00:00:55,690 perspective to remember who owns those addresses. 23 00:00:55,690 --> 00:00:58,060 And then on router 2, each of its interfaces 24 00:00:58,060 --> 00:01:00,996 has a last number in its IP address of .2. 25 00:01:00,996 --> 00:01:02,620 So as an example, on this network right 26 00:01:02,620 --> 00:01:05,950 here, the 10.1.0 network, the router's interface 27 00:01:05,950 --> 00:01:11,950 has an IP address of 10.1.0.1, and this PC is at 10.1.0.11. 28 00:01:11,950 --> 00:01:15,550 So let's talk about training a router, router 1 and router 2, 29 00:01:15,550 --> 00:01:18,070 on how they can reach a given network. 30 00:01:18,070 --> 00:01:21,730 And there are three basic ways of training a router on how 31 00:01:21,730 --> 00:01:23,540 to reach a specific network. 32 00:01:23,540 --> 00:01:27,790 The first of those is simply to configure an IP address 33 00:01:27,790 --> 00:01:31,150 on an interface of a router, because once we configure an IP 34 00:01:31,150 --> 00:01:33,264 address on an interface, the router says, hey, 35 00:01:33,264 --> 00:01:34,680 I know how to get to this network. 36 00:01:34,680 --> 00:01:36,119 It's directly connected. 37 00:01:36,119 --> 00:01:37,660 Just like this interface right here-- 38 00:01:37,660 --> 00:01:39,850 1/0 on this router. 39 00:01:39,850 --> 00:01:41,800 If we configure the interface with the IP 40 00:01:41,800 --> 00:01:45,270 address of 10.1.0.1, it knows, badaboom, 41 00:01:45,270 --> 00:01:46,300 I'm directly connected. 42 00:01:46,300 --> 00:01:48,390 I know how to reach the 10.1.0 network. 43 00:01:48,390 --> 00:01:49,940 It's off of this interface. 44 00:01:49,940 --> 00:01:51,970 So that's option number one. 45 00:01:51,970 --> 00:01:54,910 The problem, however, is that the router is not going 46 00:01:54,910 --> 00:01:58,210 to learn about remote networks-- for example, the 10.4 network-- 47 00:01:58,210 --> 00:02:01,270 because router 1 is not directly connected to it. 48 00:02:01,270 --> 00:02:03,700 So for networks that are not directly connected 49 00:02:03,700 --> 00:02:08,229 to the router, option two would be to configure a static route. 50 00:02:08,229 --> 00:02:10,188 A static route is simply giving an instruction. 51 00:02:10,188 --> 00:02:12,520 Like, if somebody came over to your house and said, hey, 52 00:02:12,520 --> 00:02:14,590 how do I get to the nearest convenience store? 53 00:02:14,590 --> 00:02:16,880 You could probably tell them based on where you live. 54 00:02:16,880 --> 00:02:17,504 Think about it. 55 00:02:17,504 --> 00:02:19,050 You go down the street, make a left, 56 00:02:19,050 --> 00:02:20,884 and you give them the directions. 57 00:02:20,884 --> 00:02:22,300 Well, the same holds true if we're 58 00:02:22,300 --> 00:02:24,820 telling R1 and configuring R1 to tell it 59 00:02:24,820 --> 00:02:28,960 how to reach the 10.4.0 network, as an example, or the 10.5.0 60 00:02:28,960 --> 00:02:29,461 network. 61 00:02:29,461 --> 00:02:30,835 And so what we can do is we could 62 00:02:30,835 --> 00:02:32,590 go into the configuration of R1 and say, 63 00:02:32,590 --> 00:02:35,760 dear Mr. R1, if you ever need to forward a packet to the network 64 00:02:35,760 --> 00:02:38,650 10.5.0, here's what we want you to do. 65 00:02:38,650 --> 00:02:41,380 We want you to forward the packet out this interface 66 00:02:41,380 --> 00:02:44,080 and send it over here to your good buddy R2. 67 00:02:44,080 --> 00:02:45,040 And that's your job. 68 00:02:45,040 --> 00:02:47,540 And then because R2 is directly connected to that network, 69 00:02:47,540 --> 00:02:50,210 R2 already knows how to get to that 10.5 network. 70 00:02:50,210 --> 00:02:52,180 So those are two options to begin with-- 71 00:02:52,180 --> 00:02:54,130 configure a router interface to be directly 72 00:02:54,130 --> 00:02:57,130 connected to a network by giving that interface an IP address, 73 00:02:57,130 --> 00:02:59,770 and, for remote networks that aren't directly connected, 74 00:02:59,770 --> 00:03:02,560 we can configure a static route, specific instructions 75 00:03:02,560 --> 00:03:05,170 on how to forward a packet in the direction 76 00:03:05,170 --> 00:03:06,400 of that remote network. 77 00:03:06,400 --> 00:03:09,040 Now, the big bummer in most networks 78 00:03:09,040 --> 00:03:11,980 is that there are lots and lots of routes, 79 00:03:11,980 --> 00:03:14,920 and having these static routes for every single network 80 00:03:14,920 --> 00:03:17,050 is a pain in the bazooski. 81 00:03:17,050 --> 00:03:19,810 So instead of configuring static routes, 82 00:03:19,810 --> 00:03:21,850 the more popular and practical option 83 00:03:21,850 --> 00:03:25,940 is to configure and use a dynamic routing protocol. 84 00:03:25,940 --> 00:03:28,570 This is where the routers talk to each other. 85 00:03:28,570 --> 00:03:30,070 Now, they're not trying to take over 86 00:03:30,070 --> 00:03:32,740 the world by talking to each other, but what they will do 87 00:03:32,740 --> 00:03:35,680 is they will share with each other information about what 88 00:03:35,680 --> 00:03:38,234 they know regarding how to reach a network. 89 00:03:38,234 --> 00:03:40,150 So if we configured a dynamic routing protocol 90 00:03:40,150 --> 00:03:43,620 between R1 and R2, here are some things that they might say. 91 00:03:43,620 --> 00:03:47,540 R1 might say, hey, I can reach the 10.1.0 network 92 00:03:47,540 --> 00:03:49,090 and the 10.2.0 network. 93 00:03:49,090 --> 00:03:51,490 And, R1 says to R2, if you ever need 94 00:03:51,490 --> 00:03:53,290 to reach either of those networks, 95 00:03:53,290 --> 00:03:55,420 go ahead and send those packets to me, because I 96 00:03:55,420 --> 00:03:56,290 can reach them. 97 00:03:56,290 --> 00:03:59,560 And, conversely, R2 may say to R1, hey, thanks a lot. 98 00:03:59,560 --> 00:04:01,030 Hey, you know what, Mr. R1? 99 00:04:01,030 --> 00:04:05,050 I know how to reach, says R2, the 10.4.0 and the 10.5.0 100 00:04:05,050 --> 00:04:06,020 networks. 101 00:04:06,020 --> 00:04:08,230 So if you ever need to reach those networks, 102 00:04:08,230 --> 00:04:09,880 you can forward those packets to me, 103 00:04:09,880 --> 00:04:12,610 and I will forward them to those final destinations. 104 00:04:12,610 --> 00:04:15,280 And that's an example of a dynamic routing protocol 105 00:04:15,280 --> 00:04:17,500 configured on both routers so that they 106 00:04:17,500 --> 00:04:20,019 can share routing information and reachability 107 00:04:20,019 --> 00:04:21,550 information with each other. 108 00:04:21,550 --> 00:04:23,500 And the cool thing about it being dynamic-- 109 00:04:23,500 --> 00:04:26,500 if we lose a network or we change the topology, 110 00:04:26,500 --> 00:04:29,200 the dynamic routing protocols can dynamically 111 00:04:29,200 --> 00:04:31,810 update each other, so we don't have to manually go back 112 00:04:31,810 --> 00:04:34,420 in and statically configure different routes based 113 00:04:34,420 --> 00:04:35,764 on our topologies changing. 114 00:04:35,764 --> 00:04:37,180 In this Nugget, we've taken a look 115 00:04:37,180 --> 00:04:41,200 at the three most common methods for training a router on how 116 00:04:41,200 --> 00:04:43,340 to reach a specific network. 117 00:04:43,340 --> 00:04:45,580 I hope this has been informative for you, 118 00:04:45,580 --> 00:04:48,678 and I'd like to thank you for viewing. 119 00:04:48,678 --> 00:04:49,178