1、配置好VLANVLANIP地址

2、在vlan端口下配置VRRP

[HW-SW1] int vlan 8  //进入vlan8的接口

[HW-SW1-vlanIf] vrrp vrid 8 virtual-ip 10.1.10.14  //配置VRRP的虚拟网关地址

[HW-SW1-vlanIf] vrrp vrid 8 priority 105  //配置VRRP的优先级,1-254,越大越优先,大的为Master,小的为Backup

 

验证:

[HW-SW1-Vlanif8]dis vrrp brief

VRID  State        Interface                Type     Virtual IP     

----------------------------------------------------------------

8     Master       Vlanif8                  Normal   10.1.10.14     

9     Master       Vlanif9                  Normal   10.1.10.30     

10    Master       Vlanif10                 Normal   10.1.10.46     

----------------------------------------------------------------

Total:3     Master:3     Backup:0     Non-active:0