案例:
CCIE-LAB(V160)
题目要求:
Configure HSRP on R3 and R4 for hosts on VLAN A:Carefully read the requirements:
There are 10 hosts on VLAN A.5 Windows PC‘s and 5 Unix workstations
The Windows PC‘s are configured to use 160.YY.10.50 as their default gateway
The UNIX workstations are configured to use 160.YY.10.100 as their default gateway
R3 is the preferred router for Windows users.
R4 is the prefered router for Unix users.
If the frame relay connection on R3 goes down,then R4 becomes the preferred router for all users.
If the frame relay connection on R4 goes down,then R3 becomes the preferred router for all users.
Once either R3 or R4 recover from a failure then the network must operate as outined
above,I.e Each router must resume their original role.
配置:
R3 config termi interface f0/0 standby 1 ip 160.11.10.50 standby 1 priority 110 standby 1 track s0/0 20 standby 1 preempt standby 2 ip 160.11.10.100 standby 2 preempt R4 config termi interface f0/0 standby 1 ip 160.11.10.50 standby 1 preempt standby 2 ip 160.11.10.100 standby 2 priority 110 standby 2 track s0/0 20 standby 2 preempt |
Trunk链路上的HSRP
此项功能能通过在子网和VLAN间提供负载均衡和冗余能力提高整个网络的韧性。我们可以实现通过两个路由器来实现在干道上的互为活跃/备份路由器。我们只要设置一下他们在HSRP中的优先级就可以实现。
配置步骤:
1. 定义封装类型和vlan
如:
interface f0/0.10 encapaulation isl 10 interface f0/0.20 encapaulation isl 20 |
2.分配IP地址
如:
interface f0/0.10 ip address 10.10.10.2 255.255.255.0 interface f0/0.20 ip address 10.10.20.2 255.255.255.0 |
3.启动HSRP
如:
inteface f0/0.10 standby 1 ip 10.10.10.254 standby 1 priority 105 standby 1 preempt interface f0/0.20 standby 2 ip 10.10.20.254 standby 2 priority 90 |