f0/0:ip add 192.168.1.10 f0/0:ip add 192.168.1.11
R1-------------------------------------VRouter------------------------------------R2
VR:192.168.1.100
HSRP
R1
int f0/0
ip add 192.168.1.10 255.255.255.0
no sh
standby 1 ip 192.168.1.100
standby 1 priority 120
!优先级大的为Active
R2
int f0/0
ip add 192.168.1.11 255.255.255.0
no sh
standby 1 ip 192.168.1.100
standby 1 priority 110
!优先级小的为Standby
VRRP
R1
int f0/0
ip add 192.168.1.10 255.255.255.0
no sh
vrrp 1 ip 192.168.1.100
vrrp 1 priority 120
!优先级大的为Master
R2
int f0/0
ip add 192.168.1.11 255.255.255.0
no sh
vrrp 1 ip 192.168.1.100
vrrp 1 priority 110
!优先级小的为Backup