实验图:
使用(hot standby router protocol)来实现负载均衡与容错。
实验步骤:
++++++++++++++++++++++++++++++++++
r0
++++++++++++++++++++++++++++++++++
en
conf t
host r0
in e0/0
ip add 192.168.1.251 255.255.255.0
no sh
standby 1 ip 192.168.1.254
standby 1 priority 120
standby 1 preempt
standby 1 track loop 0 40
standby 2 ip 192.168.1.253
standby 2 preempt
exit
in e0/1
ip add 192.168.2.251 255.255.255.0
no sh
standby 10 ip 192.168.2.254
standby 10 priority 120
standby 10 preempt
standby 10 track loop 0 40
exit
in lo 0
ip add 201.1.1.1 255.255.255.255
exit
router rip
ver 2
no au
net 192.168.1.0
net 192.168.2.0
net 201.1.0.0
exit
++++++++++++++++++++++++++++++++++++
r1
++++++++++++++++++++++++++++++++++++
en
conf t
host r1
in e0/0
ip add 192.168.1.252 255.255.255.0
no sh
standby 1 ip 192.168.1.254
standby 1 preempt
standby 2 ip 192.168.1.253
standby 2 priority 120
standby 2 preempt
standby 2 track e0/1 40
exit
in e0/1
ip add 192.168.2.252 255.255.255.0
no sh
standby 10 ip 192.168.2.254
standby 10 preempt
exit
router rip
ver 2
no au
net 192.168.1.0
net 192.168.2.0
exit
end
应该只在r2上手写一条默认路由。
ip route 0.0.0.0 0.0.0.0 192.168.1.251
阅读(709) | 评论(0) | 转发(0) |