思科路由器rip動態路由協議配置
rip動態路由協議配置
網路拓樸圖
在R1上的全部配置
Router>enable
Router#conf
Router(config)#intf0/0
Router(config-if)#ipaddress192.168.0.1255.255.255.0
Router(config-if)#noshutdown
Router(config-if)#ints2/0
Router(config-if)#ipaddress192.168.1.1255.255.255.0
Router(config-if)#noshutdown
Router(config-if)#exit
Router(config)#routerrip
Router(config-router)#network192.168.0.0
Router(config-router)#network192.168.1.0
R2全部配置
Router>enable
Router#conf
Router(config)#ints2/0
Router(config-if)#ipaddress192.168.1.2255.255.255.0
Router(config-if)#clockrate128000
Router(config-if)#noshutdown
Router(config-if)#ints3/0
Router(config-if)#ipaddress192.168.2.1255.255.255.0
Router(config-if)#noshutdown
Router(config-if)#exit
Router(config)#routerrip
Router(config-router)#network192.168.1.0
Router(config-router)#network192.168.2.0
R3全部配置
Router>enable
Router#conf
Router(config)#ints3/0
Router(config-if)#ipaddress192.168.2.2255.255.255.0
Router(config-if)#clockrate128000
Router(config-if)#noshutdown
Router(config-if)#intf0/0
Router(config-if)#ipaddress192.168.3.1255.255.255.0
Router(config-if)#noshutdown
Router(config-if)#exit
Router(config)#routerrip
Router(config-router)#network192.168.2.0
Router(config-router)#network192.168.3.0
Router(config-router)#exit
這時可以在三個路由器的特權模式下:showiproute
Router#showiproute
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
R192.168.0.0/24[120/2]via192.168.2.1,00:00:21,Serial3/0
R192.168.1.0/24[120/1]via192.168.2.1,00:00:21,Serial3/0
C192.168.2.0/24isdirectlyconnected,Serial3/0
C192.168.3.0/24isdirectlyconnected,FastEthernet0/0
pc4ip配置
pc5ip配置
測試連通性
使用pc5pingpc4測試
轉載於:https://blog.51cto.com/guodong810/1033267