CCNA | Cisco Router Initial Configuration

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone this is ali and welcome to my channel this is another video of my ccna series if you would like to follow along hit the subscribe button and the bell to get notified when i post a new video in this video we're going to configure a cisc router we're going to put the initial configuration and we're going to set the banner message of the day we're going to set um the ip domain lookup and the console logging we're going to create a username and password we're going to enable password checking we're gonna encrypt the passwords we're gonna set up the device hostname and we're gonna assign ip addresses to the router interfaces and we're gonna test connectivity from a network to another network so on packet tracer here i have a little topology here just two networks a router and connected on both interfaces we have a switch and um like a local area network on both sides this one with an ip address of 192 168 500 24 and we have one pc with uh ip address.50 and the gateway for the router interface is 50.1 so the first ip address of this subnet and on the other side we have another subnet 1 and 2 168.10 and the pc here is dot 100 and the gateway or the interface on the router is dot one so we're gonna go to the router and configure it so that these two computers pc0 and pc1 can communicate so in the real world a router looks something like this you bring a laptop and a console cable connected from the serial interface or it doesn't or if it doesn't have a serial interface there are serial to usb adapters you plug them in here and then you configure and put this side of the cable looking like rj45 to the console port of the router so i'm just gonna go back to this screen and i'm gonna bring back a tracer up and i'm gonna bring a laptop just like in the real world and we're going to bring a console cable from the serial rs232 interface to the console port of the router and then we're going to turn on the laptop and we'll go to the desktop here and open a terminal i'm going to accept the defaults and we have this is from before i was testing and we have the cli interface of the router i'm gonna bring this here so first thing one router comes up it will ask if you want to enter the initial configuration dialog i'm just gonna say no and i'm gonna press enter to start from here we say enable we go to the privilege mode from the user mode and configure terminal or conf t to go to the global configuration mode the first thing we want to do is put a message of the day or a banner to do that we say banner m-o-t-d for message of the day and the format we're going to use click type in question mark for help and we have to say there is a delimiting character in this example it's c it can be anything and then the banner text in between and then the limiting character at the end for example here i'm going to use the dollar sign i'm going to put two and i'm gonna put my text for the banner i like to use this unauthorized access prohibited exclamation point i'm gonna press enter and now we have a banner uh message of the day and to see that i'm gonna exit and i'm gonna press enter again and i see the banner right here going to go back to the global configuration mode and now um we have to i want to disable something because let's say i'm in this mode the privileged mode and i type in conf t um i did a typo without putting a space between conf and t for configure terminal and i press enter it will start doing an ip lookup it will think this word is an um is a device and it's trying to connect to that device but i'm all i'm doing is going to the global configuration mode configure terminal so if i type something wrong here it will start doing an ip lookup it will take 30 seconds or a minute and it feel it feels so long so all we have to do is disable that lookup ip domain domain lookup so if we say no ip domain lookup and we make any typo here conf it will not do an ip domain lookup so it will just say could not unable to find the computer address so it does not go through those 30 seconds of lookup and we can't do anything so i'm gonna go back to the configuration mode global configuration mode and now i'm gonna uh so this is the banner the ip domain lookup we're gonna go to the console logging so this console port that we connected to we need to set a password on that so to go to do that we go to line console 0 and we say password now we're going to type in our password which is cisco and we have to say login so that it asks for a password and while we're here we're gonna do logging synchronous logging synchronous will always display this this prompt at the beginning of the line whenever we exit from somewhere see here we exited and didn't and we exited didn't go back to show this prompt until we clicked enter again so with logging synchronous whenever we exit or whenever we go to another mode it will just so the prom it will show the prompt every time and this is the login synchronous if we press question mark we have other other options for example exact timeout you can say no exact time out so that it doesn't time out so we're just gonna exit and and see here the prompt showed up right after i uh exited again i'm gonna exit completely out and press enter and now we see the banner message of the day and we have a password that we have to type and it is cisco and now we are in to the router click enable again and now we so we did the console logging now we have to create a username we're just going to move this a little bit here so we have to create a username to do that we go to the global configuration mode and type in username you can say whatever admin or i'm just going to put my name username at le and password you can say password and type in your password or you can say secret so i'll keep it password for now password and my password will be cisco123 and after we did that uh i'm gonna go to the enable password as well see here when we type in enable so everyone who types in enable if they have a console connection um after they type in this password sometimes you don't want people to configure or change anything on the router so you want to put a password for those people who are only authorized to do the changes on the router so after they type in enable we can make the router check for a password and it's called enable password enable password and we're gonna say cisco so we have the line console 0 password is cisco enable password is cisco and the username password is going to 3. and let's try that i'm gonna exit and here is the line console cisco and then enable it's another cisco so here when we type in enable it will ask for a password configure terminal and to actually use the username to use this username um to and to log into the device i want to go to the line console 0 and instead of just login like check for a password i want to say login local that means check the local database for a username and password and in the local database we set up this username and this password so i'm gonna say that login local and i'm gonna gonna exit and now this um we got here a username prompt on the console here's the name i'm gonna use my username which is the username that we created on the device and the password will be cisco123 and now i'm in if i click enable it will ask for the other password which is only cisco and now i'm completely inside the device to configure and do whatever i need to do one important thing is when we set the passwords i'm going to exit the global configuration mode and from this mode here i can run a show command and i'm going to run show running config to see the configurations on the device so right here you can save the hostname is router we'll change that later enable password cisco this is the enable password we have a username here and its password is cisco into three so anyone who is able to read the configuration or to run this command will be able to see the configurations and we'll be able to read the passwords for the usernames if you have like multiple usernames to do that we have to encrypt those passwords at least here and the configuration and to do that see this option here with no before it no service passer encryption that means this service is disabled so all we have to do is run this command without no i'll do that on the global configuration mode say service password encryption and now when we go look at the running configuration we see the passwords are kind of encrypted you can still decrypt those on some online tools but it's better than just reading them clear text and now we encrypted the passwords and we have to set the device hostname to do that we'll go to the global configuration mode and we just say hostname and whatever that host name for the router whatever makes sense to your environment it can be a branch router it can be the headquarters uh right now i'm just gonna say router uh or r1 i want to change the hostname which we we can see the prompt here changes [Music] okay and now we are going to set the ip addresses of the router interfaces and we're going to test the connectivity between the two subnets so on gigabit ethernet 000 we have this ip address so to do that i'm gonna go to the interface gigabit ethernet 000 i hit the tab to auto complete i type in zero zero zero and now i'm in the interface configuration mode of the router set an ip address all i have to do is type in ip address and i type in the ip address 192.168.50.1 so this is the ip address right here and after that we have to type in the subnet mask two five five two five five two five five zero or slash twenty four and i press enter and now i have an ip address set on the interface gigabit ethernet zero zero zero but the interface is not uh up or not not in a or not it's not up it is down because on the router interfaces are by default shutdown so all i have to do is no shutdown now we can see here line protocol interface gig zero zero zero change state to up and we can see the light here turned green now we can go to the other interface you can say exit go back to the global configuration mode and then go to the interface gigabit zero zero one but on the router you can just jump from here interface gigabit zero zero one the only thing here you cannot you have to make sure you don't have any typos because you can't do auto completion tab auto completion so now i'm on if it didn't give me an error that means it changed to this interface uh gig001 we can type in the ip address command or you can just hit the up key and use this um use this line and change the ip address here and say no shot to bring the interface up so now we have this interface is up and this interface is up and i'm gonna test from the router i'm gonna exit and i'm gonna go back here to the privileged mode and i'm going to test the connectivity from the router to pc0 which is 102.168.50.50. 192. 168.50 and we have successful pings first one is always lost for the first time only and we can test the other side so the other network or the other pc on the other network uh one and two and six eight 100 or 100 [Music] and we should see a successful ping as well if we repeat that thing we have 100 successful pings so now from a pc uh i'm going to ping from pc1 to pc0 and make sure the communique you have communication from this network all the way to this network we'll open the command prompt and we are on pc1 this is pc1 i'm gonna say ping 192 168 50.50 and this is pc zero press enter and we have replies successfully replies from pc zero that means we have um successful communication from pc0 to pc1 and this is after we configured the router and we set an ip address on this interface and this interface um typically this is a very initial configuration very very um simple configuration of a router typically you need a router to access the internet so from a lan or local area network to uh to the internet for that we need a public ip address on one of the interfaces connected to the internet and to do uh to have an internet connectivity we need to enable on the router something called nat or nat it stands for network address translation and this will be a different topic and it will be a different video for this video it's just very simple routing between two networks directly connected uh networks to the router and they're both private addresses so the router just doing routing uh very simply if it's doing routing to the internet it needs a public ip address and it will need to translate the private ip addresses to the public ip addresses so that those devices inside can reach the internet and this is as i said another topic and for now we did the basic configurations of a router and we tested connectivity from one subnet to the other subnet and this is everything for this video thank you guys for watching and i will see you in the next one
Info
Channel: Ali Younes - Go4IT
Views: 579
Rating: undefined out of 5
Keywords: #Cisco, #CCNA, #Certification, #Routing
Id: RIa2yV4UyVU
Channel Id: undefined
Length: 19min 30sec (1170 seconds)
Published: Sun Jan 17 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.