R3102-R3103-HP 6600/HSR6600 Routers High Availability Configuration Guide
173
Load sharing and mutual backup between default gateways can be implemented by using VRRP
groups.
Figure 46 Network diagram
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.
Host A
Host B
Host C
Router A
Router B
Virtual IP address 1:
202.38.160.111/24
Virtual IP address 2:
202.38.160.112/24
GE1/0/1
202.38.160.1/24
GE1/0/1
202.38.160.2/24
Gateway:
202.38.160.111/24
Gateway:
202.38.160.112/24
Gateway:
202.38.160.111/24
Internet










