2024年3月21日发(作者:)

思科2960初始化配置CONSOLE口

VTY(virtual type terminal)虚拟终端连接

line vty 0 4 // VTY是路由器的远程登陆的虚拟端口,0 4表示可以同时打开5个会

1. 建立PC到路由器的物理连接,用RS232 CONSOLE线(随交换机带)连接路由器

CONSOLE接口和PC的COM口。

2. 在计算机上使用超级终端:打开“开始-程序-附件-通讯-超级终端—新建超级终端”,

首先为新建连接设置名称。

然后,设置连接用端口,一般选择COM1,再设置连接参数,设置参数如下:每秒位数

为9600,数据位为8,奇偶校验为无,停止位为1,数据流控制为Xon/Xoff。 不可搞错

了!

3. 等待30秒,回车,出现人机对话界面

Would you like to enter the initial configuration dialog? [yes/no]: 是否按提示步

骤操作

% Please answer yes or no.

Would you like to enter the initial configuration dialog? [yes/no]: n 输入n(自

己手工设置)

Press RETURN to get started!

Switch> 首先看到的是用户模式

Switch>en 输入en(即enable)进入特权模式

Switch#conf t 进入配置模式

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#hostname sw2960 给交换机命名

sw2960(config)#enable secret Cisco 设置特权加密口令

sw2960(config)#enable password Cisco 给交换机配置特权管理口令(明码的)

sw2960(config)#line consle 0 进入控制台口(RS232)

sw2960(config-line)#password Cisco 设置登录口令

sw2960(config-line)#login 登录要求口令验证

sw2960(config-line)#exit 退出到上级目录

sw2960(config)#line vty 0 4 给交换机开启远程管理