Line configuration question

SRTMCSESRTMCSE Member Posts: 249
What does the CCNA exams expect when configuring a password on a vty or console or aux line?

The Cisco Press book lists it as

Router(config)#line console 0
Router(config-line)#login
Router(config-line)#password cisco

The Sybex book lists it as

Router(config)#line console 0
Router(config-line)#password cisco
Router(config-line)#login

Which way is correct as far as what the exams are looking for?

Comments

  • mikearamamikearama Member Posts: 749
    Both work.

    Having said that, I prefer:

    Router(config)#line console 0
    Router(config-line)#password cisco
    Router(config-line)#login

    Why?

    Cause if you do the other way, you get some error, suggesting that "the line will not be available until a password is assigned", or some such nonsense. Kinda gives me the impression that the machine itself thinks you should have entered a password first.

    So to avoid that, put the password in first.
    There are only 10 kinds of people... those who understand binary, and those that don't.

    CCIE Studies: Written passed: Jan 21/12 Lab Prep: Hours reading: 385. Hours labbing: 110

    Taking a time-out to add the CCVP. Capitalizing on a current IPT pilot project.
  • StoticStotic Member Posts: 248
    I believe you have to enter a password before you type the login command. Because otherwise you'd be telling the IOS to prompt for a password that doesn't exist.
Sign In or Register to comment.