思科路由器的基本设置(主机名,密码)
生活随笔
收集整理的這篇文章主要介紹了
思科路由器的基本设置(主机名,密码)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
我們這里主要通過思科的命令行界面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)#
以上是思科路由器的幾個基本設置命令,其他命令待續
點擊確定,然后顯示如下信息 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
總結
以上是生活随笔為你收集整理的思科路由器的基本设置(主机名,密码)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 图片自适应css代码(转)
- 下一篇: KDE Akademy 2008 会议