our next topic of discussion
is going to be static routing.
Now there are two types of routing that a router can perform.
Remember when I went through
the I P routing process and I said
information in its routing table
on how to get to Network 2020 20 0?
now we're going to cover the process off how that information got in router ones routing table in the first place,
so they're too tight. Surrounding that can happen.
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.
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,
the skeleton for the command to create a static route
is from config mode.
You're going to say or type I P route.
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.
So the I P address or the network address of that destination,
then the destination mask.
So the mask of that destination network,
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
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
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
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 188.8.131.52 slash 30 slashed 30 because this is a point to Point Link
and Roger one is 10.1 in order to is 0.2 and the interface of cereal 000 and this guy is cereal 010
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
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
then my destination network, which is 1 50 10 10 0
That number would go here.
Then the destination mask, which is last 24. That number would go here. So you were type in 2552552550
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
Or I could simply type in the exit interface.
So my exit interface on Router one would be serial 000
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.
Next, you have something called the administrative distance.
Now the administrative distance is the trustworthiness off a routing protocol.
The lower the administrative distance, the better. The router will trust that route,
so if there are two routes available
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
and other out was acquired by something called route information protocol that people cover later in class. It is a dynamic routing protocol,
static routes, administrative distances, one and route information protocols. Administrative distance is 1 20
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.
So I've put all the default administrative distances on the board.
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.
Well that stood for connected route. So connected out has the Louis administrative distance because it's exists on the router itself
and the A D or the administrative distance. Zero. A static route has administrative distance of one
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.
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
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
the commands in text portion off how to create a static route before move on to my static routing lab.
I just wanted to draw out our apology that we're using,
uh, in our lab on the on the board.
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
tend not to 54 on the address here.
The 2 54 we're not gonna worry about switch. Take that. Sits over here with the host sitting over here.
We're just gonna worry about these two interfaces right here.
in our lab, what we're gonna do is we're going to try and create static routes
this $10. 10 not tend to 54. Address on route or two, which is the address on fastest in a zero slash 1.10
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
so that I can send traffic
down to router choose fastest in its, you know slash 1.10 and fastest in a zero slash 1.20 interfaces. Now, by default,
Does router to a one knew about the 10 in the 20 Network? The answer is no.
By default. Rotter to a one
on Lee knows about it's 202 102 100 0 network with the doc to address residing on its cereals. You know, 10 interface
now, as I said, static routing is the process off manually, entering
in route or making entries in the routing table to remote destination.
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.
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,
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.
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.
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.