1.实验拓扑如下图:

华为VRRP配置详解_第1张图片

2.路由器端口配置ip,如拓扑图所示,配置如下
R1配置:
[R1]interface g0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.1.254 24
[R1]interface g0/0/1
[R1-GigabitEthernet0/0/1]ip address 192.168.13.1 24

R2配置:
[R2]interface g0/0/0

[R2-GigabitEthernet0/0/0]ip add
[R2-GigabitEthernet0/0/0]ip address 192.168.1.253 24
[R2-GigabitEthernet0/0/0]int g0/0/1
[R2-GigabitEthernet0/0/1]ip add
[R2-GigabitEthernet0/0/1]ip address 192.168.23.1 24

R3配置:

[R3]interface g0/0/0
[R3-GigabitEthernet0/0/0]ip ad
[R3-GigabitEthernet0/0/0]ip address 192.168.13.2 24
[R3]interface g0/0/0
[R3-GigabitEthernet0/0/0]ip ad
[R3-GigabitEthernet0/0/0]ip address 192.168.13.2 24
[R3-LoopBack1]ip address 10.0.0.1 24

3.R1、R2配置vrrp,并监控g0/0/1

[R1-GigabitEthernet0/0/0]vrrp vrid 1 virtual-ip 192.168.1.250
[R1-GigabitEthernet0/0/0]vrrp vrid 1 track interface g0/0/1 reduced 50

[R2-GigabitEthernet0/0/0]vrrp vrid 1 virtual-ip 192.168.1.250
[R2-GigabitEthernet0/0/0]vrrp vrid 1 track interface g0/0/1 reduced 51

4.R1、R2、R3配置静态路由,确保全网互通

[R1]ip route-static 10.0.0.1 255.255.255.0 192.168.13.2

[R2]ip route-static 10.0.0.1 255.255.255.0 192.168.23.2

[R3]ip route-static 192.168.1.0 255.255.255.0 192.168.13.1
[R3]ip route-static 192.168.1.0 255.255.255.0 192.168.23.1

5.测试
R1上查看vrrp
华为VRRP配置详解_第2张图片

R2上查看
华为VRRP配置详解_第3张图片

PC上测试
华为VRRP配置详解_第4张图片
华为VRRP配置详解_第5张图片

6.模拟R2->R3线路故障,测试路由
华为VRRP配置详解

华为VRRP配置详解_第6张图片

在PC上跟踪路由
华为VRRP配置详解_第7张图片
R2上看vrrp
华为VRRP配置详解_第8张图片

vrrp自动切换R2为master路由,链路备份成功。