实验报告
指导老师:姚玉生   实验者:王靳   时间:2010-1-23
实验项目:动态路由协议
实验目的:掌握动态路由协议的配置
设备需求:组网拓扑、IP数据:
实验过程:
基本配置信息
Router>enable 进入特权模式
Router#config terminal 进入全局模式
Router<config>#host Rx 更改主机名
Router<config>#interface fx/x 进入快速以太网接口
Router<config-if>#ip address 192.168.1.1 255.255.255.0配置快速以太网接口IP
Router<config-if>#no shutdown 激活端口
Router<config-if>#exit 返回上一端口
Router<config>#interface s0/0 进入串型接口
Router<config-if>#clock rate 64000 DCE设备设置,用于同步DCEDTE设备
Router<config-if>#ctrl+c 返回用户模式
Router>show ip interface brief 查看路由表接口信息
Router<config>#router igrp 100
Router<config>#interface 本路由的网段接口
Vpcs 2 >ip 192.168.6.2 192.168.6.1 将虚拟2号机IP加网关
Vpcs 2 >1 虚拟2号机切换到1号机
Vpcs 1 >ping 192.168.2.1 拼目标IP
 
详细步骤
1telnet 127.0.0.1 2001 设置router0
Router>enable
Router#config terminal
Router<config>#host R1
Router<config>#interface f0/0
Router<config-if>#ip address 192.168.1.1 255.255.255.0
Router<config-if>#no shutdown
Router<config-if>#exit
Router<config>#interface s0/0
Router<config-if>#ip address 192.168.2.1 255.255.255.0
Router<config-if>#clock rate 64000
Router<config-if>#no shutdown
Router<config-if>#exit
Router<config-if>#ctrl+c
Router>show ip interface brief
2telnet 127.0.0.1 2002 设置router1
Router>enable
Router#config terminal
Router<config>#host R2
Router<config>#interface s0/0
Router<config-if>#ip address 192.168.2.2 255.255.255.0
Router<config-if>#no shutdown
Router<config-if>#exit
Router<config>#interface f0/0
Router<config-if>#ip address 192.168.3.1 255.255.255.0
Router<config-if>#no shutdown
Router<config-if>#exit
Router<config>#interface s0/1
Router<config-if>#ip address 192.168.4.1 255.255.255.0
Router<config-if>#clock rate 64000
Router<config-if>#no shutdown
Router<config-if>#ctrl+c
Router >show ip interface brief
3telnet 127.0.0.1 2003 设置router2
Router>enable
Router#config terminal
Router<config>#host R3
Router<config>#interface s0/1
Router<config-if>#ip address 192.168.4.2 255.255.255.0
Router<config-if>#no shutdown
Router<config-if>#exit
Router<config>#interface f0/0
Router<config-if>#ip address 192.168.5.1 255.255.255.0
Router<config-if>#no shutdown
Router<config-if>#exit
Router<config>#interface s0/0
Router<config-if>#ip address 192.168.6.1 255.255.255.0
Router<config-if>clock rate 64000
Router<config-if>#no shutdown
Router<config-if>#ctrl+c
Router>show ip interface brief
4telnet 127.0.0.1 2004 设置router3
Router>enable
Router#config terminal
Router<config>#host R3
Router<config>#interface s0/0
Router<config-if>#ip address 192.168.6.2 255.255.255.0
Router<config-if>#no shutdown
Router<config-if>#exit
Router<config>#interface f0/0
Router<config-if>#ip address 192.168.7.1 255.255.255.0
Router<config-if>#no shutdown
Router<config-if>#exit
Router<config-if>#ctrl+c
Router>show ip interface brief
5.进入Router0
Router<config>#router igrp 100
Router<config-router>#network 192.168.3.0
Router<config-router>#network 192.168.5.0
Router<config-router>#network 192.168.7.0
6.进入Router1
Router<config>#router igrp 100
Router<config-router>#network 192.168.1.0
Router<config-router>#network 192.168.5.0
Router<config-router>#network 192.168.7.0
7.进入Router2
Router<config>#router igrp 100
Router<config-router>#network 192.168.1.0
Router<config-router>#network 192.168.3.0
Router<config-router>#network 192.168.7.0
8.进入Router3
Router<config>#router igrp 100
Router<config-router>#network 192.168.1.0
Router<config-router>#network 192.168.3.0
Router<config-router>#network 192.168.5.0
9.进入vpcs,测试实验是否成功
Vpcs 1 >ip 192.168.1.2 192.168.1.1
Vpcs 1 >2
Vpcs 2 >ip 192.168.6.2 192.168.6.1
Vpcs 2 >1
Vpcs 1 >ping 192.168.2.1
Vpcs 1 >ping 192.168.3.1
Vpcs 1 >ping 192.168.4.1
Vpcs 1 >ping 192.168.5.1
Vpcs 1 >ping 192.168.6.1
Vpcs 1 >ping 192.168.7.1
Vpcs 1 >2
Vpcs 1 >ping 192.168.1.1
Vpcs 1 >ping 192.168.3.1
Vpcs 1 >ping 192.168.4.1
Vpcs 1 >ping 192.168.5.1
Vpcs 1 >ping 192.168.6.1
Vpcs 1 >ping 192.168.7.1
……
实验总结:
注意1实验开始之前,正确的绘制出实验拓扑图,以及各端口之间的正确连接,本实验的端口连接如下:
Router1 F0/0 <----> VPCS1 0/0
Router1 s0/0 <----> Router2 s0/0
Router2 F0/0 <----> VPCS2 0/0
Router2 s0/1 <----> Router3 s0/1
Router3 F0/0 <----> VPCS3 0/0
Router3 s0/0 <----> Router4 s0/0
Router4 F0/0 <----> VPCS4 0/0
注意2确认实验方向,以确定DCE设备,从而正确设置DCE设备和DTE设备的同步