1、掌握帶外管理方法:通過console接口配置
2、掌握帶內的管理方法:通過telnet 方式配置
3、掌握帶內的管理方法:通過web 方式配置
工具/原料
1、DCR-1702 一臺 2、DCR-2611 一臺 3、PC 機 一臺 4、console 線攬、網線各一條
方法/步驟
實驗拓撲
帶外管理方法:(本地管理)
第一步:將配置線的一端與路由器的 Console 口相連,另一端與PC 的串口相連,如圖所示。
在PC 上運行終端仿真程序。點擊“開始”,找到“程序”,選擇“附件”
下的“通訊”,運行“超級終端”程序,同時需要設置終端的硬件參數(包括串口號):
波特率:9600
數據位:8
奇偶校驗:無
停止位:1
流控:無
路由器加電,超級終端會顯示路由器自檢信息,自檢結束後出現命令提示“Press
RETURN to get started”。
System Bootstrap, Version 0.1.8
Serial num:8IRT01V11B01000054 ,ID num:000847
Copyright (c) 1996-2000 by China Digitalchina CO.LTD
DCR-1700 Processor MPC860T @ 50Mhz
----------------------- 頁面 3-----------------------
The current time: 2067-9-12 6:31:30
Loading DCR-1702.bin......
Start Decompress DCR-1702.bin
##############################################################################
#####################################################################
#####################################################################
#####################################################################
######## Decompress 3587414 byte,Please wait system up..
Digitalchina Internetwork Operating System Software
DCR-1700 Series Software , Version 1.3.2E, RELEASE SOFTWARE
System start up OK
Router console 0 is now available
Press RETURN to get started
按回車鍵進入用戶配置模式。DCR-1702 系列路由器出廠時沒有定義密碼,用戶
按回車鍵直接進入普通用戶模式,可以使用權限允許範圍內的命令,需要幫助可
以隨時鍵入“?”,輸入enable,敲回車則進入超級用戶模式。這時候用戶擁有最
大權限,可以任意配置,需要幫助可以隨時鍵入“?”。
Router-A>enable !進入特權模式
Router-A#2004-1-1 00:04:39 User DEFAULT enter privilege mode from console 0, level = 15
Router-A#? !查看可用的命令
cd -- Change directory
chinese -- Help message in Chinese
chmem -- Change memory of system
chram -- Change memory
clear -- Clear something
config -- Enter configurative mode
connect -- Open a outgoing connection
copy -- Copy configuration or image data
date -- Set system date
debug -- Debugging functions
----------------------- 頁面 4-----------------------
delete -- Delete a file
dir -- List files in flash memory
disconnect -- Disconnect an existing outgoing network
connection
download -- Download with ZMODEM
enable -- Turn on privileged commands
english -- Help message in English
enter -- Turn on privileged commands
exec-script -- Execute a script on a port or line
exit -- Exit / quit
format -- Format file system
help -- Description of the interactive help system
history -- Look up history
Router-A#ch? !使用?幫助
chinese -- Help message in Chinese
chmem -- Change memory of system
chram -- Change memory
Router-A#chinese !設置中文幫助
Router-A#? !再次查看可用命令
cd -- 改變當前目錄
chinese -- 中文幫助信息
chmem -- 修改系統內存數據
chram -- 修改內存數據
clear -- 清除
config -- 進入配置態
connect -- 打開一個向外的連接
copy -- 拷貝配置方案或內存映像
date -- 設置系統時間
debug -- 分析功能
delete -- 刪除一個文件
dir -- 顯示閃存中的文件
disconnect -- 斷開活躍的網絡連接
download -- 通過ZMODEM 協議下載文件
enable -- 進入特權方式
english -- 英文幫助信息
----------------------- 頁面 5-----------------------
enter -- 進入特權方式
exec-script -- 在指定端口運行指定的腳本
exit -- 退回或退出
format -- 格式化文件系統
help -- 交互式幫助系統描述
history -- 查看歷史
keepalive -- 保活探測
--More—
帶內遠程的管理方法:(Telnet 方式)
第五步:設置路由器以太網接口地址並驗證
Router>enable !進入特權模式
Router #config !進入全局配置模式
Router-A_config#interface f0/0 !進入接口模式
Router-A_config_f0/0#ip address 192.168.2.1 255.255.255.0 !設置IP 地址
Router-A_config_f0/0#no shutdown
Router-A_config_f0/0#^Z
Router-A#show interface f0/0 !驗證
FastEthernet0/0 is up, line protocol is up !接口和協議都必須up
address is 00e0.0f18.1a70
Interface address is 192.168.2.1/24
MTU 1500 bytes, BW 100000 kbit, DLY 10 usec
Encapsulation ARPA, loopback not set
Keepalive not set
ARP type: ARPA, ARP timeout 04:00:00
60 second input rate 0 bits/sec, 0 packets/sec!
60 second output rate 6 bits/sec, 0 packets/sec!
Full-duplex, 100Mb/s, 100BaseTX, 1 Interrupt
0 packets input, 0 bytes, 200 rx_freebuf
Received 0 unicasts, 0 lowmark, 0 ri, 0 throttles
0 input errors, 0 CRC, 0 framing, 0 overrun, 0 long
1 packets output, 46 bytes, 50 tx_freebd, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 babbles, 0 late collisions, 0 deferred, 0 err600
0 lost carrier, 0 no carrier 0 grace stop 0 bus error
0 output buffer failures, 0 output buffers swapped out
設置PC 機的IP 地址並測試連通性
使用PING 測試連通性:
在PC 機上telnet 到路由器
運行 telnet 192.168.2.1,出現如下結果:
帶內遠程的管理方法:(Web 方式)
由於1702 不支持WEB 管理方式,以下配置以DCR-2611 為例
同前配置,將以太網接口地址配置為192.168.2.2/24
Router-C#config
Router-C_config#interface f0/0
Router-C_config_f0/0#ip address 192.168.2.2 255.255.255.0
Router-C_config_f0/0#no shutdown
Router-C_config_f0/0#exit
Router-C_config#ip http server !開啟HTTP 服務
Router-C_config#^Z
Router-C#2089-2-22 01:22:06 Configured from console 0 by DEFAULT
Router-C#show running-config !驗證
Building configuration...
Current configuration:
!
!version 1.3.1S
service timestamps log date
service timestamps debug date
no service password-encryption
!
hostname Router-C
!
!
username abc password 0 digital
!
interface FastEthernet0/0
ip address 192.168.2.2 255.255.255.0 !F0/0 的IP 地址
no ip directed-broadcast
!
interface Async0/0
no ip address
no ip directed-broadcast
!
gateway-cfg
Gateway keepAlive 60
shutdown
!
ivr-cfg
!
ip http server ! HTTP 服務開啟狀態
注意事項
1. 在超級終端中的配置是對路由器的操作,這時的PC 只是輸入輸出設備
2. 在telnet 和web 方式管理時,先測試連通性