cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2244
Views
0
Helpful
1
Replies

login local without usernam and password set on line con 0

Dear All,

on VG310, I wanted to create a password for the console line con 0, but I forgot to create a password and a user name.
I typed "wr" to save.

now it asks for a username and password that I not know.

I tested this error on the PACKET TRACER software by adding a simple router 2911 and the result was the same.

Below config on PACKET TRACER before typing "wr".

Router#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#line con 0

Router(config-line)#login lo

Router(config-line)#login local

Router(config-line)#exit

Router(config)#exit

Router#

%SYS-5-CONFIG_I: Configured from console by console

Router#

Router#sh runn

Building configuration...

Current configuration : 700 bytes

!

version 15.1

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname Router

!

!

!

!

!

!

no ip cef

no ipv6 cef

!

!

!

!

license udi pid CISCO2911/K9 sn FTX1524302E

!

!

!

!

!

!

!

!

!

!

!

spanning-tree mode pvst

!

!

!

!

!

!

interface GigabitEthernet0/0

no ip address

duplex auto

speed auto

shutdown

!

interface GigabitEthernet0/1

no ip address

duplex auto

speed auto

shutdown

!

interface GigabitEthernet0/2

no ip address

duplex auto

speed auto

shutdown

!

interface Vlan1

no ip address

shutdown

!

ip classless

!

ip flow-export version 9

!

!

!

!

!

!

!

line con 0

login local

!

line aux 0

!

line vty 0 4

login

!

!

!

end

Router#

Thank you

1 Reply 1

Mark Malone
VIP Alumni
VIP Alumni

can you log in through the vty and change the config on the con port from there ?

If not you may have to recover it as you have told the router use a local database on the router for authentication but never configured one first

Review Cisco Networking for a $25 gift card