文档介绍:实验三、路由器的基本配置
一、实验目的
1. 掌握路由器配置前的准备
2. 掌握路由器的机器名的配置
3. 接口 IP 地址、基本封装类型
二、应用环境
1. 在执行配置之前,本节学习的基本配置,是其他任务的基础。
2. 主要学习机器名、接口地址、特权模式密码等方法
三、实验设备
1. DCR-1751 两台
2. CR-V35MT 一条
3. CR-V35FC 一条
4. 网线两条
四、实验拓扑
五、实验要求
配置表
Router-A Router-B
接口类型 IP 地址接口类型 IP 地址
S1/1 DCE S0/0 DTE
F0/0
六、实验步骤
路由器 A 的基本配置:
第一步:恢复出厂设置
Router>enable !进入特权模式
Router#2004-1-1 00:32:10 User DEFAULT enter privilege mode from console 0, level = 15
Router#show running-config !查看当前配置
Building configuration...
Current configuration:
!
!version
<省略>
Router#delete !删除配置文件
this file will be erased,are you sure?(y/n)y
Router#reboot !重新启动
Do you want to reboot the router(y/n)?y
Please wait…..
第二步:设置接口 IP 地址、DCE 的时钟频率以及验证
Router>enable !进入特权模式
Router #config !进入全局配置模式
Router _config#hostname Router-A !修改机器名
Router-A_config#interface s1/1 !进入接口模式
Router-A_config_s1/0#ip address !配置 IP 地址
Router-A_config_s1/0#physical-layer speed 64000 !配置 DCE 时钟频率
Router-A_config_s1/0#no shutdown
Router-A_config_s1/0#^Z !按 ctrl + z 进入特权模式
Router-A#show interface s1/1 !查看接口状态
Serial1/0 is up, line protocol is down !对端没有配置,所以协议是 DOWN
Mode=Sync DCE Speed=64000 !查看 DCE
DTR=UP,DSR=UP,RTS=UP,CTS=DOWN,DCD=UP
Interface address is !查看 IP 地址
MTU 1500 bytes, BW 64 kbit, DLY 2000 usec
Encapsulation prototol HDLC, link check interval is 10 sec !查看封装协议
Octets Received0, Octets Sent 0
Frames Received 0, Frames Sent 0, Link-check Frames Received0
Link-check Frames Sent 89, LoopBack times 0
Frames Discarded 0, Unknown Protocols Frames Received 0, Sent failuile 0
Link-check Timeout 0, Queue Error 0, Link Error 0,
60 second input rate 0 bits/sec, 0 packets/sec!
60 second output rate 0 bits/sec, 0 packets/sec!
0 packets input, 0 bytes, 8 unused_rx, 0 no buffer
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
8 packets output, 192 bytes, 0 unused