路由器路由协议基本配置

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

实验一路由器路由协议基本配置
一、实验目的:
1)了解路由器的基本配置
2)掌握路由器的静态配置
3)掌握路由器的缺省配置
4)掌握路由器的动态配置
二、实验环境及拓扑结构:
1)Cisco 2620路由器三台;
2)PC机两台;
3)V.35DTE和DCE电缆各两根;
4)控制线两根;
拓扑图如下:
三、实验要求:
Router1:
名字接口 IP地址
R1 F0/0 10.10.1.254/24
S0(DTE) 10.10.2.1/24
Router2:
名字接口 IP地址
R2 S0 (DCE) 10.10.2.2/24
S1 10.10.3.1/24
Router3:
名字接口 IP地址
R3 S0 (DTE) 10.10.3.2/24
F0/0 10.10.4.254/24
四、实验步骤:
(一)配置静态路由
1. R1路由器配置IP地址和IP路由
Router>
Router>enable
Router# config
Router(config)# hostname R1
R1(config)# interface f0/0
R1(config-if)# ip address 10.10.1.254 255.255.255.0
R1(config-if)# no shutdown
R1(config-if)# interface s0
R1(config-if)# ip address 10.10.2.1 255.255.255.0
R1(config-if)# no shutdown
R1(config-if)# exit
R1(config)# ip route 10.10.3.0 255.255.255.0 10.10.2.2 R1(config)# ip route 10.10.4.0 255.255.255.0 10.10.2.2
2. R2路由器配置IP地址和IP路由
Router>
Router>enable
Router# config
Router(config)# hostname R2
R2(config)# interface s0
R2(config-if)# ip address 10.10.2.2 255.255.255.0
R2(config-if)# clock rate 6400
R2(config-if)# no shutdown
R2(config-if)# interface s1
R2(config-if)# ip address 10.10.3.1 255.255.255.0
R2(config-if)# clock rate 6400
R2(config-if)# no shutdown
R2(config-if)# exit
R2(config)# ip route 10.10.1.0 255.255.255.0 10.10.2.1 R2(config)# ip route 10.10.4.0 255.255.255.0 10.10.3.2
3. R3路由器配置IP地址和IP路由
Router>
Router>enable
Router# config
Router(config)# hostname R3
R3(config)# interface f0/0
R3(config-if)# ip address 10.10.4.254 255.255.255.0
R3(config-if)# no shutdown
R3(config-if)# interface s0
R3(config-if)# ip address 10.10.3.2 255.255.255.0
R3(config-if)# no shutdown
R3(config-if)# exit
R3(config)# ip route 10.10.1.0 255.255.255.0 10.10.3.1
R3(config)# ip route 10.10.2.0 255.255.255.0 10.10.3.1
4. 检查R1、R2、R3路由器上的接口与路由情况
命令格式为:R?# show ip route
R? # show ip interface
R? # show interface
5. 用“ping”命令测试各网络的连通性?
(二)配置缺省路由
1. 在R1、R3上取消已配置的静态路由,R2保持不变
对于R1:
R1(config)# no ip route 10.10.3.0 255.255.255.0 10.10.2.2 R1(config)# no ip route 10.10.4.0 255.255.255.0 10.10.2.2 R1(config)# exit
R1# show ip route
对于R3:
R3(config)# no ip route 10.10.1.0 255.255.255.0 10.10.3.1 R3(config)# no ip route 10.10.2.0 255.255.255.0 10.10.3.1 R3(config)# exit
R3# show ip route
2. 在R1、R3上配置缺省路由
对于R1:
R1(config)# ip route 0.0.0.0 0.0.0.0 10.10.2.2
对于R3:
R3(config)# ip route 0.0.0.0 0.0.0.0 10.10.3.1
3. 用“ping”命令测试各网络的连通性?
(三)配置动态路由(RIP)
1. 配置路由器R2
对于R2:
R2(config)# no ip route 10.10.1.0 255.255.255.0 10.10.2.1 R2(config)# no ip route 10.10.4.0 255.255.255.0 10.10.3.2 R2(config)# router rip
R2(config-router)# network 10.10.2.0
R2(config-router)# network 10.10.3.0
2. 用“ping”命令测试各网络的连通性?
3.配置路由器R1与R3
对于R1:
R1(config)# no ip route 0.0.0.0 0.0.0.0 10.10.2.2 R1(config)# router rip
R1(config-router)# network 10.10.1.0
R1(config-router)# network 10.10.2.0
对于R3:
R3(config)# no ip route 0.0.0.0 0.0.0.0 10.10.3.1 R3(config)# router rip
R3(config-router)# network 10.10.3.0
R3(config-router)# network 10.10.4.0
4. 用“ping”命令测试各网络的连通性?。

相关文档
最新文档