Huawei AR2220 configures the backup of the main and standby interfaces of the Ethernet link + Ethernet link

I. networking requirements

1. As shown in the figure, RouterA is directly connected to RouterB through three interfaces. Normally, HostA transmits data to HostB through RouterA's GE0/0/0 interface.

In order to improve the reliability of data transmission between HostA and HostB, users hope that when the GE0/0/0 interface fails, they can preferentially switch the traffic to the GE0/0/1 interface.

2. Network topology

3. Configuration ideas

Use the following ideas to configure the backup of the primary and standby interfaces:
Configure the IP address of each interface and the static route between HostA and HostB to ensure the network layer interworking.
GE0/0/0 is configured as the main interface on RouterA, and GE0/0/1 and GE0/0/2 are the backup interfaces of GE0/0/0, and the priority of GE0/0/1 is higher. When the main interface fails, GE0/0/1 gives priority to providing backup services.
Configure the delay of switching between the main interface and the backup interface to avoid network vibration caused by frequent switching between the main interface and the backup interface.

II. Operation steps

1. Configure IP address of router interface

<Huawei>system-view 	
[Huawei]sysname RouterA
[RouterA]interface  GigabitEthernet 4/0/0
[RouterA-GigabitEthernet4/0/0]ip address 192.168.1.254 24
[RouterA-GigabitEthernet4/0/0]q
[RouterA]interface  GigabitEthernet  0/0/0
[RouterA-GigabitEthernet0/0/0]ip address  1.1.1.1 24
[RouterA-GigabitEthernet0/0/0]q
[RouterA]interface  GigabitEthernet  0/0/1
[RouterA-GigabitEthernet0/0/1]ip address  2.2.2.1 24
[RouterA-GigabitEthernet0/0/1]q
[RouterA]interface  GigabitEthernet  0/0/2
[RouterA-GigabitEthernet0/0/2]ip address  3.3.3.1 24
[RouterA-GigabitEthernet0/0/2]q

<Huawei>system-view 
[Huawei]sysname RouterB
[RouterB]interface  GigabitEthernet  4/0/0
[RouterB-GigabitEthernet4/0/0]ip address  192.168.2.254 24
[RouterB-GigabitEthernet4/0/0]q
[RouterB]interface   GigabitEthernet  0/0/0
[RouterB-GigabitEthernet0/0/0]ip address  1.1.1.2 24
[RouterB-GigabitEthernet0/0/0]q
[RouterB]interface  GigabitEthernet  0/0/1
[RouterB-GigabitEthernet0/0/1]ip address  2.2.2.2 24
[RouterB-GigabitEthernet0/0/1]q
[RouterB]interface  GigabitEthernet  0/0/2
[RouterB-GigabitEthernet0/0/2]ip address  3.3.3.2 24
[RouterB-GigabitEthernet0/0/2]q

2. Configure static route

[RouterA]ip route-static 192.168.2.0 24 1.1.1.2
[RouterA]ip route-static 192.168.2.0 24 2.2.2.2
[RouterA]ip route-static 192.168.2.0 24 3.3.3.2

[RouterB]ip route-static 192.168.1.0 24 1.1.1.1
[RouterB]ip route-static 192.168.1.0 24 2.2.2.1
[RouterB]ip route-static 192.168.1.0 24 3.3.3.1

3. On RouterA, configure G0/0/0 as the main interface, G0/0/1 and G0/0/2 as the backup interface, and the priority of G0/0/1 and G0/0/2 are 30 and 20 respectively

[RouterA]interface  GigabitEthernet  0/0/0
[RouterA-GigabitEthernet0/0/0]standby interface GigabitEthernet 0/0/1 30
[RouterA-GigabitEthernet0/0/0]standby interface GigabitEthernet 0/0/2 20
[RouterA-GigabitEthernet0/0/0]q

4. Configure the interface switching delay on RouterA to 10 seconds

[RouterA]interface GigabitEthernet 0/0/0
[RouterA-GigabitEthernet0/0/0]standby timer delay 10 10
[RouterA-GigabitEthernet0/0/0]q

5. View configuration results

[RouterA]display  standby state 
Interface                  Interfacestate Backupstate Backupflag Pri   Loadstate
GigabitEthernet0/0/0                   UP         MUP         MU                
GigabitEthernet0/0/1              STANDBY     STANDBY         BU  30            
GigabitEthernet0/0/2              STANDBY     STANDBY         BU  20            

 Backup-flag meaning: 
 M---MAIN  B---BACKUP     V---MOVED    U---USED
 D---LOAD  P---PULLED  
----------------------------------------------------------------------------
Below is track BFD information:
Bfd-Name              Bfd-State  BackupInterface            State
----------------------------------------------------------------------------
Below is track IP route information:
Destination/Mask          Route-State  BackupInterface            State
----------------------------------------------------------------------------
Below is track NQA Information:
Instance Name                    BackupInterface              State

6. Manually shutdown RouterA main interface G0/0/0, and check the status of backup interface

[RouterA]interface  GigabitEthernet  0/0/0
[RouterA-GigabitEthernet0/0/0]shutdown
[RouterA-GigabitEthernet0/0/0]q
[RouterA]display standby state 
Interface                  Interfacestate Backupstate Backupflag Pri   Loadstate
GigabitEthernet0/0/0                 DOWN       MDOWN         MU                
GigabitEthernet0/0/1                   UP          UP         BU  30            
GigabitEthernet0/0/2              STANDBY     STANDBY         BU  20            

 Backup-flag meaning: 
 M---MAIN  B---BACKUP     V---MOVED    U---USED
 D---LOAD  P---PULLED  

----------------------------------------------------------------------------
Below is track BFD information:
Bfd-Name              Bfd-State  BackupInterface            State
----------------------------------------------------------------------------
Below is track IP route information:
Destination/Mask          Route-State  BackupInterface            State
----------------------------------------------------------------------------
Below is track NQA Information:
Instance Name                    BackupInterface              State

 

 

Keywords: Operation & Maintenance network

Added by Weedpacket on Mon, 09 Dec 2019 16:44:10 +0200