RIPv1配置实验:
RIPv1配置实验_配置实验
R1配置:
Router>en
Router#conf t
R1(config)#int f0/0
R1(config-if)#ip address 192.168.1.254 255.255.255.0
R1(config-if)#description Lan Connection to PC1
R1(config-if)#no shutdown
R1(config-if)#int s1/0
R1(config-if)#ip address 192.168.2.1 255.255.255.0
R1(config-if)#description Wan Connection to R2
R1(config-if)#no shutdown
R2配置:
Router>en
Router#conf t
R2(config)#int s0/1
R2(config-if)#ip address 192.168.2.2 255.255.255.0
R2(config-if)#description Wan Connection to R1
R2(config-if)#clock rate 64000
R2(config-if)#no shutdown
R2(config-if)#int s0/2
R2(config-if)#ip address 192.168.3.1 255.255.255.0
R2(config-if)#description  Wan Connection to R3
R2(config-if)#clock rate 64000
R2(config-if)#no shutdown
R3配置:
Router>en
Router#conf t
R3(config)#int s1/0
R3(config-if)#ip add 192.168.3.2 255.255.255.0
R3(config-if)#description Wan connection to R2
R3(config-if)#no shutdown
R3(config-if)#int f0/0
R3(config-if)#ip add 192.168.4.254 255.255.255.0
R3(config-if)#description Lan connection to PC2
R3(config-if)#no shutdown
RIP配置:
R1(config)#router rip
R1(config-router)#network 192.168.1.0
R1(config-router)#network 192.168.2.0
R1(config-router)#end
R2(config)#router rip
R2(config-router)#network 192.168.2.0
R2(config-router)#network 192.168.3.0
R2(config-router)#end
R3(config)#router rip
R3(config-router)#network 192.168.3.0
R3(config-router)#network 192.168.4.0
R3(config-router)#end
R3#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
C    192.168.4.0/24 is directly connected, FastEthernet0/0
R    192.168.1.0/24 [120/2] via 192.168.3.1, 00:00:08, Serial1/0
R    192.168.2.0/24 [120/1] via 192.168.3.1, 00:00:08, Serial1/0
C    192.168.3.0/24 is directly connected, Serial1/0
客户机配置:
PC1:
IP:192.168.1.1/24
IP default-gateway:192.168.1.254
PC2:
IP:192.168.4.1/24
IP default-gateway:192.168.4.254
测试连通性:
PC1#ping 192.168.4.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.4.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 124/210/304 ms