1、用控制台连线,连接PC机的 RS232 端口和路由器的 Console 端口。

2、单击PC机,打开“桌面”,点击“终端”。

3、点击“确定”。

4、输入 no ,回车。

5、配置如下内容:
|
Router>
|
|
Router>en 【进入特权模式】
|
|
Router#conf t 【进入全局配置模式】
|
|
Router(config)#line console 0 【配置Console 0接口】
|
|
Router(config-line)#password 123456 【密码123456】
|
|
Router(config-line)#login 【允许通过本地登录】
|
|
Router(config-line)#exit
|
|
Router(config)#exit
|
|
Router#write 【保存配置】
|
|
Building configuration...
|
|
[OK]
|
|
Router#reload 【重启路由器】
|
|
Proceed with reload? [confirm]
|
6、待路由器重启完成后,再次进入终端,发现需要输入密码才可以配置路由器。

注意:输入密码时没有回显【 不显示密码,也不显示星号,但实际已经输入了,输入完成按回车键 】
交换机的配置方法和路由器相同,参考以上配置即可。