1.6 Basic Router Configuration Commands

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello and thank you for watching the sixth lesson of chapter one which is 1.6 basic router configuration commands in this lesson we're going to review some of the commands that we have learned previously in ccna1 and we're going to introduce you to some new commands for this lesson i'm going to jump in straight to our packet tracer and i'm going to open the package tracer that we saved from our previous lesson so file open and then save from lesson three and click open this is the packet tracer that we have learned in lesson three about collision domains about duplex half duplex full duplex and so on well what we're gonna do actually on this one we can actually bring a router in the topology so say router 0 there and let me just move this bit down all of these devices okay so i'm going to connect the router there and i'm going to connect it to switch one with a straight through cable so say g01 to routers g01 there we go and then i'll open a notepad and i'm gonna do a basic startup configuration commands here and you should really remember them anyway so basic startup commands config commands okay so first we need to do enable that will move us from the user mode to the privilege mode and then we have to access the global configuration mode by typing configure terminal and then we are in the global configuration mode we're going to change name so host name r1 and then enable a secret class what this command is going to do is going to actually challenge users when they want to move from the user mode when they want to move to the privilege mode when they're already inside the router as a user executive mode and when they type enabled right as soon as they type enabled then they will be challenged with the password so the user needs to know this password to move from the user mode to privilege mode okay then i'm doing the notepad then i can copy and paste it on the router yeah so no ip domain lookup what this command is going to do if i misspell something on my router instead of the router is trying to resolve that misspelling to name it's going to stop that let's do that anyway let's go to the router and i'm going to show you this so if i type here as you can see the first question is would you like to enter the initial configuration dialog which means this router is like factory reset there is no startup configuration say no here and then i type enable to go to the privilege mode but say i make a mistake right so what the router is doing is actually looking for in the domain it's broadcasting that it's sending it to everyone who has this name i want to telnet to it he's trying to tell it to something that i misspelt and that's that command is going to be stopped with this there we go that says don't do that if i misspell it don't do that right and then i'm going to do for example service password encryption this is going to encrypt any encryption this is going to encrypt any password that's not encrypted by default it's not going to encrypt this password because this is already encrypted with md5 but any later on when we do the console and vty those password this command will encrypt them right and then the last a command on this mode in the global configuration mode is a banner banner message of the day and we say authorized users only and i finish it with the banner now when you start the banner message of the day banner you have to start with a delimiting character and you have to finish with the same character so here i start with a dollar and i finish it for the dollar and everything between them that's going to be the banner and then i'll go to uh console mode so sorry that go to more specific mode which is the console.la online so line console 0 password cisco login that says you need to know the password cisco when you log into the console port and if we are idle forever don't log us out right and then log in with 2gs synchronize so i don't need to press enter to see a prompt and we do the same commands for vty line so line vty 0 to 4 so these are five lines pass for cisco login if we are idle for example here for three minutes after three minutes and 30 seconds load the user off and then we do log in sync as well here and at the end we type end and we copy this command so copy running config to startup config so next time the device if it reloads we can save these right so after here i'm just going to copy all this stuff right click copy go to the router and i'm just going to paste them there and just to check if there is any marker and as you can see everything is fine so there is no marker you can see if if i made a mistake for example let me just say i'll just delete this here and i'll copy again the same thing copy and i'll go and paste him here now you can see there's a marker as soon as you see a marker then you know that command didn't work so you need to go back and check it yeah what was the problem so that's why when i was checking earlier i was just going up and down to see if i see a marker somewhere right in here yes i see them okay let me fix that okay console right now that's fine it's all done so i just need to type end and then copy running config to start a config right the another command that i want now to do is if i go further down here still on router one i want to enable the the g01 interface so the router can communicate with other devices on this router ip address in is going to be g01 and the fp address is 10.1.1.1 we can even give an ipv6 address say 2001 db8 db8 acad 1 1 forward slash 64. and then link local fe80 uh colon codon1 and that's our link link local address right so this information we're gonna do it on the router one so if i get there to do notepad this is still for router 1. interface g01 description so this is going to be r12 switch 1 and do an ip address so ip address 10.1.1.1 and forward slash 24 and then we do an ipv6 address address 2001 db8 acad 1 colonel column 1 forward slash 64. and then again we do for i link local address so ip address uh fe80 quantum coordinate 1 and that's going to be our link local address there we go i'm going to copy this command so right click copy go to the router go to the configuration mode and then paste him here okay no marker it's good um now we're gonna see if i can ping the switch so ping uh 192. sorry 10.1.1. i don't remember the switch's address so i need to go to the switch and just gonna look at the ip address what is on the switch and the command is enable show ip interface brief and what we're looking is for the svi and you see the switch doesn't even have an address so i don't have address for this switch because that's it that is my svi and it's you can see it's administratively down that's a layer one so layer one information and that's the layer two information administratively down it means well administrator i switch it off down means that either something is not connected or physical layer problem and then we have a layer two issue here layer 1 is up layer 2 is up as well could be the layer 1 is up and layer 2 could be down that could be an issue there's something with layer 2. but what we're going to do here on this switch we're just going to give an address for example say 10.1.1.3 and slash24 i don't want to use 2 because 2 it's already taken you can see that 2 is already taken here 5 is already taken or i'm going to connect later on i'm going to connect this and this is three yeah so i need to go to this switch and say config t interface vlan 1 that's the svi description svi for sw1 and then ip address uh 10.1.1.3 and 255 25550 also done right now that's interface is up and um g zero one ah we forgot here to do the no shutdown so by default the rooted interfaces are down so we have to do no shutdown so i'll switch it off by default so again let me go to the router config t see when i make a spelling mistake it just didn't go didn't search for it it just said well unable to find that computer okay so i did not shut down so you can see now the interface is it's up on the router and the switch is amber it's waiting it's checking there is no loop and is up on the router once this both goes green we're gonna ping it and see if we have a connection with a switch we can even fast forward if you want to click this and this will fast forward your time or you can wait 30 seconds it's already up now so you can go to switch you see layer 1 is up layer 2 is up as well so if i go to the router i should be able to ping the switch so ping 10.1.1.3 first packet will get lost um then you see the second one we still lose it as well we lost it and then the rest of the packets are fine so now it's fine if i think it again it's fine we can ping the pcs 10 right yep you can ping that we can ping 20 should be able to bring all the all the pcs that we had earlier even like 70. so if i go to ping 70 let's try that right that's gonna go to the switch then to the hub and then you see received it okay so here the interface show ip interface brief for example sorry show ip interface brief and you can see that g01 g01 interface has got an ipv ip address it's okay manual method status this says layer one is prop they are one information so it's up and this is layer 2 protocol it's up you can see for g00 however doesn't have an iv address and it's administratively down so administrator has switched it off and layer two is down right that interface for example the interfaces could be administratively down down that means layer one is up down layer two is down they could be for example layer one could is down that means there is administrator has did not shut down but there's something wrong with the physical cable and layer 2 could it will be down if layer 1 is down layer 2 will definitely be down in could be that layer 1 is up for example but layer 2 is down that means there's something wrong with the protocol like a layer 2 protocols there's an issue there maybe the clock rate or something like that we can check so this is verifying layer ipv4 address we can do the same command but now we can do with ipv6 show ipv6 interface brief and that says again that says the interface g01 layer one is up layer two is up and that's the link local address and that's your global unit cost address we can say show um if i just go there show ipv6 interface g01 and let me just maximize this little bit okay so we can run the command show interface show ipv6 interface g01 layer 1 is up layer 2 is up the link local address fe80 colon colon 1 global unicost address is this subnet you can see is this so first 64 bits is our subnet and this router has joined to two addresses two multicast addresses so we can see that it's joined to all ipv6 node multicast address ff02 quote unquote one and it has joined another like a multicast address which is these are like a well known multicast addresses and solicited multicast addresses for um there we can use these for r if like for example when you want to resolve ipv6 to mac address ipv6 address to mac address use use so this is the node this is similar to arp okay but there is a router's address that is ff02 cordon coordinate2 that i don't see it i see one which is all ipv6 addresses or nodes that will join to that multicast the routers they will join to this multicast address and this is the router but he hasn't joined there the reason is because i have an enabled unicast unicast rooting unique house routine for ipv6 so you need to you need to enable ipv6 unicast rooted and once that's enabled they will join to this address right and let's do that so i'll do a config d ipv6 unicast unicast routine and then i'll go and conf check again show in show ipv6 interface g01 now you can see because i enabled unicast rooted you can see that this router has joined to the well-known multicast address for all routers pcs don't join that all routers pcs and every other ipv6 interface or device will join to that well-known address okay excellent the next command that i want to show you is for example show if you root show ip root and show ip root this tells me ipv4 routing table and you can see that there is only one so one directly connected network and that's uh if i show you this one to hold this this is whole this network is 10.1.1.0424 right that's that is that the directly connected network and the next one is 10 1 1 4 32 then that is this interface this ip address of this interface this is 10.1.1.1 forward slash 32 that's the ip address here so the router knows how to get to directly connected network and he knows his ip address on that network yes so what we can do is we can actually create a loopback interfaces and look back interfaces that are software interfaces we can't actually attach it to any physical device and it's always going to be on but they sound like a pretending network that we use it on the for example learning here or we can even use it for for example to test it or to manage cisco ios for example because the loopback interface will never go down okay so let me create one loopback interface config t interface as soon as i create the loopback it will go up so loop back let's say 100 or 192. okay so i'll create the 192 and do ip address and you can see the loopback has changed state to up right away layer 1 and layer 2. it's always going to be up so you're never going to go down so ip address 192 168.1.1 and then say two five five two five five um let's say 192 here 192 168 192.1 no shutdown right now when i do show if you root uh you can see that we have two directly connected roots so one for directly connected network 10.1.1.0474 and one directly connect the phone 192.168.192.04 24. that's the local address on that network and that's the local address on that network here 192.168.1. 192.168.19 on that network okay now the devices should be able to ping that network because they don't really know they said loopback for example for testing i can go to any of these devices and ping that loopback address all right um the next thing is i want to actually show you the filter when you want to filter something yeah so you want to filter the output if i do show run or show running config that's quite a lot of app output here maybe i don't want to see everything or show ip interface brief for example there's quite a lot of information here and maybe i just want to see what interfaces are up yeah so i want to filter this output if i say show run okay show ip interface let's do that first show ip interface brief and then i'll use a pipe right so if i for example what it's going to do is going to enable me to filter the commands with with output instead of seeing everything i can use the pipe to run the command but the filter output only what i want to say for example if i use a question mark here you can see include just something or you can do exclude something begin or section for example and just want to show you for example the keyboard if i bring the keyboard on screen and that's pipe pipe so shift and that's our pipe here so we go here shift and that's our pipe here in the in the keyboard okay excellent um let's do that so for example include up so if i ran the same command as i've run this one here for example in here but i'm using pipe so i want to filter only what's up so what is done is just showing me the interfaces with the app so down it has got rid of these interfaces so for example i can i can turn around for example i can say now show ip interface brief and i can say exclude for example exclude up so i want to see just what's down you can see there it takes the output filters it and it just puts it whatever you want to see for example so show running config for example you can see section section let's say line console 0 or just say line is actually con not console so i want to see only that section see i'm running in the show running config here but i don't want to see everything i just want to see the section of line console and that's where it's the output and you can also use other things like begin for example let's say that let's say show running config but i want to see begin i want to start at console 0 or line console zero so line console zero there you go so instead of seeing everything now it's just showing me starting with the console and i see the rest so that's filter it's really good because sometimes you don't want to see too much output you just want to see a section for example or beginning of something and so on another command i want to show you is the history so show history for example these are the commands last 10 commands i put i have entered right and i can navigate through the command so i can just use up arrow and it will go through the commands for example it will go uh it will go to this command then to this then to this then to this every time i use the up arrow it will go to through the commands yeah whatever i entered so i'm using up arrow now you can see the commands it's going through up to config t okay so now you can actually disable this for example terminal uh history size say zero that doesn't it's not going to have anything in history so if i say show history nothing or i can say terminal terminal history size i can say up to two five five two five five and then everything is going to be on the history so now when i say show history show history all right you could say anything else show ip root for example and then i'll announce when i say sorry show history you can see whatever i typed there okay that's it uh we are i think we are done on this lesson it's just the basic configuration basic startup configuration that we did here all this stuff we did it and we did that description as well as ipv4 and ipv6 configuration on the router and we save the configuration and then we configure the loopback interface when you configure the loopback interface now the router knows it's a loopback interface but these devices they will not know when they ping it they will think that their opinion some network okay so we looked at this as well we looked at the verification command show ip interface brief show ipv6 interface brief we did that show running configuration and single interface id instead of just seeing the whole configuration we can just see something yeah so let me just go back to the router so if i go that's my router and i can say instead of seeing the whole configuration i can say show running config running config interface interface uh g01 i don't think it's working on the on the packet tracer but you can do that like that show running config and interface and then g01 for example when you just see the want to see the interface g01 learning config show ip root we did it show ipv6 root show ipv6 interface to verify the link local and multicast addresses we looked at the filtering with the pipe command and we looked at the history and the terminal history size how to change that thank you for watching the lesson 1.6 and this is basic router configuration commands this is of chapter 1 basic device configuration please have a look at my other videos and don't forget to subscribe on the youtube channel bye-bye
Info
Channel: Astrit Krasniqi
Views: 496
Rating: undefined out of 5
Keywords: boot system flash, Power over Ethernet (PoE), duplex, speed, auto-mdix, show flash, show history, show ip ssh, ip ssh version 2, Loopback Interface, interface loopback x, include, exclude, section, terminal history size
Id: q3aJt9_rZLc
Channel Id: undefined
Length: 25min 52sec (1552 seconds)
Published: Fri Apr 02 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.