R3303-HP HSR6800 Routers High Availability Configuration Guide

170
Configuration procedure
1. Configure Router A:
<RouterA> system-view
[RouterA] interface gigabitethernet 1/0/1
[RouterA-GigabitEthernet1/0/1] ip address 202.38.160.1 255.255.255.0
# Create VRRP group 1 and configure its virtual IP address as 202.38.160.111.
[RouterA-GigabitEthernet1/0/1] vrrp vrid 1 virtual-ip 202.38.160.111
# Set the priority of Router A in VRRP group 1 to 110, which is higher than that of Router B (100),
so that Router A can become the master in VRRP group 1.
[RouterA-GigabitEthernet1/0/1] vrrp vrid 1 priority 110
# Create VRRP group 2 and configure its virtual IP address as 202.38.160.112.
[RouterA-GigabitEthernet1/0/1] vrrp vrid 2 virtual-ip 202.38.160.112
2. Configure Router B:
<RouterB> system-view
[RouterB] interface gigabitethernet 1/0/1
[RouterB-GigabitEthernet1/0/1] ip address 202.38.160.2 255.255.255.0
# Create VRRP group 1 and configure its virtual IP address as 202.38.160.111.
[RouterB-GigabitEthernet1/0/1] vrrp vrid 1 virtual-ip 202.38.160.111
# Create VRRP group 2 and configure its virtual IP address as 202.38.160.112.
[RouterB-GigabitEthernet1/0/1] vrrp vrid 2 virtual-ip 202.38.160.112
# Set the priority of router B in VRRP group 2 to 110, which is higher than that of Router A (100),
so that Router B can become the master in VRRP group 2.
[RouterB-GigabitEthernet1/0/1] vrrp vrid 2 priority 110
3. Verify the configuration:
To verify your configuration, use the display vrrp verbose command.
# Display the detailed information about the VRRP group on Router A.
[RouterA] display vrrp verbose
IPv4 Standby Information:
Run Mode : Standard
Run Method : Virtual MAC
Total number of virtual routers : 2
Interface GigabitEthernet1/0/1
VRID : 1 Adver Timer : 1
Admin Status : Up State : Master
Config Pri : 110 Running Pri : 110
Preempt Mode : Yes Delay Time : 0
Auth Type : None
Virtual IP : 202.38.160.111
Virtual MAC : 0000-5e00-0101
Master IP : 202.38.160.1
Interface GigabitEthernet1/0/1
VRID : 2 Adver Timer : 1
Admin Status : Up State : Backup
Config Pri : 100 Running Pri : 100
Preempt Mode : Yes Delay Time : 0