Cisco(config-if)#vrrp 1 ip 10.1.1.254
[Huawei-GigabitEthernet0/0/0]vrrp vrid 1 virtual-ip 10.1.1.1 //创建VRRP备份组并给备份组配置虚拟IP地址
Cisco(config-if)#vrrp 1 priority 120
[Huawei-GigabitEthernet0/0/0]vrrp vrid 1 priority 100 //配置交换机在备份组中的优先级,缺省是100,越大越高, 优先级0被系统保留作为特殊用途,优先级值255保留给IP地址拥有者,通过命令可以配置的优先级取值范围是1~254
Cisco(config-if)#vrrp 1 preempt
[Huawei-GigabitEthernet0/0/0]vrrp vrid 1 preempt-mode disable //配置备份组中交换机采用非抢占方式,缺省采用抢占方式,并且是立即抢占
Cisco(config)#track 1 interface e0/0 line-protocol
Cisco(config-if)#vrrp 1 track 1 decrement 50
[Huawei-GigabitEthernet0/0/0]vrrp vrid 1 track bfd-session 1 //配置VRRP与BFD联动
[Huawei-GigabitEthernet0/0/0]vrrp vrid 1 track interface GigabitEthernet 0/0/1 //配置VRRP与接口状态联动监视上行接口
Cisco#show vrrp
[Huawei]display vrrp interface g0/0/0 verbose
[Huawei]display vrrp protocol-information //查看VRRP协议的相关信息
Cisco#show vrrp brief
[Huawei]display vrrp brief //查看VRRP备份组的状态信息和配置参数
标签:思科,vrid,华为,Huawei,VRRP,vrrp,Cisco,config From: https://blog.51cto.com/u_13699905/5910036