试验26 RIP路由选择基础试验



R1配置
Router(config)#ho r1
r1(config)#int lo0
r1(config-if)#ip add 1.1.1.1 255.255.255.0
r1(config-if)#int s1/2
r1(config-if)#ip add 10.1.1.1 255.255.255.0
r1(config-if)#no sh
r1(config-if)#int s1/3
r1(config-if)#ip add 10.1.2.1 255.255.255.0
r1(config-if)#no sh
r1(config)#router rip
r1(config-router)#net 1.0.0.0
r1(config-router)#net 10.0.0.0
r1(config-router)#^Z

R2配置
Router(config)#ho r2
r2(config)#int lo1
r2(config-if)#ip ad 172.16.1.2 255.255.255.0
r2(config-if)#int s2/1
r2(config-if)#ip add 10.1.1.2 255.255.255.0
r2(config-if)#no sh
r2(config)#router rip
r2(config-router)#net 3.0.0.0
r2(config-router)#net 192.168.1.0
r2(config-router)#net 10.0.0.0
r2(config-router)#^Z

R3配置
Router(config)#ho r3
r3(config)#int lo0
r3(config-if)#ip add 3.3.3.3 255.255.255.0
r3(config-if)#int lo1
r3(config-if)#ip ad 192.168.1.3 255.255.255.0
r3(config-if)#int s3/1
r3(config-if)#ip ad 10.1.2.3. 255.255.255.0
r3(config-if)#ip ad 10.1.2.3 255.255.255.0
r3(config-if)#no sh
r3(config)#router rip
r3(config-router)#net 3.0.0.0
r3(config-router)#net 192.168.1.0
r3(config-router)#net 10.0.0.0
r3(config-router)#^Z

在R1上show一下协议

r1#sh ip protocols
Routing Protocol is “rip” 现在使用的协议
Sending updates every 30 seconds, next due in 14 seconds 每30秒发一下更新 下次发还有14秒

Invalid after 180 seconds, hold down 180, flushed after 240
Outgoing update filter list for all interfaces is
Incoming update filter list for all interfaces is
Redistributing: rip
Default version control: send version 1, receive any version
Interface        Send  Recv   Key-chain
Serial1/2        1     1 2
Serial1/3        1     1 2
Loopback0        1     1 2
Routing for Networks:
1.0.0.0
10.0.0.0
Routing Information Sources:
Gateway         Distance      Last Update
10.1.2.3             120      00:00:14
Distance: (default is 120)

R2路由表
R    1.0.0.0/8 [120/1] via 10.1.1.1, 00:00:07, Serial2/1
R    3.0.0.0/8 [120/2] via 10.1.1.1, 00:00:07, Serial2/1
172.16.0.0/24 is subnetted, 1 subnets
C       172.16.1.0 is directly connected, Loopback1
10.0.0.0/24 is subnetted, 2 subnets
R       10.1.2.0 [120/1] via 10.1.1.1, 00:00:07, Serial2/1
C       10.1.1.0 is directly connected, Serial2/1
R    192.168.1.0/24 [120/2] via 10.1.1.1, 00:00:07, Serial2/1

R表示使用的是rip协议

你可能感兴趣的:(职场,休闲)