1、设置特权模式密码,设置”nihao“为全局模式密码进入全局模式,输入”enable password nihao“
2、设置console口登陆密码为helllo全局模式输入”line console 0“,设置控制台状态输入”password hello“
3、设置telnet远程登陆密码全愁抉痊歪局模式的console口配置下,开启远程访问开关,输入“login ”,默认远程访问是关闭的
4、设置最大允许远程登陆的虚拟端口为5个,输入命令“line vty 0 4”
5、telnet远程登陆密码设置为“nihao”
6、使用show running-config,查看特权模式模式密码、控制端密码、远程连接密码,此为明文形式存储。
7、为避免密码被查看,使用密文形式进行存储使用命令“service password-encryption”
8、使用“show running-config”查看,所有密码均为密文形式显示