一、配置R1
Router(config)#hostname R1
R1(config)#interface Serial0/0/0
R1(config-if)#ip address 192.168.12.6 255.255.255.0
R1(config-if)#exi
R1(config)#router rip
R1(config-router)#version 1
R1(config-router)#network 1.0.0.0
R1(config-router)#network 192.168.12.0
R1(config-router)#exi
二、配置R2
Router(config)#hostname R2
R2(config)#interface Serial0/0/0
R2(config-if)#ip address 192.168.12.7 255.255.255.0
R2(config-if)#eix
R2(config)#interface Serial0/0/1
R2(config-if)#ip address 192.168.23.7 255.255.255.0
R2(config-if)#exi
R2(config)#router rip
R2(config-router)#version 1
R2(config-router)#network 192.168.12.0
R2(config-router)#network 192.168.23.0
三、配置R3
Router(config)#hostname R3
R3(config)#interface Serial0/0/1
R3(config-if)#ip address 192.168.23.8 255.255.255.0
R3(config-if)#exi
R3(config)#router rip
R3(config-router)#version 1
R3(config-router)#network 192.168.23.0
R3(config-router)#network 192.168.34.0
四、配置R4
Router(config)#hostname R4
R4(config)#interface Serial0/0/0
R4(config-if)#ip address 192.168.34.8 255.255.255.0
R4(config-if)#exit
R4(config)#router rip
R4(config-router)#network 192.168.34.0
R4(config-router)#network 4.0.0.0
五、结果