Creating Users on a Cisco Router

This tech-recipe will allow you to create multiple users on a router. It is also a handy tool to find out who did what and at what time (permitting logging is on and the correct date/time is configured).


We first start by creating the users. Use the following command:
username user password password

We will use this command for each user we want to create.

Now, we enable the use of usernames to log in to the router.
We use the following commands:
aaa new-model
aaa authentication login default local

The first line enables aaa or authentication, authorization, and accounting. The second line is telling the router to use the local user database which was created in the first step.

Now that this is enabled on the router, logging into the router (console, telnet) will prompt for a username/password.

The Conversation

Follow the reactions below and share your own thoughts.

8 Responses to “Creating Users on a Cisco Router”

  1. April 19, 2009 at 6:13 pm, TP1 said:

    not enough information no exampled given

    Reply

  2. August 31, 2009 at 6:55 pm, Anonymous said:

    What if you configure a login and get dropped before you create the username?

    WAK_1720_Interne(config-line)#line vty 0 4
    WAK_1720_Interne(config-line)#exec-time 60 0
    WAK_1720_Interne(config-line)#privilege level 15
    WAK_1720_Interne(config-line)#login local
    WAK_1720_Interne(config-line)#transport input telnet

    Reply

  3. June 29, 2010 at 9:21 am, Hunny_sachdevaa said:

    not given proper info…….

    Reply

  4. December 16, 2010 at 12:53 pm, Rajput Kumar87 said:

    What is the default User of Router ?
    when we start router router start which user name

    Reply

  5. February 20, 2012 at 8:43 am, ufuoma said:

    thanks

    Reply

  6. June 26, 2012 at 11:59 am, Hariharan S said:

    What worked is :

    en
    Conf t
    username password
    aaa new-model
    aaa authentication login default local
    line vty 0 4
    exec-time 60 0
    privilege level 15
    transport input telnet (ssh-optional)

    Reply

    • July 05, 2012 at 3:56 pm, engineer said:

      > thank you it’s working

      Reply

  7. March 30, 2014 at 8:14 am, Jepp7396 said:

    Hey i need to creat Line login

    Reply

Leave a Reply