1 00:00:00,000 --> 00:00:00,730 2 00:00:00,730 --> 00:00:02,680 The method of using a static route 3 00:00:02,680 --> 00:00:06,250 implies that the administrator, or hopefully the administrator, 4 00:00:06,250 --> 00:00:09,370 is configuring specific instructions on the router 5 00:00:09,370 --> 00:00:12,460 to tell it how to reach, or how to forward a packet regarding 6 00:00:12,460 --> 00:00:13,780 a remote network. 7 00:00:13,780 --> 00:00:16,149 And we're going to leverage this topology once again 8 00:00:16,149 --> 00:00:18,910 in our discussion of three different categories 9 00:00:18,910 --> 00:00:20,410 of static routes. 10 00:00:20,410 --> 00:00:22,150 And the three categories of static routes 11 00:00:22,150 --> 00:00:24,799 would be specific routes to remote networks, 12 00:00:24,799 --> 00:00:26,340 or, we could have a static route that 13 00:00:26,340 --> 00:00:29,830 identifies how to reach a group, or a range of networks. 14 00:00:29,830 --> 00:00:33,280 Sometimes that's referred to as a summary of network addresses. 15 00:00:33,280 --> 00:00:34,990 And then we'd also have a default route 16 00:00:34,990 --> 00:00:37,420 that we can configure, which is kind like saying to the router, 17 00:00:37,420 --> 00:00:38,560 if you're not sure how to forward 18 00:00:38,560 --> 00:00:40,143 a packet to some network and you don't 19 00:00:40,143 --> 00:00:42,790 have any other more specific information, just go ahead 20 00:00:42,790 --> 00:00:43,910 and do this. 21 00:00:43,910 --> 00:00:45,580 So let's do examples of all three, 22 00:00:45,580 --> 00:00:47,680 regarding specific remote networks. 23 00:00:47,680 --> 00:00:49,870 If we had a PC right here who was 24 00:00:49,870 --> 00:00:54,010 trying to ping the 10.5.0.55 host down here on network 25 00:00:54,010 --> 00:00:56,590 10.5.0, the PC, when it's putting together 26 00:00:56,590 --> 00:00:58,450 that ping request, would identify 27 00:00:58,450 --> 00:01:02,060 that it's locally on 10.1.0, and that the remote device is 28 00:01:02,060 --> 00:01:04,632 on 10.5.0, based on the layer 3 addresses. 29 00:01:04,632 --> 00:01:06,340 And, as a result, it would take advantage 30 00:01:06,340 --> 00:01:07,690 of its default gateway. 31 00:01:07,690 --> 00:01:10,160 And, at layer 2, would encode the layer 2 address 32 00:01:10,160 --> 00:01:12,620 of the default gateway's interface, at which point 33 00:01:12,620 --> 00:01:15,430 this PC is hoping that when the router receives that, 34 00:01:15,430 --> 00:01:17,140 it can continue to make that forwarding 35 00:01:17,140 --> 00:01:20,847 decision in the direction over here of the 10.5.0 network. 36 00:01:20,847 --> 00:01:21,930 So, for example, one here. 37 00:01:21,930 --> 00:01:25,720 A specific route for R1 to get to the network might look like, 38 00:01:25,720 --> 00:01:30,250 hey dear Mr. Router, to get to the 10.5.0 network, 39 00:01:30,250 --> 00:01:35,500 go ahead and use R2 as the next hop, the next device 40 00:01:35,500 --> 00:01:36,700 to forward it to. 41 00:01:36,700 --> 00:01:39,850 So on this network here, This is the 10.3.0 network, 42 00:01:39,850 --> 00:01:44,587 R1's address is 10.3.0.1, and R2's address is 10.3.0.2. 43 00:01:44,587 --> 00:01:46,420 So our static route that we are configuring, 44 00:01:46,420 --> 00:01:49,330 R1, would say, to get to the 10.5.0 network, 45 00:01:49,330 --> 00:01:53,080 go ahead and forward it to 10.3.0.2, 46 00:01:53,080 --> 00:01:58,854 which is the IP address right here on R2's 0/0 interface. 47 00:01:58,854 --> 00:02:01,270 And if R1 had that information, it could then forward that 48 00:02:01,270 --> 00:02:05,140 frame at layer 2 to the Mac address of router 2, who 49 00:02:05,140 --> 00:02:07,360 would then receive it, look at the destination, 50 00:02:07,360 --> 00:02:09,795 and continue to forward it to its final destination. 51 00:02:09,795 --> 00:02:11,170 And that's because R2 is directly 52 00:02:11,170 --> 00:02:14,240 connected to the 10.5.0 network, and knows how to reach it. 53 00:02:14,240 --> 00:02:16,810 So this is an example here of a static route 54 00:02:16,810 --> 00:02:20,230 to a specific network of 10.5.0. 55 00:02:20,230 --> 00:02:21,730 The second example of a static route 56 00:02:21,730 --> 00:02:23,830 might be a range of networks. 57 00:02:23,830 --> 00:02:27,470 We could tell R1, hey, Mr. R1, to go ahead and reach 58 00:02:27,470 --> 00:02:28,318 10.anything. 59 00:02:28,318 --> 00:02:30,960 60 00:02:30,960 --> 00:02:34,390 Go ahead and use 10.3.0.2 as your next hop. 61 00:02:34,390 --> 00:02:39,000 So if R1 gets a packet for 10.4, for example, this static route 62 00:02:39,000 --> 00:02:40,434 says, hey, 10.anything, I'm going 63 00:02:40,434 --> 00:02:42,100 to go ahead and forward that over to R2, 64 00:02:42,100 --> 00:02:44,460 and it's now R2's job to continue 65 00:02:44,460 --> 00:02:45,750 forwarding that packet. 66 00:02:45,750 --> 00:02:47,959 And the third option right here is the default route. 67 00:02:47,959 --> 00:02:49,333 And with the default route, we'll 68 00:02:49,333 --> 00:02:51,710 put the example right here as number three, is basically 69 00:02:51,710 --> 00:02:54,810 going to say, Mr. R1, if you have a packet that's 70 00:02:54,810 --> 00:02:56,430 going to a network address that you 71 00:02:56,430 --> 00:02:59,640 don't know how to reach, go ahead and use this default 72 00:02:59,640 --> 00:03:00,210 route. 73 00:03:00,210 --> 00:03:03,840 And the next hop is 10.3.0.2, because R2 is the only 74 00:03:03,840 --> 00:03:05,070 other router in our topology. 75 00:03:05,070 --> 00:03:08,430 And if R2 is also connected to this big puffy cloud called 76 00:03:08,430 --> 00:03:10,590 the Internet, It also is not like likely 77 00:03:10,590 --> 00:03:12,810 going to know all the addresses on the Internet, 78 00:03:12,810 --> 00:03:15,120 but it also has a default route configured. 79 00:03:15,120 --> 00:03:17,100 And it says to R2, if you don't know 80 00:03:17,100 --> 00:03:20,310 how to reach a remote network, you go ahead and forward it 81 00:03:20,310 --> 00:03:23,190 to your Internet service provider's IP address. 82 00:03:23,190 --> 00:03:25,110 So these are three examples of how 83 00:03:25,110 --> 00:03:27,630 static routes can be used for a router 84 00:03:27,630 --> 00:03:29,610 to reach remote networks. 85 00:03:29,610 --> 00:03:31,680 And I'd like to do a thought experiment with you 86 00:03:31,680 --> 00:03:32,580 just for a moment. 87 00:03:32,580 --> 00:03:35,880 Let's imagine that we configured all three of these on R1. 88 00:03:35,880 --> 00:03:38,760 And furthermore, let's imagine that this PC right here 89 00:03:38,760 --> 00:03:42,930 has been configured to use R1 as its default gateway. 90 00:03:42,930 --> 00:03:47,910 And this PC then does a ping to 10.5.0.55, this device right 91 00:03:47,910 --> 00:03:48,510 here. 92 00:03:48,510 --> 00:03:50,370 The packet is received at R1. 93 00:03:50,370 --> 00:03:52,350 R1 has a static route that says, oh, I 94 00:03:52,350 --> 00:03:54,630 need to forward this to the next hop of R2, 95 00:03:54,630 --> 00:03:57,810 so he forwards the packet over in this direction. 96 00:03:57,810 --> 00:04:02,370 R2 forwards it down to the PC at 10.5.0.55, 97 00:04:02,370 --> 00:04:04,814 and on ethernet, they'll use ARP along the way 98 00:04:04,814 --> 00:04:06,480 if they need to learn layer 2 addresses. 99 00:04:06,480 --> 00:04:07,772 No problem there. 100 00:04:07,772 --> 00:04:09,230 So when this PC replies, it's going 101 00:04:09,230 --> 00:04:11,201 to reply back to its default gateway, 102 00:04:11,201 --> 00:04:12,950 presuming that it's been configured to use 103 00:04:12,950 --> 00:04:15,030 R2 as its default gateway. 104 00:04:15,030 --> 00:04:16,680 And then when R2 gets the packet, 105 00:04:16,680 --> 00:04:19,380 it's supposed to go back to the 10.1.0 network. 106 00:04:19,380 --> 00:04:21,589 What's R2 going to do? 107 00:04:21,589 --> 00:04:23,880 And the answer is, R2 is going to give up 108 00:04:23,880 --> 00:04:26,550 at that point, because it does not know how 109 00:04:26,550 --> 00:04:29,110 to reach the 10.1.0 network. 110 00:04:29,110 --> 00:04:30,952 So what we'd also want to do is train R2 111 00:04:30,952 --> 00:04:32,910 on how to reach these other networks over here, 112 00:04:32,910 --> 00:04:34,941 the 10.1, and 10.2 networks. 113 00:04:34,941 --> 00:04:37,440 And we can do that using the same combination of techniques, 114 00:04:37,440 --> 00:04:39,950 a static route to the specific networks, or we 115 00:04:39,950 --> 00:04:42,420 could have a static route for the range of networks. 116 00:04:42,420 --> 00:04:45,757 Or, we could tell R2 to use R1 as a default route, 117 00:04:45,757 --> 00:04:48,090 and forward any packets that it doesn't know the network 118 00:04:48,090 --> 00:04:51,860 destinations of over to R1, and now it's his problem. 119 00:04:51,860 --> 00:04:54,100 In this nugget, we focused on static routes. 120 00:04:54,100 --> 00:04:56,090 We identified three different types 121 00:04:56,090 --> 00:04:59,480 of routes that we could put in, a route to a specific network, 122 00:04:59,480 --> 00:05:02,320 a route to a range or a summary of networks, 123 00:05:02,320 --> 00:05:04,340 or a third, a default route. 124 00:05:04,340 --> 00:05:06,350 And all three provide instructions 125 00:05:06,350 --> 00:05:09,650 for the router on how to forward packets for networks that 126 00:05:09,650 --> 00:05:11,420 are not directly connected. 127 00:05:11,420 --> 00:05:13,610 I hope this has been informative for you, 128 00:05:13,610 --> 00:05:17,212 and I'd like to thank you for viewing. 129 00:05:17,212 --> 00:05:17,712