Silly Telnet Question

dppagcdppagc Member Posts: 293
If I use enable password cisco on the switch,

then why cant I telnet in with

line vty 0 4
login local

??

Comments

  • OfWolfAndManOfWolfAndMan Member Posts: 923 ■■■■□□□□□□
    There is three ways you can do this:

    1.#enable [password | secret] C1sco
    #line vty 0 4
    #password C1sco
    #login

    2.
    #enable [password | secret] C1sco
    #username [username] password [password]
    #line vty 0 4
    #login local

    3. (My fave for home lab)
    #enable secret C1sco
    #username [username] privilege 15 password [password]
    #line vty 0 4
    #login local

    Even though you bypass to privileged exec with the last one, it still requires you to set the password. Nice to have though so you don't need to put in the password twice.
    :study:Reading: Lab Books, Ansible Documentation, Python Cookbook 2018 Goals: More Ansible/Python work for Automation, IPSpace Automation Course [X], Build Jenkins Framework for Network Automation []
  • pevangelpevangel Member Posts: 342
    You need to create a local user account:

    username <username> privilege 15 secret <password>
  • Phileeeeeeep651Phileeeeeeep651 Member Posts: 179 ■■■□□□□□□□
    The login local command looks for a username and password in the local database. Without a username and password set it will not work. Use what OfWolfAndMan and pevangel posted and that should fix it.
    Working on: CCNP Switch
  • dppagcdppagc Member Posts: 293
    Actually I learnt that there is one more way for your home lab.

    line vty 0 4
    no login

    You go in directly. No need password.
    I discovered this accidentally.
Sign In or Register to comment.