RIP实验的配置及要求
我的拓扑图
实验要求:
1.全网可达
2.R4的环回不能被宣告
3.R2 R3 R4 各有两个环回需要汇总
4.保证更新安全
5.加快收敛速度
实验步骤
一,配IP地址
R1 0口 123.1.1.1/24
R2 0口 123.1.1.2/24 1口 23.1.1.2/24
R3 0口 23.1.1.3 /24 1口 34.1.1.3/24
R4 0口 34.1.1.4/24 1口 45.1.1.4/24
R5 0口 45.1.1.5/24 1口 123.1.1.5/24
二,给R2 R3 R4 配环回路由
R2(192.168.1.0/24)两个环回地址(192.168.1.0/25 192.168.1.128/25) 192.168.1.1/25 192.168.1.129/25
R3(192.168.2.0/24)两个环回地址(192.168.2.0/25 192.168.2.128/25) 192.168.2.1/25 192.168.2.129/25
R4(192.168.3.0/24)两个环回地址(192.168.3.0/25 192.168.3.128/25) 192.168.3.1/25 192.168.3.129/25
还有一个单独环回 100.1.1.1/24 不宣告
三,启用RIP协议
R1 rip 1/version 2/network 123.0.0.0
R2 network 123.0.0.0 network 23.0.0.0 network 192.168.1.0
R3 network 23.0.0.0 network 34.0.0.0 network 192.168.2.0
R4 network 34.0.0.0 network 45.0.0.0 network 192.168.3.0
R5 network 45.0.0.0 network 123.0.0.0
做到此处 全网可通
四,R4上下放一个缺省(内网的路由器R1,R2,R3,R5将会产生一条指向边界路由器的缺省路由)
rip 1/version 2/default-route originate
到R1上ping 100.1.1.1 就通了
五,汇总R2,R3,R4上的环回
R2上汇总
0口 rip summar-address 192.168.1.0 255.255.255.0
1口 rip summar-address 192.168.1.0 255.255.255.0
R3
0口 rip summar-address 192.168.2.0 255.255.255.0
1口 rip summar-address 192.168.2.0 255.255.255.0
R4
0口 rip summar-address 192.168.3.0 255.255.255.0
1口 rip summar-address 192.168.3.0 255.255.255.0
六,写空接口环回路由
R1 ip route-static 192.168.1.0 255.255.255.0 null 0
R2 ip route-static 192.168.2.0 255.255.255.0 null 0
R3 ip route-static 192.168.3.0 255.255.255.0 null 0
七,认证(保证更新安全)
R1 0口 rip authentication-mode simple huawei
R2 0口 rip authentication-mode simple huawei
R2 1口 rip authentication-mode simple huawei
R3 0口 rip authentication-mode simple huawei
…………………………
路由器两两之间做认证
七,加快收敛速度
在所有设备上敲R1–R5
rip 1/version 2/timer rip 15 90 60
可以在任何一个设备上看 display rip