cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4161
Views
0
Helpful
2
Replies

Line console

danilopasiani1
Level 1
Level 1

Hello Guys,

 

I would like to know how can I config line console in a switch Cisco WS-C2960X.

 

I tried this config below but I could not set up.

  1. router#configure terminal
    Enter configuration commands, one per line.  End with CNTL/Z.
    router(config)#line con 0
    router(config-line)#
    
    router(config-line)#password letmein
    router(config-line)#login

 

This is my switch when I try config.

 

STK-2960-B(config-line)#login ?
  authentication  Authentication parameters.

STK-2960-B(config-line)#login 
% Incomplete command.

 

line con 0
 privilege level 15
 logging synchronous
 login authentication console

 

1 Accepted Solution

Accepted Solutions

Rolf Fischer
Level 9
Level 9

Hi,

the authentication methods for the switch lines depend on the (global) aaa model (authentication, authorization and accounting):

Sw1(config)#no aaa new-model
Sw1(config)#line vty 0 15
Sw1(config-line)#login ?
  local   Local password checking
  tacacs  Use tacacs server for password checking
  <cr>

       
Sw1(config)#aaa new-model
Sw1(config)#line vty 0 15
Sw1(config-line)#login ?
  authentication  Authentication parameters.
  ctrlc-disable   Disable CONTROL-C during login.
Sw1(config-line)#login authentication ?
  WORD     Use an authentication list with this name.
  default  Use the default authentication list.
Sw1(config-line)#login authentication default ?
  <cr>

Link: cat2960X - Controlling Switch Access with Passwords and Privilege Levels

 

HTH

Rolf

View solution in original post

2 Replies 2

Rolf Fischer
Level 9
Level 9

Hi,

the authentication methods for the switch lines depend on the (global) aaa model (authentication, authorization and accounting):

Sw1(config)#no aaa new-model
Sw1(config)#line vty 0 15
Sw1(config-line)#login ?
  local   Local password checking
  tacacs  Use tacacs server for password checking
  <cr>

       
Sw1(config)#aaa new-model
Sw1(config)#line vty 0 15
Sw1(config-line)#login ?
  authentication  Authentication parameters.
  ctrlc-disable   Disable CONTROL-C during login.
Sw1(config-line)#login authentication ?
  WORD     Use an authentication list with this name.
  default  Use the default authentication list.
Sw1(config-line)#login authentication default ?
  <cr>

Link: cat2960X - Controlling Switch Access with Passwords and Privilege Levels

 

HTH

Rolf

Ganesh Hariharan
VIP Alumni
VIP Alumni

Hi,

Apart from what Rofl Suggested, Have a look on the below link for more information...

http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960/software/release/12-2_53_se/configuration/guide/2960scg/swauthen.html

 

Hope It Helps..

-GI

Rate if it Helps..

Review Cisco Networking for a $25 gift card