Home > Cisco Command Line Interface CLI

Cisco Command Line Interface CLI

December 20th, 2011 Go to comments

In the previous tutorial we learned about the boot sequence of a Cisco router/switch. After that, the router will allow us to type commands but in different modes we can only used specific commands. So in this tutorial we will learn about the Command Line Interface (CLI) and different modes in a Cisco router/switch.

Below lists popular modes in Cisco switch/router:

Router> User mode
Router# Privileged mode
Router(config)# Configuration mode
Router(config-if)# Interface level (within configuration mode)
Router(config-router)# Routing engine level (within configuration mode)
Router(config-line)# Line level (vty, tty, async) within configuration mode

Now let’s discuss each mode in more detail

User mode (Unprivileged mode)
In most case this is the mode you will see on the screen after connecting to it. This mode provides limited access to the router. You are provided with a set of nondestructive commands that allow examination of certain router configuration parameters (mostly to view statistics). You cannot, however, make any changes to the router configuration.

Privileged mode
Also known as the Enabled mode, this mode allows greater examination of the router and provides a more robust command set than the User mode. In Privileged mode, you have access to the configuration commands supplied in the Global Configuration mode, meaning you can edit the configuration for the router.

Configuration mode
Also called the Global Configuration mode, this mode is entered from the Privileged mode and supplies the complete command set for configuring the router. In this mode you can access interface level, routing engine level, line level…

Interface level

In some books, this level is also referred as “interface configuration mode” or “interface mode”. In fact, it is a level inside Configuration mode so you can see the “configuration” part in its prompt (config-if). This level can be accessed by typing a specific interface in Configuration mode. For example:

Router(config)#interface fa0/0
Router(config-if)#

But notice that the prompt doesn’t give you information about which interface is being configured so be careful with this level while you are configuring! This lack of information can make you configure wrong interface easily!

Routing engine level

This is the level where we configure dynamic routing protocols (RIP, OSPF, EIGRP…). You will learn about them later in CCNA.

Line level

In this level we can configure Telnet, Console, AUX port parameters. Also notice that the prompt (config-line) is used for all “lines” on the router so you must be careful about which line you are configuring!

Note: The “line” here can be a physical Console port or a virtual connection like Telnet.

The image below shows how to access each mode and popular levels inside Configuration mode:

popular_modes.jpg

Learning about modes is not difficult and you will get familiar with them while configuring routers & switches. Just pay a little attention to them each time you practice and surely you can grasp them easily.

Comments (50) Comments
Comment pages
1 2 1024
  1. Sunny
    December 20th, 2011

    That is great. Million thanks 9tut.

  2. brijessh
    December 22nd, 2011

    it is the way that tell difficult things in simple manner….specially figure boss.

  3. kodeswaran
    December 30th, 2011

    It is really a great website.any one can read easily and gain knowledge more….

    thanks to 9tut members….

  4. aman
    January 26th, 2012

    good explanation..

  5. Thura
    May 13th, 2012

    Cool !!!! Thanks millions…9tut

  6. gowtham
    May 15th, 2012

    Tnx a lot..great job.

  7. anisetti.sureshbabu
    September 5th, 2012

    understood different types of modes in single step.

    Thank you.

  8. KASIM ALI
    April 25th, 2013

    good guidance for the beginners of CCNA course

  9. ALY
    May 11th, 2013

    Million Thx

  10. okal
    June 18th, 2013

    this Anonymous guy has passed alot of CCNA exams. well hes selling whatever he is advertising here.

  11. MATHABO
    July 25th, 2013

    IL BE WRITTING MY CCNA IN SEPTEMBER,WISH ME LUC AND HELP ME IF YOU CAN

  12. Shantanu
    September 11th, 2013

    You r really genius u make the things uk better thanx a ton dude!

  13. Stephanoia
    March 1st, 2014

    You are the best ! Thanks

  14. Veronica
    March 31st, 2014

    Well explained!!! thank you very much to 9tut.

  15. rakesh
    May 15th, 2014

    ah all the commands u r given is not workng properly check the commands once if u can

  16. hero_mind
    July 21st, 2014

    one of the best sites is 9tut great thanks 4 u
    but I wish more question
    one thing else
    you can make the answer with white color to not appeared and we can see it by selecting

  17. sunny
    July 26th, 2014

    u pple r doung gr8 job! 9tut

  18. Sandy6933
    August 8th, 2014

    This is an awesome way to understand small things.

    Keep writing :)

  19. Walta
    August 18th, 2014

    Thanks 9tut.

  20. putty
    October 14th, 2014

    Hi guys, I am taking my ccna on October 16, 2014, kindly please send me any new dumps asap to my email id puttyrobin@yahoo.com. Gatrillion thanks!!

  21. Rahul Takle
    November 4th, 2014

    Can any one mail me the ccna 200-120 dumps latest.

  22. ikelvin
    January 6th, 2015

    Awesome!

  23. ikelvin
    January 6th, 2015

    Please do mail the latest CCNA 200-120 dumps to kelvin4455ace@yahoo.com.. plenty thanks!

  24. obaid
    February 23rd, 2015

    please send me latest dumps of CCNA 200-120 at obaid058@yahoo.com
    thanks

  25. Rhod
    April 30th, 2015

    Hi great Topic please send me the latest dumps to romaric.dj@protonmail.ch

  26. black
    June 21st, 2015

    Billion thanks to 9tut

  27. Rahul
    July 1st, 2015

    How simply u describe these all modes. Great thanks 9tut.

  28. 1234
    July 10th, 2015

    hello

  29. ocquaye
    August 21st, 2015

    am a new student to the course needs a freindly guide through out the course

  30. ocquaye
    August 21st, 2015

    0207245450 if there is someone to do me that kind of favour i will be very greatful

  31. Muhammad Siddique
    September 25th, 2015

    GNS has Released new GNS 1.4 Beta Version

    http://www.info-it.net/cisco/labs/installation-of-gns3.php

  32. edna
    September 29th, 2015

    Please send me ccna dumps to bonsyia@yahoo.com

  33. Henry
    October 2nd, 2015

    Please I’ll need dumps as I am preparing for exams thanks. Please forward to iamhengy@yahoo.com I’ll really appreciate.

  34. Anonymous
    November 4th, 2015

    anyone here know where i can find free software download.. please tell me…
    or email me… roberttongherrison@yahoo.com

  35. trieutulong
    January 25th, 2016

    I am preparing for CCNA exam next month. Could anyone send me CCNA dumps to {email not allowed}, pls? Thanks in advance

  36. booogoooleeee
    February 1st, 2016

    hi everybody

  37. Avinash
    February 28th, 2016

    Supb

  38. njknn
    March 3rd, 2016

    huh

  39. Anonymous
    March 6th, 2016

    Hello Please send me latest CCNA NOTES to {email not allowed}
    I will largely appreciate

  40. Young Guru
    March 6th, 2016

    nonymous March 6th, 2016
    Hello Please send me latest CCNA NOTES to {email not allowed}
    I will largely appreciate

  41. jabad
    March 14th, 2016

    please step by step question give ccna online exam

  42. Snowguy
    May 13th, 2016

    We can also add: config-if-range where configuration is done on multiple interface.
    Example:
    R1#conf
    R1(config)#int range fa0/0-8
    R1(config-if-range)# <change will apply to each int. from fa0/0 to fa0/8
    R1(config-if-range)#end

  43. Anonymous
    June 17th, 2016

    Could please some can sent me latest CCNA dumpts>
    email id : negi . sanjay 109 @ gmail. com

  44. Anonymous
    June 22nd, 2016

    where can i download free cisco simulator software?i am preparing for CCNA. please share you manuals.send to gbolaer at gmail dot com

  45. Willy
    August 3rd, 2016

    This is interesting

  46. Omar
    August 17th, 2016

    please send all this info to {email not allowed}

    i nned to study for the certification and i would like to print this info to study

  47. Anonymous
    October 7th, 2016

    It’s really very helpful… Thanks.

  48. Anonymous
    December 2nd, 2016

    Very helpful, easy and descriptive. Thumbs up team

  49. fahadkalis
    December 8th, 2016

    please send me latest pass4sure on fahaduddin 86 @ outlook .com

Comment pages
1 2 1024
Add a Comment