In the previous video, we already configure an ip address in router1 and router2. 2
Next in this video, we are going to talk about routing. 3
I have a question, is pc 1 able to communicate with pc 2? Let’s try it, check the ip address first, 4
pc 2 is correct, pc 1 is also correct. Now let’s ping from pc 1 to pc 2, ping 192.168.2.10, 5
okay here we can see the result is destination host unreachable, 6
this is means that the ping is failed. 7
Now let’s see why this is failed. When pc 1 ping to pc 2, the source is 192.168.1.10, 8
and the destination is 192.168.2.10, pc 1 will ask router 1, "hey router 1, do you know where is 192.168.2.10?" 9
When router 1 receive the question, router 1 will check the routing table, 10
let’s check it, do show ip route, here we can see that router 1 don’t know about 192.168.2.10 11
Router 1 only have an information about 10.10.10.0/24 and 192.168.1.0/24. This two network 12
is automatically added to routing table with label c, because this 2 network is connected to router 1. 13
10.10.10.0/24 is connected in fa0/1, and 192.168.1.0/24 is connected in fa0/0. 14
Let’s write the routing table in router 1, 15
Okay, this is why pc 1 can not ping to pc 2, because router 1 don’t know where is 192.168.2.10. 16
This is also same if we try to ping from pc 2 to pc 1, 17
the source is 192.168.2.10 and the destination is 192.168.1.10, 18
so pc 2 will ask router 2, "hey router 2 do you know where is 192.168.1.10?" 19
Router 2 don’t know about 192.168.1.10, 20
why? Because if we see here in the topology, router 2 will have 2 entry in the routing table, 21
which is 10.10.10.0/24 connected to fa0/0, and 192.168.2.0/24 connected to fa0/1. 22
Let’s check it, do show ip route, okay here we can see that we only have an information 23
about 10.10.10.0/24 and 192.168.2.0/24, router 2 don’t know about 192.168.1.0/24 24
So now we need to configure a routing so pc 1 will able to communicate with pc 2. 25
In this case we will learn about static routing first. 26
Later in the next video, we will also learn about dynamic routing. 27
Okay, so let’s focus on static routing. 28
With static routing, we will tell the router how to reach destination. 29
For example we will tell router 1, if router 1 want to go to 192.168.2.10, router 1 should go to router 2. 30
And router 2, if want to go to 192.168.1.10, router 2 should go to router 1. 31
Let’s just start, we will configure router1 first. 32
Ip route and then the destination network, in this case we want to tell router 1 how to reach 33
192.168.2.0/24, so the destination network is 192.168.2.0 and the subnetmask is 255.255.255.0 34
Next we need to define the next hop. If we see here, if router 1 want to go to 192.168.2.0/24, 35
absolutely router 1 will go through router 2. So the next hop is the ip address of router 2, 36
which is 10.10.10.2. so here let’s put the router 2 ip address, 10.10.10.2. 37
In simple word, this command means that we tell router 1, if router 1 want to go to 38
192.168.2.0/24, router 1 should go through 10.10.10.2, which is router 2. 39
Let’s check the routing table again, do show ip route, 40
here we can see that now we have route to 192.168.2.0/24 and the next hop is 10.10.10.2 41
S here means static routing. 42
Okay we have done in router 1, next, let’s configure on router 2. 43
From router 2, we want to tell how to go to pc 1, 44
so ip route the destination network is 192.168.1.0 and the subnetmask is 255.255.255.0, 45
and then the gateway is the ip address of router 1, which is 10.10.10.1. 46
Okay now let’s see the routing table, do show ip route, here we can see that now we have S, 47
this is means static routing, the destination is 192.168.1.0/24 and the next hop is 10.10.10.1. 48
Now pc 1 and pc 2 should be able to communicate each others. Let’s try. 49
Okay here we can see that now the result is success. 50
Okay I think enough for this video. I hope you understand about routing static. 51
In the next video, we are going to add 1 more router, and then we will learn how to configure 52
static routing in 3 router. 53
Thankyou for watching and see you on the next video.