RIPv2基本配置实验_职场
R1配置:
R1(config)#int s1/0
R1(config-if)#ip address 192.1.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#int f0/0
R1(config-if)#ip address 148.1.1.254 255.255.255.0
R1(config-if)#no shutdown
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#network 192.1.1.0
R1(config-router)#network 148.1.1.0
R2配置:

R2(config)#int s1/0
R2(config-if)#ip address 192.1.1.2 255.255.255.0
R2(config-if)#clock rate 64000
R2(config-if)#no shutdown
R2(config-if)#int s1/1
R2(config-if)#ip address 193.1.1.1 255.255.255.0
R2(config-if)#clock rate 64000
R2(config-if)#no shutdown
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#network 193.1.1.0
R2(config-router)#network 192.1.1.0
R3配置:

R3(config)#int s1/1
R3(config-if)#ip address 193.1.1.2 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#int f0/0
R3(config-if)#ip address 152.1.1.254 255.255.255.0
R3(config-if)#no shutdown
R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#network 193.1.1.0
R3(config-router)#network 152.1.1.0
查看路由表:

R1#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
R    152.1.0.0/16 [120/2] via 192.1.1.2, 00:00:04, Serial1/0
R    193.1.1.0/24 [120/1] via 192.1.1.2, 00:00:04, Serial1/0
C    192.1.1.0/24 is directly connected, Serial1/0
     148.1.0.0/24 is subnetted, 1 subnets
C       148.1.1.0 is directly connected, FastEthernet0/0
R2#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
R    152.1.0.0/16 [120/1] via 193.1.1.2, 00:00:17, Serial1/1
C    193.1.1.0/24 is directly connected, Serial1/1
C    192.1.1.0/24 is directly connected, Serial1/0
R    148.1.0.0/16 [120/1] via 192.1.1.1, 00:00:20, Serial1/0
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
     152.1.0.0/24 is subnetted, 1 subnets
C       152.1.1.0 is directly connected, FastEthernet0/0
C    193.1.1.0/24 is directly connected, Serial1/1
R    192.1.1.0/24 [120/1] via 193.1.1.1, 00:00:09, Serial1/1
R    148.1.0.0/16 [120/2] via 193.1.1.1, 00:00:09, Serial1/1
客户机配置

PC1:
ip:148.1.1.1/24
ip default-gateway:148.1.1.254
PC2:
ip:152.1.1.1/24
ip default-gateway:152.1.1.254
验证连通性:
PC1#ping 152.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 152.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 108/193/320 ms