In the previous video, we already learn about the basic command in cisco. 2
Now in this video, we are going to learn how to configure an ip address in cisco router. 3
Okay let’s just start. 4
Let’s add a PC. 5
Let’s say we will use 3 pc. 6
And we will connecting the pc to the switch and router. 7
We will connecting this 2 pc to the switch, from the switch to the router. 8
And then this pc will be directly connected to the router. 9
Okay let’s just start. 10
Connecting this 2 pc to the switch, and from the switch to the router. 11
And finally, connecting the router directly to the computer. 12
In the topology like this, pc3 and pc4 will be in the same block subnet, but pc5 will 13
be in the different block subnet. 14
For example, we will use 192.168.1.0/24 for pc3 and pc4. 15
And then for pc5, we will use 192.168.2.0/24. 16
So the ip address of router interface that connected to pc3 and pc4 will be 192.168.1.1, 17
the ip address of pc3 will be 192.168.1.2, and the ip address of pc4 will be 192.168.1.3. 18
Next, fa0/1, which is the interface that connected 19
to PC5, the ip address will be 192.168.2.1.. and then the ip address of pc5 will be 192.168.2.2. 20
Let’s start configuring ip address on the router. 21
In the networking basic section, we already learn how to configure ip address in cisco 22
router, but we use the config menu. 23
We just need to click the interface that we want to configure, turn the interface on, 24
and then configure the ip address. 25
But we can not use this method to configure ip address in the real device. 26
If we want to configure an ip address in the real device, we need to type cisco command. 27
In this case we need to use CLI tab. 28
Okay, so in this video, I will show you how we can configure ip address in cisco router 29
from CLI. 30
Okay, so here let’s go to cli. 31
Here let’s exit, and exit again. 32
Here now we are in the privilege mode. 33
Let’s go to global configuration mode. 34
To configure an ip address, first we need to go to the interface first. 35
In this case, we are going to configure an ip address for fa0/0 first. 36
So here let’s type interface fa0/0. 37
If you see here, this is the shortened command. 38
The actual command is interface, but we can shortened the command become int like this. 39
Next if we see here, the light colour is still red, this is means that the interface is still 40
disabled. 41
To enable the interface we can use command no shutdown. 42
Okay here we can see that now the light is green. 43
Now let’s configure the ip address, the command is ip address 192.168.1.1 and then 44
the subnetmask, the subnetmask for prefix /24 is 255.255.255.0. 45
Okay let’s enter here. 46
For now we are done configuring the ip address of fa0/0. 47
Next let’s configure the ip address of fa0/1. 48
So interface fa0/1, no shutdown to enable the interface. 49
Okay here we can see that the light of the interface is already green. 50
Next let’s configure the ip address. 51
The ip address is 192.168.2.1 and the subnetmask is 255.255.255.0. 52
Okay now we have done configuring the ip address in the router. 53
For the verification, we can use command do show ip interface brief. 54
Here we can see that the ip address of fa0/0 is 192.168.1.1, the status is up. 55
And the ip address of fa0/1 is 192.168.2.1 and the status is also up. 56
Next let’s configure the ip address of all PC. let’s start from pc3. 57
Go to desktop, ip configuration, the ip address is 192.168.1.2, the subnetmask is 255.255.255.0, 58
and the gateway is the router ip address that connected to pc3, which is 192.168.1.1, 59
Next let’s configure for pc4, go to desktop, ip configuration, the ip address is 192.168.1.3, 60
and the gateway is same as pc3, which is 192.168.1.1. 61
Okay done for pc4. 62
For the switch, we don’t need to configure anything, so we can skip it. 63
Last let’s configure the ip address of pc5. 64
Go to desktop, ip configuration, the ip address is 192.168.2.2, and then the gateway is 192.168.2.1 65
Okay now we have done configuring IP Address on all of PC. now let’s try test the connection 66
using ping, so go to command prompt. 67
Here we are going to test from pc5 to pc3 first. 68
So ping 192.168.1.2, okay here we can see that the first result is timeout, but the 69
others is success. 70
This is means that connection between pc5 and pc3 is ok. 71
Now let’s also test from pc5 to pc4, so ping 192.168.1.3, okay here we can see that 72
the result is also successful. 73
Okay so now we have done configuring ip address in the cisco router. 74
And I think enough for this video. 75
Thankyou for watching and see you on the next video!