Username Command on CISCO Router/Switch

Command

Username

Use

Creates a new user on the router.

Syntax

Router(config)#username <WORD> password <WORD>

Example

In the following example a new user is created on the router. This user is then used when logging in via a telnet session from R2.

R1(config)#username Test password cisco

Telnet is enabled on R1

R1(config)#line vty 0 4
R1(config-line)#login local

The user is used to log into R1 via telnet from R2

R2#telnet 10.1.1.1
Trying 10.1.1.1 … Open

User Access Verification

Username: test
Password: ****
R1>

Related Articles

Leave a Reply

avatar