如何为路由和交换机上设置进入控制台线路口令?

如题所述

思科交换机
顺序及代码和解释如下:
enable 进入特权模式的命令(特权模式也叫做enable模式)
config terminal 进入到路由器配置模式,95%路由器配置修改在此模式及其子模式内完成
line console 0 进入console 线路配置模式
login 允许输入密码登入
password 13579 设置console口登录密码
line vty 0 4 进入虚拟终端配置模式,vty 0为第一个远程连接过来的user,vty 1为第二个远程连接过来的user,以此类推来自:求助得到的回答
温馨提示:答案为网友推荐,仅供参考
第1个回答  2013-01-04
那要看什么牌子,
华为的telnet口令设置
user-interface vty 0 14
user privilege level 3
set authentication password simple huawei
idle-timeout 0 0
protocol inbound all
user-interface vty 16 20追问

是思科的 虚拟配置
怎么弄?

本回答被网友采纳
第2个回答  2013-01-04
cisco设备如果是控制台在line con 0上用password 设置口令,如果是虚拟终端在line vty 0 15 上设.
第3个回答  2013-01-04
Cisco的。Console:
(config)# line con 0
(config)# login
(config)#password XXXX