思科CISCO实验记录一:路由器基本配置原理与命令小结

本文讲述了思科CISCO实验中的路由器基本配置原理与命令。分享给大家供大家参考,具体如下:

一、路由器基本配置要求

1、设置路由器名为:hehe

2、设置特权模式下password为ccna,secret为ccnp,vty线路密码为ccie

3、所有明文密码都加密

二、路由器基本配置命令

1、设置路由器名为:hehe

Router#configure terminal  //进入配置模式

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

Router(config)#hostname hehe //设置hostname

hehe(config)#

2、设置特权模式下password为ccna,secret为ccnp,vty线路密码为ccie

hehe#configure terminal

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

hehe(config)#enable password ccna  //特权模式的password密码

hehe(config)#enable secret ccnp  //特权模式的secret密码

hehe(config)#line vty 0 4  //启用0-4号5个vty

hehe(config-line)#password ccie  //登录的password

hehe(config-line)#login  //启用密码验证,no login关闭密码验证

3、所有明文密码都加密

hehe(config)#service password-encryption

三、路由器基本配置解析

1、新设备如何连接

新到的路由器可以通过console口与电脑连接,默认波特率为9600即可自动与设备连接

2、password、secret

  • password是早期设备的密码协议,默认是明文保存的
  • secret是最常用的密码方式,是MD5加密的

3、vty

vty支持多种协议,常见的有ssh、telnet等,默认telnet协议。

line vty 0 4 是开启0到4号5个vty线路,表明同时允许5个用户登录设备

4、明文密码的加密

使用service password-encryption命令可以将设备上所有明文密码都加密