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

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

点击确定,然后显示如下信息
System Bootstrap, Version 12.3(8r)T8, RELEASE SOFTWARE (fc1)
Cisco 1841 (revision 5.0) with 114688K/16384K bytes of memory.
Self decompressing the image :
########################################################################## [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
[email protected] .
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)#

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

你可能感兴趣的:(命令,密码,路由器,思科,基本设置)