R1:

en
conf t
no ip domain-lo
ser pass
enab s cisco123
line con 0
exec-t 0 0
line vty 0 4
pass cisco123
login
exit
access 1 per 172.16.0.0 0.0.7.255              \\定义Acl
int lo0
ip add 1.1.1.1 255.255.255.0
int lo1
ip add 172.16.1.1 255.255.255.0
int lo2
ip add 172.16.2.1 255.255.255.0
int lo3
ip add 172.16.3.1 255.255.255.0
int lo4
ip add 172.16.4.1 255.255.255.0
int lo5
ip add 172.16.5.1 255.255.255.0
int f0/0
ip add 12.12.12.1 255.255.255.0
ip sum rip 172.16.0.0 255.255.248.0                \\将地址汇总到RIP中.
no sh
int f1/0
ip add 10.1.13.1 255.255.255.0
ip sum rip 172.16.0.0 255.255.248.0                \\将地址汇总到RIP中.
no sh
exit
router rip
ver 2
no au
net 1.1.1.0
net 12.12.12.0
net 10.1.13.0
net 172.16.0.0
offset-list 1 out 5                   \\定义172网段的度量值为6并从所有接口宣告出去(需求四)
end
wr

R2:

en
conf t
no ip domain-lo
ser pass
enab s cisco123
line con 0
exec-t 0 0
line vty 0 4
pass cisco123
login
exit
int lo0
ip add 2.2.2.2 255.255.255.0
int f0/0
ip add 12.12.12.2 255.255.255.0
no sh
int f1/0
ip add 10.1.23.1 255.255.255.0
passive-int f1/0                              \\关闭F1/0接口的RIP更新
neighbor 10.1.13.2                            \\配置与13.2建立更新   (需求五的第一种方法)
no sh
exit
router rip
ver 2
no au
net 2.2.2.0
net 12.12.12.0
net 10.1.23.0
end
wr

R3:

en
conf t
no ip domain-lo
ser pass
enab s cisco123
line con 0
exec-t 0 0
line vty 0 4
pass cisco123
login
exit
int lo0
ip add 3.3.3.3 255.255.255.0
int f1/0
ip add 10.1.13.2 255.255.255.0
no sh
int f0/0
ip add 10.1.23.2 255.255.255.0
no sh
exit
router rip
ver 2
no au
net 3.3.3.0
net 10.1.13.0
net 10.1.23.0
passive-int f1/0                              \\关闭F1/0接口的RIP更新
neighbor 10.1.13.1                             \\配置与13.1建立更新   (需求五的第一种方法)
end
wr

需求六:

R1:
en
conf t
router rip
no net 172.16.0.0
exit
ip route 172.16.0.0 255.255.248.0 lo1          \\配置静态路由
router rip                
redist sta me 1                                 \\将静态路由以1的度量值灌输到rip
end
wr

需求七:

R2:
en
conf t
router rip
maximum-paths 1                                  \\指定负载均衡路由数量为1
end
wr