4RIP综合.docx
- 文档编号:7159907
- 上传时间:2023-01-21
- 格式:DOCX
- 页数:26
- 大小:54.28KB
4RIP综合.docx
《4RIP综合.docx》由会员分享,可在线阅读,更多相关《4RIP综合.docx(26页珍藏版)》请在冰豆网上搜索。
4RIP综合
RIP:
RoutingInformationProtocol路由信息协议
说明:
1:
使用动态路由配置rip协议。
2:
使用rip协议的被动接口和单播更新。
3:
使用rip协议的v1和v2的兼容性。
4:
使用rip协议v2的安全性认证。
(明文和密文)
注:
1:
R1,R2,R3,使用rip协议,R3使用被动接口和单播更新给R1
2:
R5,R6,R7使用ripV2协议
3:
R5配置v1和v2的兼容性。
4:
R5,R6,R7使用rip协议v2的安全性认证,R5:
e0/0与R7:
e0/0做明文认证;R5:
e0/1与R6:
e0/1做密文认证;
拓扑图如下:
各接口的连接和IP地址的配置如图
路由器参考配置:
路由器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)#interfacee0/0
R1(config-if)#ipaddress192.1.1.1255.255.255.0
R1(config-if)#noshutdown
R1(config-if)#noipsplit-horizon
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
C192.1.1.0/24isdirectlyconnected,Ethernet0/0
R1#configureterminal
R1(config)#routerrip
R1(config-router)#network192.1.1.0
R1(config-router)#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
R193.1.1.0/24[120/1]via192.1.1.3,00:
00:
15,Ethernet0/0
C192.1.1.0/24isdirectlyconnected,Ethernet0/0
R195.1.1.0/24[120/1]via192.1.1.3,00:
00:
15,Ethernet0/0
R194.1.1.0/24[120/1]via192.1.1.3,00:
00:
15,Ethernet0/0
R1#showrunning-config
Buildingconfiguration...
Currentconfiguration:
694bytes
!
version12.4
servicetimestampsdebugdatetimemsec
servicetimestampslogdatetimemsec
noservicepassword-encryption
!
hostnameR1
!
boot-start-marker
boot-end-marker
!
!
noaaanew-model
memory-sizeiomem5
!
!
ipcef
!
!
noipdomainlookup
!
!
!
!
!
interfaceEthernet0/0
ipaddress192.1.1.1255.255.255.0
noipsplit-horizon
half-duplex
!
interfaceEthernet0/1
noipaddress
shutdown
half-duplex
!
interfaceEthernet0/2
noipaddress
shutdown
half-duplex
!
interfaceEthernet0/3
noipaddress
shutdown
half-duplex
!
routerrip
network192.1.1.0
!
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)#interfacee0/0
R2(config-if)#ipaddress192.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
C192.1.1.0/24isdirectlyconnected,Ethernet0/0
R2#configureterminal
R2(config)#routerrip
R2(config-router)#network192.1.1.0
R2(config-router)#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
R193.1.1.0/24[120/1]via192.1.1.1,00:
00:
21,Ethernet0/0
C192.1.1.0/24isdirectlyconnected,Ethernet0/0
R195.1.1.0/24[120/1]via192.1.1.1,00:
00:
21,Ethernet0/0
R194.1.1.0/24[120/1]via192.1.1.1,00:
00:
21,Ethernet0/0
R2#showrunning-config
Buildingconfiguration...
*Mar101:
17:
40.051:
%CDP-4-DUPLEX_MISMATCH:
duplexmismatchdiscoveredonEthernet0/0(notfullduplex),withR4FastEthernet0/2(fullduplex).
Currentconfiguration:
673bytes
!
version12.4
servicetimestampsdebugdatetimemsec
servicetimestampslogdatetimemsec
noservicepassword-encryption
!
hostnameR2
!
boot-start-marker
boot-end-marker
!
!
noaaanew-model
memory-sizeiomem5
!
!
ipcef
!
!
noipdomainlookup
!
!
!
!
!
interfaceEthernet0/0
ipaddress192.1.1.2255.255.255.0
half-duplex
!
interfaceEthernet0/1
noipaddress
shutdown
half-duplex
!
interfaceEthernet0/2
noipaddress
shutdown
half-duplex
!
interfaceEthernet0/3
noipaddress
shutdown
half-duplex
!
routerrip
network192.1.1.0
!
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)#interfacee0/0
R3(config-if)#ipaddress192.1.1.3255.255.255.0
R3(config-if)#noshutdown
R3(config-if)#interfacee0/2
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
C193.1.1.0/24isdirectlyconnected,Ethernet0/2
C192.1.1.0/24isdirectlyconnected,Ethernet0/0
R3#configureterminal
R3(config)#routerrip
R3(config-router)#network192.1.1.0
R3(config-router)#network193.1.1.0
R3(config-router)#passive-interfacee0/0
R3(config-router)#neighbor192.1.1.1
R3(config-router)#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
C193.1.1.0/24isdirectlyconnected,Ethernet0/2
C192.1.1.0/24isdirectlyconnected,Ethernet0/0
R195.1.1.0/24[120/1]via193.1.1.2,00:
00:
12,Ethernet0/2
[120/1]via192.1.1.1,00:
00:
22,Ethernet0/0
R194.1.1.0/24[120/1]via193.1.1.2,00:
00:
12,Ethernet0/2
[120/1]via192.1.1.1,00:
00:
22,Ethernet0/0
R3#showrunning-config
Buildingconfiguration...
Currentconfiguration:
754bytes
!
version12.4
servicetimestampsdebugdatetimemsec
servicetimestampslogdatetimemsec
noservicepassword-encryption
!
hostnameR3
!
boot-start-marker
boot-end-marker
!
!
noaaanew-model
memory-sizeiomem5
!
!
ipcef
!
!
noipdomainlookup
!
!
!
!
!
interfaceEthernet0/0
ipaddress192.1.1.3255.255.255.0
half-duplex
!
interfaceEthernet0/1
noipaddress
shutdown
half-duplex
!
interfaceEthernet0/2
ipaddress193.1.1.1255.255.255.0
half-duplex
!
interfaceEthernet0/3
noipaddress
shutdown
half-duplex
!
routerrip
passive-interfaceEthernet0/0
network192.1.1.0
network193.1.1.0
neighbor192.1.1.1
!
iphttpserver
!
!
!
!
!
control-plane
!
!
linecon0
exec-timeout00
loggingsynchronous
lineaux0
linevty04
!
end
R3#
路由器R4的配置:
(可以不配置)
Router>
Router>enable
Router#configureterminal
Router(config)#hostnameR4
R4(config)#noipdomainlookup
R4(config)#lineconsole0
R4(config-line)#loggingsynchronous
R4(config-line)#exec-timeout00
R4(config-line)#end
R4#
路由器R5的配置:
Router>
Router>enable
Router#configureterminal
Router(config)#hostnameR5
R5(config)#noipdomainlookup
R5(config)#lineconsole0
R5(config-line)#loggingsynchronous
R5(config-line)#exec-timeout00
R5(config-line)#exit
R5(config)#interfacee0/0
R5(config-if)#ipaddress194.1.1.2255.255.255.0
R5(config-if)#noshutdown
R5(config-if)#interfacee0/1
R5(config-if)#ipaddress195.1.1.2255.255.255.0
R5(config-if)#noshutdown
R5(config-if)#interfacee0/2
R5(config-if)#ipaddress193.1.1.2255.255.255.0
R5(config-if)#noshutdown
R5(config-if)#end
R5#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-period
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- RIP 综合