![Huawei Quidway NetEngine40E Configuration Manual - Reliability Download Page 1391](http://html.mh-extra.com/html/huawei/quidway-netengine40e/quidway-netengine40e_configuration-manual-reliability_1694531391.webp)
<HUAWEI>
system-view
[HUAWEI]
sysname CGN1
[CGN1]
service-ha hot-backup enable
# Enable HA hot backup on CGN2.
<HUAWEI>
system-view
[HUAWEI]
sysname CGN2
[CGN2]
service-ha hot-backup enable
Step 2
Create an HA backup group on CGN1 and CGN2, add members to the group, and configure a
VRRP backup channel.
# Create HA backup group 1 on CGN1, add CPU 0 in slot 1 to the group, and set the VRRP
outbound interface to GE 1/1/1 and the peer IP address to 1.1.1.2.
[CGN1]
service-location 1
[CGN1-service-location-1]
location slot 1 engine 0
[CGN1-service-location-1]
remote-backup interface GigabitEthernet 1/1/1 peer
1.1.1.2
[CGN1-service-location-1]
quit
# Create HA backup group 1 on CGN2, add CPU 0 in slot 2 to the group, and set the VRRP
outbound interface to GE 1/1/2 and the peer IP address to 1.1.1.1.
[CGN2]
service-location 1
[CGN2-service-location-1]
location slot 2 engine 0
[CGN2-service-location-1]
remote-backup interface GigabitEthernet 1/1/2 peer
1.1.1.1
[CGN2-service-location-1]
quit
Step 3
Create and configure a VRRP backup group on CGN1 and CGN2.
# Enter the GE 1/1/1 interface view on CGN1, create VRRP backup group 1, and set the virtual
IP address of the VRRP backup group to 1.1.1.3. Configure the VRRP backup group as an
mVRRP backup group, set CGN1's priority in the VRRP backup group to 200, and set the
preemption delay to 300s.
[CGN1]
interface GigabitEthernet 1/1/1
[CGN1-GigabitEthernet1/1/1]
ip address 1.1.1.1 24
[CGN1-GigabitEthernet1/1/1]
vrrp vrid 1 virtual-ip 1.1.1.3
[CGN1-GigabitEthernet1/1/1]
admin-vrrp vrid 1 ignore-if-down ignore-if-down
[CGN1-GigabitEthernet1/1/1]
vrrp vrid 1 priority 200
[CGN1-GigabitEthernet1/1/1]
vrrp vrid 1 preempt-mode timer delay 300
[CGN1-GigabitEthernet1/1/1]
quit
# Enter the GE 1/1/2 interface view on CGN2, create VRRP backup group 1, and set the virtual
IP address of the VRRP backup group to 1.1.1.3. Configure the VRRP backup group as an
mVRRP backup group, and set CGN2's priority in the VRRP backup group to 150.
[CGN2]
interface GigabitEthernet 1/1/2
[CGN2-GigabitEthernet1/1/2]
ip address 1.1.1.2 24
[CGN2-GigabitEthernet1/1/2]
vrrp vrid 1 virtual-ip 1.1.1.3
[CGN2-GigabitEthernet1/1/2]
admin-vrrp vrid 1 ignore-if-down
[CGN2-GigabitEthernet1/1/2]
vrrp vrid 1 priority 150
[CGN2-GigabitEthernet1/1/2]
quit
Step 4
Associate HA with VRRP on CGN1 and CGN2.
# Enter the GE 1/1/1 interface view on CGN1, and associate HA backup group 1 with VRRP
backup group 1.
[CGN1]
interface GigabitEthernet 1/1/1
[CGN1-GigabitEthernet1/1/1]
vrrp vrid 1 track service-location 1 reduce 60
[CGN1-GigabitEthernet1/1/1]
quit
HUAWEI NetEngine80E/40E Router
Configuration Guide - Reliability
12 CGN Backing Up HA Configuration
Issue 02 (2014-09-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
1374