R3102-R3103-HP 6600/HSR6600 Routers High Availability Configuration Guide

170
Figure 45 Network diagram
Configuration procedure
1. Configure Router A:
<RouterA> system-view
[RouterA] interface gigabitethernet 1/0/2
[RouterA-GigabitEthernet1/0/2] 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/2] vrrp vrid 1 virtual-ip 202.38.160.111
# Configure the priority of Router A in the VRRP group as 110, which is higher than that of
Router B (100), so that Router A can become the master.
[RouterA-GigabitEthernet1/0/2] vrrp vrid 1 priority 110
# Configure the authentication mode of the VRRP group as simple and authentication key as
hello.
[RouterA-GigabitEthernet1/0/2] vrrp vrid 1 authentication-mode simple hello
# Configure the master to send VRRP packets every 4 seconds.
[RouterA-GigabitEthernet1/0/2] vrrp vrid 1 timer advertise 4
# Configure Router A to operate in preemptive mode, so that it can become the master
whenever it works correctly. Configure the preemption delay as 5 seconds to avoid frequent
status switchover.
[RouterA-GigabitEthernet1/0/2] vrrp vrid 1 preempt-mode timer delay 5
# Set interface GigabitEthernet 1/0/1 on Router A to be tracked. Configure the amount by
which the priority value decreases to be more than 10 (30 in this example). Then when
GigabitEthernet 1/0/1 fails, the priority of Router A in VRRP group 1 decreases to a value lower
than 100 and Router B can become the master.
[RouterA-GigabitEthernet1/0/2] vrrp vrid 1 track interface gigabitethernet 1/0/1
reduced 30
2. Configure Router B:
<RouterB> system-view
[RouterB] interface gigabitethernet 1/0/2
[RouterB-GigabitEthernet1/0/2] 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/2] vrrp vrid 1 virtual-ip 202.38.160.111
Host A
Router A
Router B
Virtual IP address:
202.38.160.111/24
Eth1/2
202.38.160.1/24
Eth1/2
202.38.160.2/24
Host B
202.38.160.3/24
203.2.3.1/24
Eth1/1
Internet