This section provides an example of configuring dual-device ARP hot backup.
As shown in Figure 1, users access Device A and Device B through a LAN switch (LSW). Configure a Virtual Router Redundancy Protocol (VRRP) group on Device A and Device B. Device A is a master device, and Device B is a backup device. In normal circumstances, Device A learns ARP entries from the users and periodically updates them, and forwards both uplink and downlink traffic.
If Device A or the link between Device A and the switch fails, a master/backup VRRP switchover is triggered to switch Device B to the Master state. Device B needs to advertise a network segment route to network-side devices so that the devices will transmit downlink traffic to Device B. If Device B has not learned ARP entries from user-side devices, the downlink traffic is interrupted. Device B forwards the downlink traffic only after it learns ARP entries from user-side devices.
Interfaces 1 and 2 in this example represent Device A's GE 0/1/0 and Device B's GE 0/1/0, respectively.
To ensure downlink traffic continuity, deploy dual-device ARP hot backup on Device A and Device B to enable Device A to back up ARP entries and host routing information to Device B in real time. After a master/backup VRRP switchover is performed, Device B forwards downlink traffic without needing to relearn ARP entries.
The configuration roadmap is as follows:
Assign an IP address to each interface and configure a routing protocol.
Configure a VRRP group on Device A and Device B.
Establish a dual-device backup platform on Device A and Device B.
Enable remote backup for ARP services on Device A and Device B.
To complete the configuration, you need the following data:
VRRP group ID: 1; virtual IP address: 10.1.1.100
Device A's priority: 120; Device B's priority: 100 (default value)
Device A's and Device B's preemption delays: 600 seconds
Remote backup service (RBS) name: service1; remote backup profile (RBP) name: profile1; backup ID: 10
Device A's IP address: 1.1.1.1/32; Device B's IP address: 2.2.2.2/32; TCP port number: 2046
<HUAWEI> system-view [~HUAWEI] sysname DeviceA [*HUAWEI] commit [~DeviceA] interface gigabitethernet 0/1/0 [~DeviceA-GigabitEthernet0/1/0] vrrp vrid 1 virtual-ip 10.1.1.100 [*DeviceA-GigabitEthernet0/1/0] admin-vrrp vrid 1 [*DeviceA-GigabitEthernet0/1/0] vrrp vrid 1 priority 120 [*DeviceA-GigabitEthernet0/1/0] vrrp vrid 1 preempt-mode timer delay 600 [*DeviceA-GigabitEthernet0/1/0] vrrp recover-delay 20 [*DeviceA-GigabitEthernet0/1/0] commit [~DeviceA-GigabitEthernet0/1/0] quit
<HUAWEI> system-view [~HUAWEI] sysname DeviceB [*HUAWEI] commit [~DeviceB] interface gigabitethernet 0/1/0 [~DeviceB-GigabitEthernet0/1/0] vrrp vrid 1 virtual-ip 10.1.1.100 [*DeviceB-GigabitEthernet0/1/0] admin-vrrp vrid 1 [*DeviceB-GigabitEthernet0/1/0] vrrp vrid 1 preempt-mode timer delay 600 [*DeviceB-GigabitEthernet0/1/0] commit [~DeviceB-GigabitEthernet0/1/0] quit
[~DeviceA] remote-backup-service service1 [*DeviceA-rm-backup-srv-service1] bind ssl-policy policy1 [*DeviceA-rm-backup-srv-service1] batch-backup service-type arp now [*DeviceA-rm-backup-srv-service1] peer 2.2.2.2 source 1.1.1.1 port 2046 [*DeviceA-rm-backup-srv-service1] commit [~DeviceA-rm-backup-srv-service1] quit
[~DeviceA] remote-backup-profile profile1 [*DeviceA-rm-backup-prf-profile1] peer-backup hot [*DeviceA-rm-backup-prf-profile1] vrrp-id 1 interface gigabitethernet 0/1/0 [*DeviceA-rm-backup-prf-profile1] backup-id 10 remote-backup-service service1 [*DeviceA-rm-backup-prf-profile1] commit [~DeviceA-rm-backup-prf-profile1] quit
[~DeviceB] remote-backup-service service1 [*DeviceB-rm-backup-srv-service1] bind ssl-policy policy1 [*DeviceB-rm-backup-srv-service1] peer 1.1.1.1 source 2.2.2.2 port 2046 [*DeviceB-rm-backup-srv-service1] batch-backup service-type arp now [*DeviceB-rm-backup-srv-service1] commit [~DeviceB-rm-backup-srv-service1] quit
[~DeviceB] remote-backup-profile profile1 [*DeviceB-rm-backup-prf-profile1] peer-backup hot [*DeviceB-rm-backup-prf-profile1] vrrp-id 1 interface gigabitethernet 0/1/0 [*DeviceB-rm-backup-prf-profile1] backup-id 10 remote-backup-service service1 [*DeviceB-rm-backup-prf-profile1] commit [~DeviceB-rm-backup-prf-profile1] quit
[~DeviceA] remote-backup-profile profile1 [*DeviceA-rm-backup-prf-profile1] service-type arp [*DeviceA-rm-backup-prf-profile1] commit [~DeviceA-rm-backup-prf-profile1] quit [~DeviceA] interface gigabitethernet 0/1/0 [~DeviceA-GigabitEthernet0/1/0] remote-backup-profile profile1 [*DeviceA-GigabitEthernet0/1/0] commit
[~DeviceB] remote-backup-profile profile1 [*DeviceB-rm-backup-prf-profile1] service-type arp [*DeviceB-rm-backup-prf-profile1] commit [~DeviceB-rm-backup-prf-profile1] quit [~DeviceB] interface gigabitethernet 0/1/0 [~DeviceB-GigabitEthernet0/1/0] remote-backup-profile profile1 [*DeviceB-GigabitEthernet0/1/0] commit
<DeviceA> display remote-backup-profile profile1 ----------------------------------------------- Profile-Index : 0x1001 Profile-Name : profile1 Service : arp Remote-backup-service: service1 Backup-ID : 10 track protocol : VRRP VRRP-ID : 1 VRRP-Interface : GigabitEthernet0/1/0 Access-Control : -- State : Master Peer State : -- Interface : GigabitEthernet0/1/0 Backup mode : hot Slot-Number : 1 Card-Number : 0 Port-Number : 0
<DeviceB> display remote-backup-profile profile1 ----------------------------------------------- Profile-Index : 0x1001 Profile-Name : profile1 Service : arp Remote-backup-service: service1 Backup-ID : 10 track protocol : VRRP VRRP-ID : 1 VRRP-Interface : GigabitEthernet0/1/0 Access-Control : -- State : Slave Peer State : -- Interface : GigabitEthernet0/1/0 Backup mode : hot Slot-Number : 1 Card-Number : 0 Port-Number : 0
<DeviceA> display remote-backup-service service1 ---------------------------------------------------------- Service-Index : 2 Service-Name : service1 TCP-State : Connected Peer-ip : 1.1.1.1 Source-ip : 2.2.2.2 TCP-Port : 2046 Track-BFD : -- SSL-Policy-Name : policy1 SSL-State : -- ----------------------------------------------------------
<DeviceB> display remote-backup-service service1 ---------------------------------------------------------- Service-Index : 2 Service-Name : service1 TCP-State : Connected Peer-ip : 2.2.2.2 Source-ip : 1.1.1.1 TCP-Port : 2046 Track-BFD : -- SSL-Policy-Name : policy1 SSL-State : -- ----------------------------------------------------------
Configuration file of Device A
# sysname DeviceA # remote-backup-service service1 bind ssl-policy policy1 peer 2.2.2.2 source 1.1.1.1 port 2046 # remote-backup-profile profile1 service-type arp backup-id 10 remote-backup-service service1 peer-backup hot vrrp-id 1 interface GigabitEthernet0/1/0 # interface GigabitEthernet0/1/0 undo shutdown ip address 10.1.1.1 255.255.255.0 vrrp vrid 1 virtual-ip 10.1.1.100 admin-vrrp vrid 1 vrrp vrid 1 priority 120 vrrp vrid 1 preempt-mode timer delay 600 vrrp recover-delay 20 remote-backup-profile profile1 # interface LoopBack1 ip address 1.1.1.1 255.255.255.255 # ospf 1 area 0.0.0.0 network 1.1.1.1 0.0.0.0 network 10.1.1.0 0.0.0.255 # return
Configuration file of Device B
# sysname DeviceB # remote-backup-service service1 bind ssl-policy policy1 peer 1.1.1.1 source 2.2.2.2 port 2046 # remote-backup-profile profile1 service-type arp backup-id 10 remote-backup-service service1 peer-backup hot vrrp-id 1 interface GigabitEthernet0/1/0 # interface GigabitEthernet0/1/0 undo shutdown ip address 10.1.1.2 255.255.255.0 vrrp vrid 1 virtual-ip 10.1.1.100 admin-vrrp vrid 1 vrrp vrid 1 preempt-mode timer delay 600 remote-backup-profile profile1 # interface LoopBack1 ip address 2.2.2.2 255.255.255.255 # ospf 1 area 0.0.0.0 network 2.2.2.2 0.0.0.0 network 10.1.1.0 0.0.0.255 # return