3RIPv2.docx
- 文档编号:26035121
- 上传时间:2023-06-17
- 格式:DOCX
- 页数:19
- 大小:40.28KB
3RIPv2.docx
《3RIPv2.docx》由会员分享,可在线阅读,更多相关《3RIPv2.docx(19页珍藏版)》请在冰豆网上搜索。
3RIPv2
RIP:
RoutingInformationProtocol路由信息协议
Version2版本二
拓扑图如下:
接口连接:
Router1S0/0<---->Router2S0/0//做明文认证
Router3S0/1<---->Router2S0/1//做密文认证
路由器参考配置如下:
路由器R1的配置:
Router>
Router>enable
Router#configureterminal
Router(config)#hostnameR1
R1(config)#noipdomainlookup
R1(config)#lineconsole0
R1(config-line)#loggingsynchronous
R1(config-line)#exec-timeout00
R1(config-line)#exit
R1(config)#interfaceloopback0
R1(config-if)#ipaddress1.1.1.1255.255.255.0
R1(config-if)#noshutdown
R1(config-if)#interfaces0/0
R1(config-if)#ipaddress192.1.1.1255.255.255.0
R1(config-if)#noshutdown
R1(config-if)#end
R1#showiproute
Codes:
C-connected,S-static,R-RIP,M-mobile,B-BGP
D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea
N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2
E1-OSPFexternaltype1,E2-OSPFexternaltype2
i-IS-IS,su-IS-ISsummary,L1-IS-ISlevel-1,L2-IS-ISlevel-2
ia-IS-ISinterarea,*-candidatedefault,U-per-userstaticroute
o-ODR,P-periodicdownloadedstaticroute
Gatewayoflastresortisnotset
1.0.0.0/24issubnetted,1subnets
C1.1.1.0isdirectlyconnected,Loopback0
C192.1.1.0/24isdirectlyconnected,Serial0/0
R1#configureterminal
R1(config)#routerrip//在全局模式下启用rip协议
R1(config-router)#version2//使用rip协议的v2版本(默认是v1版本)
R1(config-router)#network1.1.1.0//宣告自己直联的网段
R1(config-router)#network192.1.1.0
R1(config-router)#noauto-summary//关闭自动汇总
R1(config-router)#end
R1#configureterminal
R1(config)#keychainwxh//定义一个带名字的钥匙链
R1(config-keychain)#key2009//定义在钥匙链上的钥匙
R1(config-keychain-key)#key-stringhuayu//定义钥匙的密码
R1(config-keychain-key)#exit
R1(config-keychain)#exit
R1(config)#interfaces0/0//在接口上启动认证
R1(config-if)#ipripauthenticationkey-chainwxh//指定使用的钥匙链做明文认证
R1(config-if)#noshutdown//激活接口的安全性认证
R1(config-if)#end
R1#showiproute
Codes:
C-connected,S-static,R-RIP,M-mobile,B-BGP
D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea
N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2
E1-OSPFexternaltype1,E2-OSPFexternaltype2
i-IS-IS,su-IS-ISsummary,L1-IS-ISlevel-1,L2-IS-ISlevel-2
ia-IS-ISinterarea,*-candidatedefault,U-per-userstaticroute
o-ODR,P-periodicdownloadedstaticroute
Gatewayoflastresortisnotset
1.0.0.0/24issubnetted,1subnets
C1.1.1.0isdirectlyconnected,Loopback0
2.0.0.0/24issubnetted,1subnets
R2.2.2.0[120/1]via192.1.1.2,00:
00:
28,Serial0/0
3.0.0.0/24issubnetted,1subnets
R3.3.3.0[120/2]via192.1.1.2,00:
00:
12,Serial0/0
R193.1.1.0/24[120/1]via192.1.1.2,00:
00:
28,Serial0/0
C192.1.1.0/24isdirectlyconnected,Serial0/0
R1#showrunning-config
Buildingconfiguration...
Currentconfiguration:
892bytes
!
version12.4
servicetimestampsdebugdatetimemsec
servicetimestampslogdatetimemsec
noservicepassword-encryption
!
hostnameR1
!
boot-start-marker
boot-end-marker
!
!
noaaanew-model
memory-sizeiomem5
!
!
ipcef
!
!
noipdomainlookup
!
!
keychainwxh
key2009
key-stringhuayu
!
!
!
!
interfaceLoopback0
ipaddress1.1.1.1255.255.255.0
!
interfaceSerial0/0
ipaddress192.1.1.1255.255.255.0
ipripauthenticationkey-chainwxh
serialrestart-delay0
!
interfaceSerial0/1
noipaddress
shutdown
serialrestart-delay0
!
interfaceSerial0/2
noipaddress
shutdown
serialrestart-delay0
!
interfaceSerial0/3
noipaddress
shutdown
serialrestart-delay0
!
routerrip
version2
network1.0.0.0
network192.1.1.0
noauto-summary
!
iphttpserver
!
!
!
!
!
control-plane
!
!
linecon0
exec-timeout00
loggingsynchronous
lineaux0
linevty04
!
end
R1#
路由器R2的配置:
Router>
Router>enable
Router#configureterminal
Router(config)#hostnameR2
R2(config)#noipdomainlookup
R2(config)#lineconsole0
R2(config-line)#loggingsynchronous
R2(config-line)#exec-timeout00
R2(config-line)#exit
R2(config)#interfaceloopback0
R2(config-if)#ipaddress2.2.2.2255.255.255.0
R2(config-if)#noshutdown
R2(config-if)#interfaces0/0
R2(config-if)#ipaddress192.1.1.2255.255.255.0
R2(config-if)#noshutdown
R2(config-if)#interfaces0/1
R2(config-if)#ipaddress193.1.1.2255.255.255.0
R2(config-if)#noshutdown
R2(config-if)#end
R2#showiproute
Codes:
C-connected,S-static,R-RIP,M-mobile,B-BGP
D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea
N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2
E1-OSPFexternaltype1,E2-OSPFexternaltype2
i-IS-IS,su-IS-ISsummary,L1-IS-ISlevel-1,L2-IS-ISlevel-2
ia-IS-ISinterarea,*-candidatedefault,U-per-userstaticroute
o-ODR,P-periodicdownloadedstaticroute
Gatewayoflastresortisnotset
2.0.0.0/24issubnetted,1subnets
C2.2.2.0isdirectlyconnected,Loopback0
C193.1.1.0/24isdirectlyconnected,Serial0/1
C192.1.1.0/24isdirectlyconnected,Serial0/0
R2#configureterminal
R2(config)#routerrip
R2(config-router)#version2
R2(config-router)#network2.2.2.0
R2(config-router)#network192.1.1.0
R2(config-router)#network193.1.1.0
R2(config-router)#noauto-summary
R2(config-router)#end
R2#configureterminal
R2(config)#keychainwxh
R2(config-keychain)#key2009
R2(config-keychain-key)#key-stringhuayu
R2(config-keychain-key)#exit
R2(config-keychain)#exit
R2(config)#interfaces0/0
R2(config-if)#ipripauthenticationkey-chainwxh
R2(config-if)#noshutdown
R2(config-if)#exit
R2(config)#interfaces0/1
R2(config-if)#ipripauthenticationkey-chainwxh
R2(config-if)#ipripauthenticationmodemd5//指定该接口使用MD5认证即密文认证
R2(config-if)#noshutdown
R2(config-if)#end
R2#showiproute
Codes:
C-connected,S-static,R-RIP,M-mobile,B-BGP
D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea
N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2
E1-OSPFexternaltype1,E2-OSPFexternaltype2
i-IS-IS,su-IS-ISsummary,L1-IS-ISlevel-1,L2-IS-ISlevel-2
ia-IS-ISinterarea,*-candidatedefault,U-per-userstaticroute
o-ODR,P-periodicdownloadedstaticroute
Gatewayoflastresortisnotset
1.0.0.0/24issubnetted,1subnets
R1.1.1.0[120/1]via192.1.1.1,00:
00:
24,Serial0/0
2.0.0.0/24issubnetted,1subnets
C2.2.2.0isdirectlyconnected,Loopback0
3.0.0.0/24issubnetted,1subnets
R3.3.3.0[120/1]via193.1.1.1,00:
00:
25,Serial0/1
C193.1.1.0/24isdirectlyconnected,Serial0/1
C192.1.1.0/24isdirectlyconnected,Serial0/0
R2#showrunning-config
Buildingconfiguration...
Currentconfiguration:
991bytes
!
version12.4
servicetimestampsdebugdatetimemsec
servicetimestampslogdatetimemsec
noservicepassword-encryption
!
hostnameR2
!
boot-start-marker
boot-end-marker
!
!
noaaanew-model
memory-sizeiomem5
!
!
ipcef
!
!
noipdomainlookup
!
!
keychainwxh
key2009
key-stringhuayu
!
!
!
!
interfaceLoopback0
ipaddress2.2.2.2255.255.255.0
!
interfaceSerial0/0
ipaddress192.1.1.2255.255.255.0
ipripauthenticationkey-chainwxh
serialrestart-delay0
!
interfaceSerial0/1
ipaddress193.1.1.2255.255.255.0
ipripauthenticationmodemd5
ipripauthenticationkey-chainwxh
serialrestart-delay0
!
interfaceSerial0/2
noipaddress
shutdown
serialrestart-delay0
!
interfaceSerial0/3
noipaddress
shutdown
serialrestart-delay0
!
routerrip
version2
network2.0.0.0
network192.1.1.0
network193.1.1.0
noauto-summary
!
iphttpserver
!
!
!
!
!
control-plane
!
!
linecon0
exec-timeout00
loggingsynchronous
lineaux0
linevty04
!
end
R2#
路由器R3的配置:
Router>
Router>enable
Router#configureterminal
Router(config)#hostnameR3
R3(config)#noipdomainlookup
R3(config)#lineconsole0
R3(config-line)#loggingsynchronous
R3(config-line)#exec-timeout00
R3(config-line)#exit
R3(config)#interfaceloopback0
R3(config-if)#ipaddress3.3.3.3255.255.255.0
R3(config-if)#noshutdown
R3(config-if)#interfaces0/0
R3(config-if)#ipaddress193.1.1.1255.255.255.0
R3(config-if)#noshutdown
R3(config-if)#end
R3#showiproute
Codes:
C-connected,S-static,R-RIP,M-mobile,B-BGP
D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea
N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2
E1-OSPFexternaltype1,E2-OSPFexternaltype2
i-IS-IS,su-IS-ISsummary,L1-IS-ISlevel-1,L2-IS-ISlevel-2
ia-IS-ISinterarea,*-candidatedefault,U-per-userstaticroute
o-ODR,P-periodicdownloadedstaticroute
Gatewayoflastresortisnotset
3.0.0.0/24issubnetted,1subnets
C3.3.3.0isdirectlyconnected,Loopback0
C193.1.1.0/24isdirectlyconnected,Serial0/1
R3#configureterminal
R3(config)#routerrip
R3(config-router)#version2
R3(config-router)#network3.3.3.0
R3(config-router)#network193.1.1.0
R3(config-router)#noauto-summary
R3(config-router)#end
R3#configureterminal
R3(config)#keychainwxh
R3(config-keychain)#key2009
R3(config-keychain-key)#key-stringhuayu
R3(config-keychain-key)#exit
R3(config-keychain)#exit
R3(config)#interfaces0/1
R3(config-if)#ipripauthenticationkey-chainwxh
R3(config-if)#ipripauthenticationmodemd5
R3(config-if)#noshutdown
R3(config-if)#end
R3#showiproute
Codes:
C-connected,S-static,R-RIP,M-mobile,B-BGP
D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea
N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2
E1-OSPFexternaltype1,E2-OSPFexternaltype2
i-IS-IS,su-IS-ISsummary,L1-IS-ISlevel-1,L2-IS-ISlevel-2
ia-IS-ISinterarea,*-candidatedefault,U-per-userstaticroute
o-ODR,P-periodicdownloadedst
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- RIPv2