实验二 配置RIP协议和简单路由练习4课时.docx
- 文档编号:23410509
- 上传时间:2023-05-16
- 格式:DOCX
- 页数:12
- 大小:23.84KB
实验二 配置RIP协议和简单路由练习4课时.docx
《实验二 配置RIP协议和简单路由练习4课时.docx》由会员分享,可在线阅读,更多相关《实验二 配置RIP协议和简单路由练习4课时.docx(12页珍藏版)》请在冰豆网上搜索。
实验二配置RIP协议和简单路由练习4课时
实验二配置RIP协议和简单路由练习(4课时)
一.实训目的:
1.掌握RIP(路由选择信息协议)协议的基本配置与验证。
二.实训内容
1.通过对RIP路由选择协议的配置,实现全网的连通;
2.声明相应网络进入RIP路由进程;
3.查看路由表并理解相关字段含义;
三.实训环境的搭建
1.准备PC机1台,操作系统为Windows2000Professional;
2.准备Cisco2621XM路由器3台,分别为R1、R2和R3;
3.WIC-1T模块6个;
4.V.35DTE电缆3条,V.35DCE电缆3条;
5.Console电缆1条,通过Console电缆把PC机的COM端口和路由器的Console端口连接起来,配置路由器;
四.实训操作实践与步骤
1.查DTE/DCE电缆
shocontrollerss0/0
显示信息:
InterfaceSerial0/0
HardwareisPowerQUICCMPC860
DCEV.35,noclock
shocontrollers0/1
显示信息:
InterfaceSerial0/1
HardwareisPowerQUICCMPC860
DCEV.35,noclock
shocontrollers0/0
显示信息:
InterfaceSerial0/0
HardwareisPowerQUICCMPC860
DTEV.35clocksstopped.
shocontrollers0/1
显示信息:
InterfaceSerial0/1
HardwareisPowerQUICCMPC860
DCEV.35,noclock
shocontrollers0/0
显示信息:
InterfaceSerial0/0
HardwareisPowerQUICCMPC860
DTEV.35clocksstopped.
shocontrollers0/1
显示信息:
InterfaceSerial0/1
HardwareisPowerQUICCMPC860
DTEV.35clocksstopped.
2.R1的配置过程
intf0/0
ipaddress________255.255.255.0
nokeepalive
noshut
ints0/0
ipadd________255.255.255.0
clockrate512000
bandwidth512
noshut
ints0/1
ipadd________255.255.255.0
clockrate512000
bandwidth512
noshut
3.R2的配置过程
intf0/0
ipaddress_________255.255.255.0
nokeepalive
#noshutdown
ints0/0
ipaddress_________255.255.255.0
bandwidth512
noshut
ints0/1
ipaddress_________255.255.255.0
clockrate64000
bandwidth64
noshut
4.R3的配置过程
intf0/0
ipadd_________255.255.255.0
nokeepalive
noshutdown
ints0/0
ipaddress_________255.255.255.0
bandwidth512
noshutdown
ints0/1
ipaddress_________255.255.255.0
bandwidth64
noshutdown
5.测试R1、R2和R3之间的连通性
ping192.168.12.2
显示信息:
Typeescapesequencetoabort.
Sending5,100-byteICMPEchosto192.168.12.2,timeoutis2seconds:
!
!
!
!
!
Successrateis100percent(5/5),round-tripmin/avg/max=4/4/8ms
ping192.168.11.3
显示信息:
Typeescapesequencetoabort.
Sending5,100-byteICMPEchosto192.168.11.3,timeoutis2seconds:
!
!
!
!
!
Successrateis100percent(5/5),round-tripmin/avg/max=4/4/8ms
ping192.168.13.2
显示信息:
Typeescapesequencetoabort.
Sending5,100-byteICMPEchosto192.168.13.2,timeoutis2seconds:
!
!
!
!
!
Successrateis100percent(5/5),round-tripmin/avg/max=28/28/28ms
ping192.168.12.1
ping192.168.11.2
ping192.168.13.1
6.配置RIP协议
1)R1配置RIP协议
routerrip
network192.168.11.0
network192.168.12.0
network192.168.3.0
2)R2配置RIP协议
routerrip
network192.168.12.0
network192.168.13.0
network192.168.1.0
3)R3配置RIP协议
routerrip
network192.168.11.0
network192.168.13.0
network192.168.2.0
7.查看路由表
shoiproute
显示信息:
Codes:
C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGP
D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea
N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2
E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGP
i-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea
*-candidatedefault,U-per-userstaticroute,o-ODR
P-periodicdownloadedstaticroute
Gatewayoflastresortisnotset
C_________/24isdirectlyconnected,Serial0/0
R_________/24[120/1]via_________,00:
00:
11,Serial0/1
[120/1]via_________,00:
00:
09,Serial0/0
C_________/24isdirectlyconnected,Serial0/1
R_________/24[120/1]via_________,00:
00:
11,Serial0/1
C_________/24isdirectlyconnected,FastEthernet0/0
shoiproute
显示信息:
Codes:
C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGP
D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea
N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2
E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGP
i-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea
*-candidatedefault,U-per-userstaticroute,o-ODR
P-periodicdownloadedstaticroute
Gatewayoflastresortisnotset
C_________/24isdirectlyconnected,Serial0/0
C_________/24isdirectlyconnected,Serial0/1
R_________/24[120/1]via_________,00:
00:
06,Serial0/1
[120/1]via_________,00:
00:
02,Serial0/0
C_________/24isdirectlyconnected,FastEthernet0/0
R_________/24[120/1]via_________,00:
00:
06,Serial0/1
R_________/24[120/1]via_________,00:
00:
02,Serial0/0
shoiproute
显示信息:
Codes:
C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGP
D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea
N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2
E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGP
i-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea
*-candidatedefault,U-per-userstaticroute,o-ODR
P-periodicdownloadedstaticroute
Gatewayoflastresortisnotset
R_________/24[120/1]via_________,00:
00:
21,Serial0/1
[120/1]via_________,00:
00:
00,Serial0/0
C_________/24isdirectlyconnected,Serial0/1
C_________/24isdirectlyconnected,Serial0/0
C_________/24isdirectlyconnected,FastEthernet0/0
R_________/24[120/1]via_________,00:
00:
00,Serial0/0
8.RIP协议常用的监测命令
仔细观察下列下划线的信息含义:
shoipprotocol
显示信息:
RoutingProtocolis"rip"
Sendingupdatesevery30seconds,nextduein3seconds
Invalidafter180seconds,holddown180,flushedafter240
Outgoingupdatefilterlistforallinterfacesisnotset
Incomingupdatefilterlistforallinterfacesisnotset
Redistributing:
rip
Defaultversioncontrol:
sendversion1,receiveanyversion
InterfaceSendRecvTriggeredRIPKey-chain
FastEthernet0/0112
Serial0/0112
Serial0/1112
Automaticnetworksummarizationisineffect
Maximumpath:
4
RoutingforNetworks:
192.168.3.0
192.168.11.0
192.168.12.0
RoutingInformationSources:
GatewayDistanceLastUpdate
192.168.11.312000:
00:
21
192.168.12.212000:
00:
17
Distance:
(defaultis120)
trace192.168.2.1
显示信息:
Typeescapesequencetoabort.
Tracingtherouteto192.168.2.1
1192.168.13.212msec12msec
debugiprip
显示信息:
RIPprotocoldebuggingison
loggingconsole
01:
07:
27:
RIP:
receivedv1updatefrom192.168.12.1onSerial0/0
01:
07:
27:
192.168.2.0in2hops
01:
07:
27:
192.168.3.0in1hops
01:
07:
27:
192.168.11.0in1hops
01:
07:
34:
RIP:
receivedv1updatefrom192.168.13.2onSerial0/1
01:
07:
34:
192.168.2.0in1hops
01:
07:
34:
192.168.3.0in2hops
01:
07:
34:
192.168.11.0in1hops
R2(config)#
01:
07:
43:
RIP:
sendingv1updateto255.255.255.255viaFastEthernet0/0(192.168
.1.3)
01:
07:
43:
RIP:
buildupdateentries
01:
07:
43:
network192.168.2.0metric2
01:
07:
43:
network192.168.3.0metric2
01:
07:
43:
network192.168.11.0metric2
01:
07:
43:
network192.168.12.0metric1
01:
07:
43:
network192.168.13.0metric1
01:
07:
43:
RIP:
sendingv1updateto255.255.255.255viaSerial0/0(192.168.12.2)
01:
07:
43:
RIP:
buildupdateentries
01:
07:
43:
network192.168.1.0metric1
01:
07:
43:
network192.168.2.0metric2
01:
07:
43:
network192.168.13.0metric1
01:
07:
43:
RIP:
sendingv1updateto255.255.255.255viaSerial0/1(192.168.13.1)
01:
07:
43:
RIP:
buildupdateentries
01:
07:
43:
network192.168.1.0metric1
01:
07:
43:
network192.168.3.0metric2
01:
07:
43:
network192.168.12.0metric1
01:
07:
56:
RIP:
receivedv1updatefrom192.168.12.1onSerial0/0
01:
07:
56:
192.168.2.0in2hops
01:
07:
56:
192.168.3.0in1hops
01:
07:
56:
192.168.11.0in1hops
上述结果表明RIP协议工作的特点如下:
更新信息缺省情况下向所有参与路由的接口发送;RIP协议版本1的更新包是广播包(sendingv1updateto255.255.255.255),
RIP把整个路由表向相邻路由器发送;当前所有接口发送和接收的RIP更新包的版本均为1。
9.假定网络中的路由器B的路由表有如下的项目(这三列分别表示“目的网络”、“距离”和“下一跳路由器”)
N1 7 A
N2 2 C
N6 8 F
N8 4 E
N9 4 F
现在B收到从C发来的路由信息(这两列分别表示“目的网络”和“距离” ):
N2 4
N3 8
N6 4
N8 3
N9 5
试求出路由器B更新后的路由表。
解:
路由器B更新后的路由表如下:
目的网络
跳数
下一跳
备注
N1
7
A
无新信息,不改变
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 实验二 配置RIP协议和简单路由练习4课时 实验 配置 RIP 协议 简单 路由 练习 课时
