cisco 2900企业级系列路由器初始配置

来源:互联网 发布:网络推手汇航 编辑:程序博客网 时间:2024/06/05 09:39

cisco 2900企业级系列路由器初始配置

最近公司拓展业务,网络部署全都交给我一个人,鸭梨山大,花了几天饿补了网络方面的知识,cisco路由器的配置做个学习笔记简单记录下。

准备工具:

笔记本一台,一根Console线(RJ45转串口9孔)、一根USB转DB9针RS232串口线、secureCRT终端仿真程序

STEP1

第一次进行思科路由器的配置时,需要通过console端口进行配置,通过console线+USB线连接cisco路由器,一端连接console端口,一端连接笔记本,开启路由器电源,启动比较慢,大概等待一分钟左右;

STEP2

运行secureCRT终端仿真程序,波特率:9600,数据位:8,停止位:1,奇偶校验:无,port端口根据实际console线的驱动来选择,我的是COM3,如下图
这里写图片描述

STEP3

首次登录,用户名、密码默认是cisco,路由器会自动进入SetUp模式,本人习惯CTRL+C对出SetUp模式,手动配置;

Router>enable //进入特权模式Router#conf t //进入全局模式,全拼 configure terminalEnter configuration commands, one per line.  End with CNTL/Z.Router(config)#hostname cisco  //设置路由器名cisco(config)#enable password 123 //设置进入特权状态的密码(password),此密码只在没有密文时起作用,并且在设置以后会以明文方式显示cisco(config)#enable secret 456 //设置进入特权状态的密文//console端口登录的密码cisco(config)#line console 0 cisco(config-line)#password xxxxxcisco(config-line)#login//远程telnet端登陆的密码cisco(config-line)#line vty 0 15cisco(config-line)#password xxxxxcisco(config-line)#logincisco(config-line)#exitcisco(config)#exitcisco#copy running-config startup-config //保存当前配置为下次启动配置Destination filename [startup-config]? Building configuration...[OK]cisco#reload //重启路由器

注意:**copy running-config startup-config 务必执行,保证了当前配置被保存到路由器中,否则下次重启会恢复为初始设置。

常见问题

登录密码忘记怎么办或者如何清空恢复出厂设置?

  • 重启路由器,启动加载时按住CTRL+Break键
  • rommon 1> confreg 0x2142 //表示跳过启动配置文件startup-config
  • rommon 2> reset
  • 当路由器重新启动结束后出现是否运行配置向导时,CTRL+C回到用户模式
  • 重新配置你的密码、等等。。。
  • 配置完后,全局模式下输入config-register 0x2102命令,下次启动读取startup-config配置文件
  • 最后特权用户模式下,copy running-config startup-config 将最新配置保存为启动配置
  • reload
0 0
原创粉丝点击