00:04
our next topic of discussion
00:06
is going to be static routing.
00:09
Now there are two types of routing that a router can perform.
00:13
Remember when I went through
00:15
the I P routing process and I said
00:23
information in its routing table
00:25
on how to get to Network 2020 20 0?
00:30
now we're going to cover the process off how that information got in router ones routing table in the first place,
00:38
so they're too tight. Surrounding that can happen.
00:41
One is called static routing, which is the process of manually entering routes to remote destinations in your outing table. And the other one is dynamic routing, which is when routers talk to each other and automatically Shia routes to remote destinations or remote networks.
00:58
So the first topic between the two types of routing we're gonna cover is static routing. Once again, static routing is the process where you manually enter out into a routing table,
01:10
the skeleton for the command to create a static route
01:14
is from config mode.
01:17
You're going to say or type I P route.
01:22
there's a field for the Destination Network where you're trying to get to or the network where the router is trying to route, too.
01:30
So the I P address or the network address of that destination,
01:34
then the destination mask.
01:38
So the mask of that destination network,
01:41
then something called the next top I p address, which is the I p address off the router. Immediate to you once traffic leaves your router
01:51
the i p address off the interface of the router that is facing you, that it's immediate to you. Once you're trapped, once the traffic from your outer leaves, your interface
02:01
or this little line in Cisco language means the word. Or so you could either type in the next hot I P or the exit interface of the router off your local router. So let me just draw
02:16
a little diagram here to explain this better. Let's say this is a router one, and it is connected to a router to, and this network is 100 dot Tenn dot Tenn 100.0.0.0 slash 30 slashed 30 because this is a point to Point Link
02:36
and Roger one is 10.1 in order to is 0.2 and the interface of cereal 000 and this guy is cereal 010
02:47
So, after you have type in your destination network, the network you're trying to get to. So in this example, if there is a network connected hair on fascinating at 00 and the network is 1 50
03:01
10 10 0 slash 24. If Router One is trying to get to network 1 50 10 10 10 I would type. I peer out
03:13
then my destination network, which is 1 50 10 10 0
03:17
That number would go here.
03:20
Then the destination mask, which is last 24. That number would go here. So you were type in 2552552550
03:28
Then you could either pick the next top I p address once traffic leaves my router the next I p it encounters the next I p That traffic encounters is this address right here on router to the address of the serial 010 interface, which would be 100.10
03:51
Or I could simply type in the exit interface.
03:55
So my exit interface on Router one would be serial 000
04:01
So you have two options either the next top Ivy option and the exit interface option. As you will see, there are certain rules as to when to use the next top i p and when to use the exit interface option. And I will go over these rules during our lab.
04:17
Next, you have something called the administrative distance.
04:21
Now the administrative distance is the trustworthiness off a routing protocol.
04:27
The lower the administrative distance, the better. The router will trust that route,
04:31
so if there are two routes available
04:34
or two means of getting somewhere, so two routes available to a router to the same destination and they were acquired by different means. Let's say one route was a quiet by you. Configuring a static route
04:49
and other out was acquired by something called route information protocol that people cover later in class. It is a dynamic routing protocol,
04:59
static routes, administrative distances, one and route information protocols. Administrative distance is 1 20
05:05
The router will prefer the route with the lure administrative distance so the static route would be preferred over the route learned by route information protocol.
05:16
So I've put all the default administrative distances on the board.
05:20
Ah connected route has an administrative distance of zero because it's connected to you. It's a connected interface. We have already seen this in our I p routing table during our previous lab when we executed the show I P. Route Command. You saw a little see on the left hand side.
05:36
Well that stood for connected route. So connected out has the Louis administrative distance because it's exists on the router itself
05:45
and the A D or the administrative distance. Zero. A static route has administrative distance of one
05:51
route information protocol route or a rip route has an administrative distance off 1 20 This will be covered later, and I will point this out.
06:00
Enhance interior, get re routing protocol or E I G R P. Again, A dynamic routing protocol, which will be covered later, has an administrative distance of 90
06:11
and open shortest path first, which is again a dynamic routing protocol covered leader has administrative distance of 1 10 and as I cover these routing protocols, I will point out these administrative distances at that point. But I wanted to list them out for you all in one place for now. So that concludes
06:30
the commands in text portion off how to create a static route before move on to my static routing lab.
06:36
I just wanted to draw out our apology that we're using,
06:42
uh, in our lab on the on the board.
06:45
I forgot to draw the two sub interfaces that exist here on Router to, So we have f zero slash 1.10 and f zero slash 1.20 And the address of where here is 10 dot Kendra
07:02
tend not to 54 on the address here.
07:13
The 2 54 we're not gonna worry about switch. Take that. Sits over here with the host sitting over here.
07:21
We're just gonna worry about these two interfaces right here.
07:27
in our lab, what we're gonna do is we're going to try and create static routes
07:38
this $10. 10 not tend to 54. Address on route or two, which is the address on fastest in a zero slash 1.10
07:46
and the $20.20 dollars $20 to 54 address which sits on router to f zero slash one, not 20 on route or two, I'm gonna be committing a route
07:57
so that I can send traffic
08:05
down to router choose fastest in its, you know slash 1.10 and fastest in a zero slash 1.20 interfaces. Now, by default,
08:15
Does router to a one knew about the 10 in the 20 Network? The answer is no.
08:20
By default. Rotter to a one
08:22
on Lee knows about it's 202 102 100 0 network with the doc to address residing on its cereals. You know, 10 interface
08:31
now, as I said, static routing is the process off manually, entering
08:37
in route or making entries in the routing table to remote destination.
08:41
So as far as router to a one is concerned, Network 10 and 20 are remote destinations because they're not directly connected to a router to a one.
08:52
So if we try to ping from router to a one to any one of these addresses tend not 10 not 10 to 54 or 2020 22 54 without having routes in the routing table. It's not going to work,
09:03
so I wanted wanted to put up the apology on the board, and then we're gonna pull up to say anthropology that we have on our lab. This is basically the last apology.
09:13
All I'm missing on the four switches between rather 123 and four. And as always, I drew this as a logical diagram. So you don't put switches on a logical diagram on the physical diagram? Yes, you can include switches. So since it is, this is a logical diagram. I've excluded the switches out.
09:33
So let's go ahead and see how this works. We're gonna try and route from router to one to the 10 10 $10.0 slash 24 network and the $20.20 dollars $20 euros last 24 network.