Virtual Router Redundancy Protocol with Comware Switches

Virtual Router Redundancy Protocol is easy to configure on a comware switch. Each device needs an IP address within the subnet, after this you can configure a virtual-IP for the VLAN-interface:

CoreSwitch1:
interface Vlan-interface1
ip address 10.0.0.135 255.192.0.0
vrrp vrid 1 virtual-ip 10.0.0.54
vrrp vrid 1 priority 120

CoreSwitch2:
interface Vlan-interface1
ip address 10.0.0.136 255.192.0.0
vrrp vrid 1 virtual-ip 10.0.0.54
vrrp vrid 1 priority 110

The highest priority value gets the IP address active on this device. So priority 120 will become master and 110 backup:

[CoreSwitch1]display vrrp verbose
IPv4 Virtual Router Information:
Running mode : Standard
Total number of virtual routers : 2
Interface Vlan-interface1
VRID : 1 Adver Timer : 100
Admin Status : Up State : Master
Config Pri : 120 Running Pri : 120
Preempt Mode : Yes Delay Time : 0
Auth Type : None
Virtual IP : 10.0.0.54
Virtual MAC : 0000-5e00-0101
Master IP : 10.0.0.135

[CoreSwitch2]dis vrrp verbose
IPv4 Virtual Router Information:
Running mode : Standard
Total number of virtual routers : 2
Interface Vlan-interface1
VRID : 1 Adver Timer : 100
Admin Status : Up State : Backup
Config Pri : 110 Running Pri : 110
Preempt Mode : Yes Delay Time : 0
Become Master : 3150ms left
Auth Type : None
Virtual IP : 10.0.0.54
Master IP : 10.0.0.135

I suggest to configure the vrID the same as the VLAN-interface ID to avoid misunderstanding.

Leave a Comment