Here we will discuss about router mode and most used show commands. After booting a router enters into user EXEC mode first. Obviously after giving any credentials if configured earlier. CLI stands for command line interface, most administrators like this mode for configuring the router.
Test your CCNA knowledge- Start CCNA mock test now
Different Router mode and explanation-
Router Mode | Command Explanation |
---|---|
Router> | User EXEC Mode, Limited viewing of configuration. You can’t make changes in this mode. |
Router# | Privileged EXEC mode, can see the configuration and move to make changes. |
Router(config)# | Global configuration mode. This indicates that you can start making changes. |
Router(config-if)# | Interface command Mode, configure details of a router ports like IP information. |
Router(config-subif)# | Sub interface mode, assign multi IP to single physical port. |
Router(config-line)# | Line command Mode, configure detail about lines like- console, vty, aux etc |
Router(config-router)# | Router Mode, configure routing and protocols. |
Router basic configuration commands-
Routers most essential commands used to setup a router first.
Command set | Command explained |
---|---|
Router# logout / exit | Logout or one step back |
Router# setup | Enters startup mode from command line |
Router# clock set 15:16:00 24 July 2020 | Configure the time and date |
Router(config)# clock timezone EST –5 | Sets the time zone |
Router# terminal history size 25 | Set previous keyboard shortcuts number. |
Router# no terminal history size 25 | Sets the history buffer default to 10 commands. |
Router(config)# no ip domain-lookup | Turns off trying to automatically resolve an unrecognized command to a local host name |
Router(config)# banner motd # welcome to router # | Message of the day, Banner shows before enable -router start |
Router(config)# banner login # welcome to router # | show banner message In login time -telnet |
Router(config)# line console 0 Router(config-line)# logging synchronous | Logging synchronous-if any display message appear from router, move command to next line. |
Router(config)# line console 0 Router(config-line)# exec-timeout 10 0 | Set console time out 10 minutes 0 seconds. 0 0 for no terminal time out. |
Router(config)# ip host kolkata 192.168.1.1 | Assigns a host name to the IP address. Ping name to check work. |
Essential Show commands of router-
Show Commands– it will show various configuration information’s. Here is some useful show commands, Later we will see more information.
Command set | Command explained |
---|---|
Router# show ? | Lists all show commands available. |
Router# show interfaces | Displays statistics for all interfaces. |
Router# show interface serial 1/0 | Displays statistics for the specific interface serial 1/0 port. |
Router# show ip interface brief | Display Information of all ports status. |
Router# show controllers serial 1/0 | Displays statistics for interface hardware. clock rate is set and if the cable is DCE, DTE, or not attached. |
Router# show clock | Displays time set on device. |
Router# show hosts | Displays local host-to-IP address cache. |
Router# show users | Displays all users connected to device. |
Router# show history | Displays the history of commands used at this edit level. |
Router# show arp | Displays the Address Resolution Protocol (ARP) table. |
Router# show protocols | Displays status of configured Layer 3 protocols. |
Router(config)# do show running-config | Executes the privileged-level show command |