WEBVTT

0:00:03.200000 --> 0:00:06.840000
 Hello and welcome to this video, which
 is a refresher on the concept and

0:00:06.840000 --> 0:00:11.460000
 configuration of static
 routing for IPv4.

0:00:11.460000 --> 0:00:16.540000
 Just as a review, static routing is
 typically used in a small network.

0:00:16.540000 --> 0:00:20.160000
 It's when you really want to keep track
 of no more than about three or

0:00:20.160000 --> 0:00:24.180000
 four prefixes, because static routes
 are definitely not scalable.

0:00:24.180000 --> 0:00:27.980000
 They have no way of tracking if a remote
 network has gone down or come

0:00:27.980000 --> 0:00:34.960000
 back up. It's really only used for very
 small cases or for default routes

0:00:34.960000 --> 0:00:41.020000
 sometimes. No dynamic failover, but they
 are preferred over dynamic routing

0:00:41.020000 --> 0:00:43.100000
 because of their administrative
 distance.

0:00:43.100000 --> 0:00:46.400000
 Static routes only have a default
 administrative distance of one.

0:00:46.400000 --> 0:00:50.080000
 The only thing that beats
 that is a connected route.

0:00:50.080000 --> 0:00:53.160000
 A couple of different ways we
 can implement static routing.

0:00:53.160000 --> 0:00:56.480000
 They all start out the exact same
 way with the exact same command.

0:00:56.480000 --> 0:01:00.940000
 At the global configuration level,
 as we can see right here, you type

0:01:00.940000 --> 0:01:08.000000
 IP route. You type your destination
 like 10.10.0.

0:01:08.000000 --> 0:01:12.160000
 You type your subnet mask
 immediately after that.

0:01:12.160000 --> 0:01:13.600000
 This is all in the same line.

0:01:13.600000 --> 0:01:16.860000
 It just wrapped in the PowerPoint
 slide, but you get the idea.

0:01:16.860000 --> 0:01:19.960000
 That's the exact same
 in both scenarios.

0:01:19.960000 --> 0:01:23.940000
 The only thing that's different is
 that with a static route, you have

0:01:23.940000 --> 0:01:28.480000
 an option of specifying an IP address
 of the next top router you need

0:01:28.480000 --> 0:01:31.800000
 to send these packets to or
 your outgoing interface.

0:01:31.800000 --> 0:01:38.480000
 99.99% of the time, it's preferable
 and better to use the next hop.

0:01:38.480000 --> 0:01:41.080000
 So we could say 1.1.1.1.

0:01:41.080000 --> 0:01:45.700000
 So this would say, hey, 1111
 is directly connected to me.

0:01:45.700000 --> 0:01:50.200000
 And if I need to send any packets with
 a destination of 10.10.10, forward

0:01:50.200000 --> 0:01:55.900000
 them to 1111. The only time an outgoing
 interface would be appropriate

0:01:55.900000 --> 0:02:01.520000
 is that the actual outgoing interface
 is a point-to-point interface, meaning

0:02:01.520000 --> 0:02:05.720000
 it is not Ethernet or any
 flavor of Ethernet.

0:02:05.720000 --> 0:02:09.700000
 So for example, if your outgoing interface
 is using the PPP encapsulation

0:02:09.700000 --> 0:02:15.580000
 or HDLC encapsulation, those would
 be the only times you would want to

0:02:15.580000 --> 0:02:17.460000
 use an outgoing interface.

0:02:17.460000 --> 0:02:27.640000
 For example, IP route 1010, 255, 255,
 250, serial, zero slash zero.

0:02:27.640000 --> 0:02:34.060000
 Because I know that serial slash
 zero is using PPP or HDLC.

0:02:34.060000 --> 0:02:38.260000
 But like I said, most of the time, people
 are going to select an actual

0:02:38.260000 --> 0:02:44.700000
 IP address as their next top.

0:02:44.700000 --> 0:02:49.180000
 Now, a floating static route is the
 exact same thing as a regular static

0:02:49.180000 --> 0:02:53.300000
 route. The only difference is that you
 have artificially inflated or increased

0:02:53.300000 --> 0:02:58.200000
 the administrative distance to make
 your static route less preferable

0:02:58.200000 --> 0:03:00.540000
 than a dynamic route.

0:03:00.540000 --> 0:03:03.680000
 The idea here is that, hey, I have
 learned of something, some network

0:03:03.680000 --> 0:03:09.000000
 via a dynamic routing protocol
 like RIP or OSPF or EIGRP.

0:03:09.000000 --> 0:03:10.740000
 And I want to use that.

0:03:10.740000 --> 0:03:12.760000
 I want that to be my
 preferred route.

0:03:12.760000 --> 0:03:17.380000
 But if that dynamic route goes away,
 I do want to have a backup and I

0:03:17.380000 --> 0:03:19.360000
 want my backup to
 be a static route.

0:03:19.360000 --> 0:03:21.700000
 This is where you would have
 a floating static route.

0:03:21.700000 --> 0:03:25.880000
 Now, you can figure it exactly the
 same way as a normal static route.

0:03:25.880000 --> 0:03:28.940000
 The only difference is you artificially
 increased the administrative distance

0:03:28.940000 --> 0:03:31.880000
 value. So let me ask
 you this question.

0:03:31.880000 --> 0:03:36.720000
 Let's say in my routing table,
 it looked like this.

0:03:36.720000 --> 0:03:47.080000
 I have an OSPF route to the 4.4.0 network
 slash 24 via my neighbor at

0:03:47.080000 --> 0:03:50.940000
 2.2.2. He sent this to me.

0:03:50.940000 --> 0:03:58.800000
 Now, I have another neighbor who
 is, let's say, 7, 7, 7, 7.

0:03:58.800000 --> 0:04:00.720000
 I'm directly connected to him.

0:04:00.720000 --> 0:04:04.660000
 And I want to create a static
 route as a backup to this.

0:04:04.660000 --> 0:04:07.500000
 So I say, OK, here's
 what I'm going to do.

0:04:07.500000 --> 0:04:11.080000
 I'm going to go into global
 configuration level.

0:04:11.080000 --> 0:04:20.520000
 I'm going to say IP route to that exact
 same network with the exact same

0:04:20.520000 --> 0:04:30.580000
 mask going to connect
 a neighbor of 7, 7, 7.

0:04:30.580000 --> 0:04:35.280000
 Now if I just left that, if I just hit
 enter right now, that static route

0:04:35.280000 --> 0:04:39.380000
 would take priority over the OSPF route
 because a static route has an

0:04:39.380000 --> 0:04:43.900000
 administrative distance of 1,
 which is much lower than OSPF.

0:04:43.900000 --> 0:04:49.300000
 So before I hit enter, I need to put a
 new value of administrative distance

0:04:49.300000 --> 0:04:54.040000
 right here in order to make
 it less preferable to OSPF.

0:04:54.040000 --> 0:04:59.560000
 What administrative distance value
 do I need to select to make that a

0:04:59.560000 --> 0:05:01.540000
 floating static route?

0:05:01.540000 --> 0:05:05.000000
 Well, hopefully you said Keith.

0:05:05.000000 --> 0:05:13.880000
 OSPF has an admin distance
 equal to 110.

0:05:13.880000 --> 0:05:17.400000
 So as long as I make this floating
 static route, something bigger than

0:05:17.400000 --> 0:05:23.480000
 that, like 111, now it will
 be less preferable to OSPF.

0:05:23.480000 --> 0:05:26.600000
 It will not override
 my OSPF route.

0:05:26.600000 --> 0:05:31.400000
 That's the idea and that's the configuration
 of a floating static route.

0:05:31.400000 --> 0:05:35.920000
 And then lastly, a very common use case
 of static routes are for default

0:05:35.920000 --> 0:05:42.220000
 routes. So default route in your routing
 table would look something like

0:05:42.220000 --> 0:05:47.700000
 this. 0.0.0.0.0.0.0.0.0.

0:05:47.700000 --> 0:05:51.100000
 And then you'd have some
 sort of next hop.

0:05:51.100000 --> 0:05:57.640000
 So the way a default route works, this
 is like the least specific route.

0:05:57.640000 --> 0:06:00.760000
 You may recall from a previous video
 that I said that, hey, if a packet

0:06:00.760000 --> 0:06:04.200000
 comes into a router and we look at the
 destination IP address and we go

0:06:04.200000 --> 0:06:08.600000
 into the routing table, if we find two
 or more entries of different links

0:06:08.600000 --> 0:06:12.680000
 like, hey, that entry right there would
 match and the first eight bits

0:06:12.680000 --> 0:06:14.720000
 match my destination.

0:06:14.720000 --> 0:06:19.200000
 Oh, here's another entry over here where
 the first 24 bits match my destination.

0:06:19.200000 --> 0:06:22.800000
 Well, the most specific
 match wins.

0:06:22.800000 --> 0:06:24.540000
 This is just the opposite.

0:06:24.540000 --> 0:06:25.980000
 This is slash zero.

0:06:25.980000 --> 0:06:29.220000
 This is like the least specific
 you could ever get.

0:06:29.220000 --> 0:06:34.940000
 So here we would say, all right, anything
 matches this slash zeros means

0:06:34.940000 --> 0:06:37.900000
 you don't have to match any of
 the bits in the destination.

0:06:37.900000 --> 0:06:42.320000
 Just use this as like a backup,
 a default, a default route.

0:06:42.320000 --> 0:06:46.960000
 So if I have anything that's more specific
 than this, this default route

0:06:46.960000 --> 0:06:48.540000
 will not be used.

0:06:48.540000 --> 0:06:49.760000
 So this is a catch all.

0:06:49.760000 --> 0:06:53.660000
 This is like in order to prevent dropping
 packets where we don't know

0:06:53.660000 --> 0:06:57.540000
 where they're going to go, we'll just
 forward them out this default path.

0:06:57.540000 --> 0:07:03.920000
 So configuring that as far as the static
 route is concerned is exactly

0:07:03.920000 --> 0:07:09.980000
 the same. The only difference is the
 network is all zeros and the subnet

0:07:09.980000 --> 0:07:13.580000
 mass that goes along with
 it is also all zeros.

0:07:13.580000 --> 0:07:16.880000
 That is what qualifies
 as a default route.

0:07:16.880000 --> 0:07:21.160000
 And like I said, normally you would
 specify the IP address of a next hop

0:07:21.160000 --> 0:07:24.880000
 along with that.

0:07:24.880000 --> 0:07:30.500000
 And the way we verify these is just
 by looking in the routing table.

0:07:30.500000 --> 0:07:34.920000
 Typically with show IP route or show
 IP route static is how you would

0:07:34.920000 --> 0:07:38.380000
 verify for the presence
 of static routes.

0:07:38.380000 --> 0:07:45.200000
 So that concludes this video on a refresher
 of static routes, default

0:07:45.200000 --> 0:07:49.520000
 routes, and floating
 static routes.

0:07:49.520000 --> 0:07:50.940000
 I hope you found this
 video informative.

