In the previous video, we already learn about how to remote cisco router and cisco switch in Cisco Packet Tracer. 2
There are 2 way, the first way is using CLI inside the router or switch. 3
And the second way is using console cable from a PC. You are free to use which one do you want. 4
And then, in this video we are going to learn about basic command of cisco devices. The command 5
in cisco switch and router will be same. So in this video, we just will use one of router or switch. 6
Because if you are familiar with router let’s say, you will able to configure a switch. 7
But I think the font is to small, let’s raise the font size first. 8
Go to Cisco Packet Tracer and then preference. Remember that if you use windows, the preference 9
will be under edit. Here in the font tab, let’s set the font size of CLI to 20. And then apply. 10
Okay now let’s go to the PC, open the terminal. And here let’s just ok. 11
Okay now the font size is ok. And if we open the CLI, the font size is also ok. 12
Okay now we can start learn about basic command in cisco. But in this case we will just 13
use CLI tab of the router or switch. So we don’t need a PC. let’s just delete it for now. 14
Okay, we will learn about basic cisco command in the router. Let’s open the router. 15
The first thing that you need to know is that in cisco, there is some permission level. 16
The first level is user level or user mode. If we are in the user mode, 17
the symbol will be right angle bracket like this. Okay so in this case, we are now in the user mode. 18
In the user mode, the command will be limited, we just have read permission. 19
To see any command that we can use in the user mode, we can type question mark. 20
Okay this is the commands that we can use in the user mode. 21
There is some basic command to troubleshooting like ping, and traceroute. 22
And here we also have telnet and ssh command, this is to remote other devices. 23
And here if we see, there is no command to 24
do a configuration. Because the permission is read only. 25
If we want to do a configuration, we need to go to privilege mode. 26
The privilege mode will be have a full permission. 27
To go to privilege mode, we can use command enable. Here we can see 28
that the symbol change to hash like this. This is means that we are in the privilege mode. 29
And remember that privilege mode will be have full permission. This is means that 30
the command that we can use here will be much more than in the user mode. 31
Let’s type question mark here. Okay here we can see 32
any command that we can use in the privilege mode, and if we see here, we can see a more. 33
This is means that we still have other command that we can use. To see the other command, 34
we can type enter. If we use enter like this, we can see 1 other command. 35
We can also use space, if we type space, we will see many other command at once. 36
Okay now we can see here that the command in the privilege mode is much more than in the user mode. 37
Okay next, in the cisco also have global configuration mode. 38
The global configuration mode will be used to doing a configuration. Remember that 39
if you want to configuring anything, you must go to global configuration mode first. 40
To go to global configuration mode, we can use command configure terminal. 41
Okay here we can see a config like this. 42
This is means that we are in the global configuration mode. 43
Now, if we already in the global configuration mode like this, we can do a configuration. 44
So once again, always remember that if you want to doing any configuration, 45
you need to go to global configuration mode first. 46
If we want to exit from global configuration mode, we can just type exit. 47
Okay now here we can see that we are in the privilege mode. 48
And if we try to exit again, we will be in the user mode like this. 49
Okay now let’s try to enable again to go to privilege mode. 50
I said before that to exit from privilege mode to the user mode, we can use exit command. 51
Beside that, we also can use disable command. Okay here we can see that we are in the user mode. 52
Okay now let’s enable again, and we are going to do some configuration. 53
The first thing that we are going to configure is a hostname. Hostname is just like the name 54
of our devices. By default, the hostname of cisco router will be Router, and the 55
default hostname of cisco switch will be Switch. Absolutely this will be confusing if the hostname 56
of all our router is just Router. This is why we need to configure the hostname of each devices. 57
Now let’s try to configure the hostname. Remember that if we want to configure anything, 58
we need to go to global configuration mode first. Here let’s go to global configuration mode, 59
the command is configure terminal. Oh I’m sorry, there is a typo here. 60
Okay here we can see that now we are in the global configuration mode. 61
Now let’s configure the hostname. 62
The command is hostname space the hostname. In this case the hostname will be Router1. 63
And when we enter, we can see here that the hostname will be change like this. 64
Okay now we have done configuring the hostname. Next we are going to configure a password. 65
If you see here, when we go to privilege mode from user mode, we don’t need to type any password. 66
Absolutely this is not secure, because remember that privilege mode is have 67
full permission. The best practice is, we need to configure a password to go to privilege mode. 68
So not anyone can enter privilege mode, but just some people who know the password. 69
Okay now let’s configure the password. From global configuration mode like this, 70
we can type enable password and the the password. Let’s say 123. 71
Okay we have done configuring the password. Now let’s try to exit. Here we back to privilege mode, 72
and then exit again to back to user mode. 73
Okay now we are in the user mode. Now let’s try to enable. Okay here we can see that now when we 74
want to go to privilege mode, we need to enter a password. In this case, the password is 123. 75
When you type the password, there is nothing display in the CLI like this, 76
so just type the password and enter. Okay here we can see that now we are in the privilege mode. 77
Now let’s try to use the wrong password. Exit, and then enable again. I try to use wrong password. 78
Here we can see that we are unable to go to privilege mode. Okay let’s use the right password. 79
Next I will show you the other command. Which is show running-config. Let’s try it first. 80
Okay so show running-config is used to see all of the configuration that we already do. 81
Okay here we can see many configuration. But most of these is the default configuration. 82
But here we can see some of our configuration before, 83
here we can see hostname and password configuration. But here, if we see the 84
password configuration, we can see the password clearly. This is absolutely not secure. 85
So how we can configure the password more secure? I will show you. But before that, 86
here we can see more. We can type enter to see one more line of the configuration, 87
or we can type space to see many line of configuration at once. Or if you want to quit, 88
you can type q. Okay here we are going to quit from here, so type q. 89
Okay like I said before, I will show you how to configure the password more secure. 90
Let’s go to global configuration mode. 91
Now to configure the password more secure, we can use enable secret command. If you remember, 92
earlier we use enable password command, but now we will use enable secret command. 93
Okay so the command is enable secret and then the password. Let’s say the password is cisco. 94
Okay now let’s show running-config again. 95
Here we get an error, why? This is because show command is the command in privilege mode. 96
So if we use show command in the global configuration mode like this, we will 97
get an error. Now let’s exit to privilege mode first, and then type show running-config again. 98
Okay here we can see that we don’t get an error. But if you want to use show command 99
in the global configuration mode, we can use "do". So here do show running-config. 100
Here we can see that we also don’t get an error. Okay so remember that if you 101
want to use show command in the global configuration mode, we will need a "do". 102
And also remember that we only need "do" if we are in the configuration mode, 103
if we in the privilege mode, we will not need "do". Let’s try. Here in the privilege mode, 104
let’s type do show run. Here we get an error. 105
Okay next, here we can see that now we have 2 password. There is an enable secret. 106
Pay attention here, the password of enable secret will be encrypted like this. So this is more secure. 107
And remember that if we have 2 password like this, 108
so there is an enable secret and also enable password, 109
the password that will used is the enable secret. Because enable secret is more secure. 110
Here let’s try to exit. And then enable again. Let’s try to use the password 111
from enable password, the password is 123. Okay here we are unable to enter privilege mode. 112
Now let’s try to use the password from enable secret, the password is cisco. 113
Okay here we can see that we have successfully enter the privilege mode. 114
Next, we are going to learn how to remove configuration in cisco. Let’s say, 115
here we want to remove enable password. Because this configuration is no longer used. 116
Okay go to global configuration mode. To remove configuration in cisco, 117
we just need to type no and then the command, so no enable password like this. 118
Now let’s try to show run again, remember that now we are in the global configuration mode, 119
so we will need do. So here do show run. 120
Okay here we can see that the enable password is no longer exist. 121
Okay I hope you understand some basic command in cisco. 122
I think enough for this video, in the next video we are going to learn about 123
cisco basic command again. 124
Thankyou for watching and see you on the next video