我们这里主要通过思科的命令行界面CLI对路由器进行基本配置,路由器为Cisco1841, 在进入CLI之前,要用串口线将电脑和路由器的Console接口相连,打开电脑主机的超级终端,进行如下设置

点击确定,然后显示如下信息
System Bootstrap, Version 12.3(8r)T8, RELEASE SOFTWARE (fc1)
Cisco 1841 (revision 5.0) with 114688K/16384K bytes of memory.
Self decompressing the p_w_picpath :
########################################################################## [OK]
              Restricted Rights Legend
Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
cisco Systems, Inc.
           170 West Tasman Drive
           San Jose, California 95134-1706

Cisco IOS Software, 1841 Software (C1841-ADVIPSERVICESK9-M), Version 12.4(15)T1, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Wed 18-Jul-07 04:52 by pt_team
Image text-base: 0x60080608, data-base: 0x6270CD50
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
export@cisco.com.
Cisco 1841 (revision 5.0) with 114688K/16384K bytes of memory.
Processor board ID FTX0947Z18E
M860 processor: part number 0, mask 49
2 FastEthernet/IEEE 802.3 interface(s)
191K bytes of NVRAM.
63488K bytes of ATA CompactFlash (Read/Write)
Cisco IOS Software, 1841 Software (C1841-ADVIPSERVICESK9-M), Version 12.4(15)T1, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Wed 18-Jul-07 04:52 by pt_team

--- System Configuration Dialog ---
Continue with configuration dialog? [yes/no]:
我们输入NO,然后回车,再回车,将出现router>
将路由器的主机名修改成R1
Router>enable
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname R1
R1(config)#
设置访问特权模式的访问密码,第一种是设置特权密码
R1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#enable password 123456
R1(config)#
另一种是设置特权加密密码
R1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#enable secret 3636
R1(config)#
特权密码和特权加密密码的区别在于前者未被加密,通过show running-config命令即可以明文的方式显示出来,而特权加密密码则被以加密的方式显示出来,即乱码。
R1>enable
Password:
R1#show running-config
Building configuration...
Current configuration : 541 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R1
!
!
!
enable secret 5 $1$mERr$Nyhjc1apmhq3YBhha65.8.
enable password 123456
再有就是配置控制台端口(console口)和虚拟终端口(通过网络访问)的密码
R1(config)#line console 0  *配置控制台端口*
R1(config-line)#password 2525
R1(config-line)#login
R1(config-line)#exit
R1(config)#line vty 0 4    *虚拟终端口*
R1(config-line)#password 1414
R1(config-line)#login
R1(config-line)#exit
R1(config)#

以上是思科路由器的几个基本设置命令,其他命令待续

转载于:https://blog.51cto.com/xuewangluo/329492

思科路由器的基本设置(主机名,密码)相关推荐

  1. 思科路由器IKEV2 L2L***预共享密码认证最简化配置

    一.概述: 思科路由器对于IKEV2,是有很多预配的,因此可以很少的配置就能完成IKEV2的配置. 二.基本思路: A.两边都用SVTI的方式配置Flex *** B.没有用动态路由,配置静态路由,如 ...

  2. 连接思科无线经常出现获取不到地址_思科(cisco)路由器登录IP地址默认密码说明...

    思科路由器登录IP地址说明: 要登录和配置思科路由器,我们需要先知道两件事. 1.思科路由器的登录IP地址 2.思科路由器默认登录用户名和密码 本指南说明将为你带来两种设备如何登录和配置思科路由器 步 ...

  3. 思科路由器的几个基本命令总结

    路由器的几个基本命令: Router>enable          进入特权模式 Router#disable          从特权模式返回到用户模式 Router#configure t ...

  4. 计算机网络实验如何设置无线路由器密码,实验一熟悉路由器的配置模式,设置主机名,密码...

    实验一熟悉路由器的配置模式,设置主机名,密码 实验目的:熟悉路由器的各个配置模式,熟练hostname,enable,password,enable password ,secret,config t ...

  5. 思科路由器、交换机配置console口密码和特权模式密码设置与查看删除。(图文)

    第一步:进入思科模拟器,创建一台路由器,我们由2811举例. 第二部:双击路由器进入los命令界面. 这时会发现Would you like to enter the initial configur ...

  6. 思科路由器:密码配置

    密码设置 配置命令: Tab补全命令 Switch> Switch>enable //进入特权模式 Switch#conf t//超级模式 Switch(config)#hostname ...

  7. 思科路由器特权密码忘记了怎么办?

    在使用思科cisco路由器的时候,一旦忘记了登录名和特权密码,要想不损害配置文件,重新复位 .重置你的密码,该如何办呢?按照下面的11个步骤来完成吧. 思科路由器特权码忘记了?教你一种不损坏配置文件的 ...

  8. Openwrt编译进阶-修改ROOT密码,修改默认WiFi名称,修改主机名,修改主机型号

    修改密码 默认情况下root是没有密码的,需设定密码才能开启ssh. 修改shadow文件,位于package/base-files/files/etc/shadow 1)修改登陆密码 root:$1 ...

  9. 思科路由器的密码重置

    思科路由器的密码重置 本篇讲一下思科路由器的密码重置配置,在我们网络工程师接手路由器的时候,可能有前工程师设置了密码而没有交付给我们,我们需要去配置路由器而没有密码,这时候我们就可以修改寄存器的值来查 ...

最新文章

  1. python真假命题_程序员冒死揭开家暴内幕:教女友学Python是道送命题!
  2. P5137-polynomial【倍增】
  3. 你认为已经过时的C语言,是如何影响500万程序员的?...
  4. java传参数的方法_java中方法的参数传递机制
  5. 将C#Lambda表达式转换为通用过滤器描述符和HTTP查询字符串
  6. C/C++ 工具函数 —— 大端模式和小端模式的互换
  7. Galerkin method 热传导公式推导过程
  8. 管家婆财贸双全 凭证记账 Date exceeds maximum of 19-12-31 报错解决办法
  9. php redis 令牌桶算法
  10. Mysql查询某个月的每一天的数据
  11. 推荐:本人使用频率最高的20款Mac软件(全)
  12. Xshell连接路由器或交换机Console口
  13. linux下启动tomcat----Cannot find ./catalina.sh
  14. 产品经理求职方法指南:面试通关
  15. VLAN配置与链路聚合
  16. Python 于 webgame 的应用(上)
  17. Linux uptime 命令(75)
  18. Vue实例中生命周期created和mounted的区别(具体细节分析)。
  19. 【Qt 开源音视频框架模块QtAV】03:QTAV主要接口展示以及播放器源码分享
  20. 男人女人应该不要随便离婚

热门文章

  1. windows----------windows10如何固定局域网ip
  2. Python中的装饰器,迭代器,生成器
  3. 我们并非生活在“虚幻世界”宇宙或是三维空间
  4. oracle 11g-R2安装
  5. java Arrays Generic
  6. 解密NTFS下经EFS加密的文件
  7. 打开老工程的办法(日常操作以这个为准)
  8. 数据仓库相关书籍调研
  9. OpenGL:使用FBO为渲染对象并从GPU取出存图
  10. 机器学习(十二)——机器学习中的矩阵方法(2)特征值和奇异值