rip路由实验

rip路由实验


 R1>en
R1#conf t
R1(config)#int s0/0
R1(config-if)#ip add 12.1.1.1 255.255.255.0
R1(config-if)#no sh

R2#conf t
R2(config)#int s0/0
R2(config-if)#ip add 12.1.1.2 255.255.255.0
R2(config-if)#no shutdown 
R2(config-if)#int f0/0
R2(config-if)#ip add 23.1.1.2 255.255.255.0
R2(config-if)#no sh

R3>en
R3#conf t
R3(config)#int f0/0
R3(config-if)#ip add 23.1.1.3 255.255.255.0   
R3(config-if)#no sh

R1(config)#router rip 
R1(config-router)#ver 2
R1(config-router)#no auto-summary 
R1(config-router)#net 12.1.1.0
R1(config-router)#^Z

R2(config)#router rip 
R2(config-router)#ver 2
R2(config-router)#no au
R2(config-router)#no auto-summary 
R2(config-router)#net 12.1.1.0 
R2(config-router)#net 23.1.1.0
R2(config-router)#^Z
R3(config)#router rip 
R3(config-router)#version 2
R3(config-router)#no auto-summary 
R3(config-router)#net 23.1.1.0
R3(config-router)#^Z
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
23.0.0.0/24 is subnetted, 1 subnets
C 23.1.1.0 is directly connected, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.1.1.0 is directly connected, Serial0/0
R2#show ip rip database 
12.0.0.0/8    auto-summary
12.1.1.0/24    directly connected, Serial0/0
23.0.0.0/8    auto-summary
23.1.1.0/24    directly connected, FastEthernet0/0
R3#show ip route rip   
     12.0.0.0/24 is subnetted, 1 subnets
R       12.1.1.0 [120/1] via 23.1.1.2, 00:00:08, FastEthernet0/0

推荐阅读