Line: cty 和 vty的配置
Switch#sh line
Switch#conf t
Switch#line con 0
Switch#password *******
Switch#login
Switch#exec-timeout 0 0
本地登陆授权:
Switch#conf t
Switch(config)#username cisco password cisco
Switch(config)#line vty 0 4
Switch(config-line)#log
Switch(config-line)#login local
SSH配置:
Switch(config)#ip domain name brose.net
Switch(config)#crypto key generate rsa
The name for the keys will be: tacn2001.brose.net
Choose the size of the key modulus in the range of 360 to 4096 for your
General Purpose Keys. Choosing a key modulus greater than 512 may take
a few minutes.
How many bits in the modulus [512]: 2048
% Generating 2048 bit RSA keys, keys will be non-exportable...[OK]
Switch(config)#ip ssh
*Mar 1 0:4:47.983: %SSH-5-ENABLED: SSH 1.99 has been enabled
Switch(config)#ip ssh version 2
Switch(config)#username tacit password tacnet
Switch(config)#line vty 0 4
Switch(config-line)#login local
Switch(config-line)#transport input ssh
Enable加密:
Switch(config)#enable algorithm-type scrypt secret cisco
更改enable密码:
通过中断启动顺序进入ROMMO, 修configreg位置, reset后进入系统, 通过copy startup to running 来bypass enable 密码, 并进行修改.