Warning: Invalid argument supplied for foreach() in /home/techrecipes/public_html/wp-content/themes/techrecipes/header.php on line 77

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.

  • TP1

    not enough information no exampled given

  • Anonymous

    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

  • Hunny_sachdevaa

    not given proper info…….

  • Rajput Kumar87

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

  • ufuoma

    thanks

  • Hariharan S

    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)

    • engineer

      > thank you it’s working

  • Jepp7396

    Hey i need to creat Line login